/**
 * Theme 2: Floating / Layered Card
 *
 * Compatible with Per-Column Design Options
 *
 * @package Pricing_Table_Free
 */


/* ---------------------------------------------------------
 * Card
 * --------------------------------------------------------- */

.ptw-theme-2 .ptw-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e7e7e7;
    border-radius: 4px;

    box-shadow: 0 8px 25px rgba(0,0,0,.08);

    text-align: center;

    transition:
        transform .4s ease,
        box-shadow .4s ease;
}


/* ---------------------------------------------------------
 * Hover
 * --------------------------------------------------------- */

.ptw-theme-2 .ptw-plan:hover {
    transform: translateY(-20px);
    box-shadow: 0 20px 40px rgba(0,0,0,.16);
}


/* ---------------------------------------------------------
 * Header
 * --------------------------------------------------------- */

.ptw-theme-2 .ptw-plan__header {
    padding: 50px 0;

    background: var(--ptw-header-bg, #34495e);
    color: var(--ptw-header-color, #ffffff);
}


/* ---------------------------------------------------------
 * Title
 * --------------------------------------------------------- */

.ptw-theme-2 .ptw-plan__title {
    margin: 0;
    padding: 0 20px;

    color: var(--ptw-header-color, #ffffff);

    font-size: var(--ptw-title-size, 18px);
    font-weight: 700;
    line-height: 1.4;

    text-transform: uppercase;
}


/* ---------------------------------------------------------
 * Subtitle
 * --------------------------------------------------------- */

.ptw-theme-2 .ptw-plan__subtitle {
    margin-top: 10px;
    padding: 0 20px;

    color: var(--ptw-subtitle-color, rgba(255,255,255,.75));

    font-size: var(--ptw-subtitle-size, 13px);
    line-height: 1.5;
}


/* ---------------------------------------------------------
 * Price
 * --------------------------------------------------------- */

.ptw-theme-2 .ptw-plan__price {
    display: flex;
    align-items: baseline;
    justify-content: center;

    margin-top: 20px;

    color: var(--ptw-price-color, #e67e22);

    line-height: 1;
}

.ptw-theme-2 .ptw-plan__currency {
    margin-right: 3px;

    font-size: calc(var(--ptw-price-size, 70px) * .4);
    font-weight: 700;
}

.ptw-theme-2 .ptw-plan__amount {
    font-size: var(--ptw-price-size, 70px);
    font-weight: 700;
    line-height: 1;
}


/* ---------------------------------------------------------
 * Features
 * --------------------------------------------------------- */

.ptw-theme-2 .ptw-plan__features {
    flex: 1;

    background: var(--ptw-features-bg, #ffffff);
}

.ptw-theme-2 .ptw-plan__features ul {
    margin: 0;
    padding: 0;

    list-style: none;
}

.ptw-theme-2 .ptw-plan__features li {
    display: flex;
    align-items: center;

    margin: 0;
    padding: 15px 20px;

    border-top: 1px solid #eeeeee;

    background: var(--ptw-features-bg, #ffffff);

    color: var(--ptw-features-color, #888888);

    font-size: var(--ptw-features-size, 15px);
    line-height: 1.5;

    text-align: left;
}

/* Optional subtle zebra effect */
.ptw-theme-2 .ptw-plan__features li:nth-child(even) {
    opacity: .96;
}


/* ---------------------------------------------------------
 * Feature icon
 * --------------------------------------------------------- */

.ptw-theme-2 .ptw-plan__feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 20px;

    width: 20px;
    height: 20px;

    margin-right: 8px;

    color: var(--ptw-price-color, #e67e22);

    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.ptw-theme-2 .ptw-plan__feature-text {
    flex: 1;
}


/* ---------------------------------------------------------
 * Footer
 * --------------------------------------------------------- */

.ptw-theme-2 .ptw-plan__footer {
    padding: 25px 20px;

    background: #f8f8f8;
}


/* ---------------------------------------------------------
 * Button
 * --------------------------------------------------------- */

.ptw-theme-2 .ptw-plan__button {
    display: block;

    padding: 12px 15px;

    border: 0;
    border-radius: 3px;

    background: var(--ptw-btn-bg, #e67e22);
    color: var(--ptw-btn-color, #ffffff);

    font-size: var(--ptw-btn-size, 13px);
    font-weight: 700;
    line-height: 1.4;

    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        background-color .3s ease,
        transform .3s ease;
}

.ptw-theme-2 .ptw-plan__button:hover,
.ptw-theme-2 .ptw-plan__button:focus {
    background: var(--ptw-btn-bg, #cf6d17);
    color: var(--ptw-btn-color, #ffffff);

    text-decoration: none;
}

.ptw-theme-2 .ptw-plan__button:focus {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}


/* ---------------------------------------------------------
 * Featured Plan
 * --------------------------------------------------------- */

.ptw-theme-2 .ptw-plan--featured {
    border-color: #e67e22;
    box-shadow: 0 15px 35px rgba(230,126,34,.20);
}

.ptw-theme-2 .ptw-plan--featured .ptw-plan__header {
    background: var(--ptw-header-bg, #e67e22);
    color: var(--ptw-header-color, #ffffff);
}

.ptw-theme-2 .ptw-plan--featured .ptw-plan__title {
    color: var(--ptw-header-color, #ffffff);
}

.ptw-theme-2 .ptw-plan--featured .ptw-plan__price {
    color: var(--ptw-price-color, #ffffff);
}


/* ---------------------------------------------------------
 * Featured Badge
 * --------------------------------------------------------- */

.ptw-theme-2 .ptw-plan__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;

    padding: 6px 12px;

    border-radius: 3px;

    background: #ffffff;
    color: #e67e22;

    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;

    text-transform: uppercase;

    box-shadow: 0 3px 10px rgba(0,0,0,.12);
}


/* ---------------------------------------------------------
 * Responsive Tablet
 * --------------------------------------------------------- */

@media (max-width: 991px) {

    .ptw-theme-2 .ptw-plan__header {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .ptw-theme-2 .ptw-plan__amount {
        font-size: calc(var(--ptw-price-size, 70px) * .83);
    }

    .ptw-theme-2 .ptw-plan__currency {
        font-size: calc(var(--ptw-price-size, 70px) * .34);
    }

    .ptw-theme-2 .ptw-plan:hover {
        transform: translateY(-10px);
    }
}


/* ---------------------------------------------------------
 * Responsive Mobile
 * --------------------------------------------------------- */

@media (max-width: 767px) {

    .ptw-theme-2 .ptw-pricing-table__row {
        display: block;

        margin-right: 0;
        margin-left: 0;
    }

    .ptw-theme-2 .ptw-plan {
        margin-bottom: 30px;
    }

    .ptw-theme-2 .ptw-plan:hover {
        transform: none;
    }

    .ptw-theme-2 .ptw-plan__header {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .ptw-theme-2 .ptw-plan__amount {
        font-size: calc(var(--ptw-price-size, 70px) * .86);
    }

    .ptw-theme-2 .ptw-plan__button {
        width: 100%;
    }
}