/*
 * MileageWise price list - self-contained styles for the [mw-price-list] shortcode.
 *
 * Reproduces the previous Elementor Pro Price Table design (page 14918) without
 * depending on Elementor CSS. Palette, typography and spacing were extracted
 * from the live page's generated CSS (post-14918.css + widget-price-table.css).
 */

.mw-price-table {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    max-width: 1140px;
    margin: 0 auto;
    box-sizing: border-box;
}

.mw-price-table *,
.mw-price-table *::before,
.mw-price-table *::after {
    box-sizing: border-box;
}

/* ---------- Column: mirrors Elementor .elementor-col-25 + default 10px gap ---------- */
.mw-price-card {
    flex: 0 0 25%;
    max-width: 25%;
    min-width: 0;
    padding: 10px;
}

/* Match Elementor's responsive behaviour: 2-up on tablet (<=1024px),
   1-up on mobile (<=767px), 4-up above. */
@media (max-width: 1024px) {
    .mw-price-card {
        flex-basis: 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .mw-price-card {
        flex-basis: 100%;
        max-width: 100%;
    }
}

/* ---------- The visible card (background lives here, like Elementor's widget container) ---------- */
.mw-price-card__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #f9fafa;
    overflow: hidden;
    text-align: center;
}

/* ---------- Header (plan name) ---------- */
.mw-price-card__header {
    background: #DCDCDC;
    padding: 15px 1px 10px 1px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.mw-price-card__heading {
    margin: 0;
    padding: 0;
    color: #323232;
    font-family: "Roboto", Sans-serif;
    font-size: 36px;
    font-weight: 500;
    line-height: 1.2;
}

.mw-price-card--popular .mw-price-card__header {
    background: #FF645F;
}

.mw-price-card--popular .mw-price-card__heading {
    color: #FFFFFF;
    font-weight: 600;
    /* keep long popular names (e.g. GOLD LIFETIME) clear of the corner ribbon */
    padding: 0 24px;
}

/* ---------- Price ---------- */
.mw-price-card__price {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 0;
}

.mw-price-card__amount {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    color: #FF645F;
    font-family: "Open Sans", Sans-serif;
    font-size: 40px; /* 30pt */
    font-weight: 600;
    line-height: 1;
}

.mw-price-card__currency {
    margin-right: 5px;
    font-size: 0.5em; /* smaller, raised "$" like the live design */
    font-weight: 600;
    line-height: 1.1;
}

.mw-price-card__period {
    width: 100%;
    margin-top: 6px;
    color: #FF645F;
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
}

/* ---------- Features ---------- */
.mw-price-card__features {
    flex-grow: 1; /* pushes the footer down so cards align to equal height */
    list-style: none;
    margin: 0;
    padding: 15px 15px;
    color: #666666;
}

.mw-price-card__feature {
    margin: 0;
    padding: 0;
    font-family: "Titillium Web", Sans-serif;
    font-size: 18.67px; /* 14pt */
    line-height: 1.2;
}

.mw-price-card__feature:not(:first-child) {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #DADADA;
}

/* Green "+" used inside some feature strings (was .plus in the old markup). */
.mw-price-card__features .plus {
    color: #61CE70;
    font-weight: 700;
}

.mw-price-card__features i {
    font-style: italic;
}

/* ---------- Footer / CTA ---------- */
.mw-price-card__footer {
    margin-top: auto;
    padding: 20px 15px 25px;
}

.mw-price-card__button {
    display: block;
    width: 100%;
    min-height: 59px;
    padding: 20px 40px;
    background-color: #323232;
    /* !important guards the button against the theme's ID-based link colour
       (.page-template-default #primary .entry-content a) wherever it is placed. */
    color: #FFFFFF !important;
    font-family: "Titillium Web", Sans-serif;
    font-size: 18.67px; /* 14pt, matching the live custom button CSS */
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    white-space: nowrap;
    border-radius: 5px;
    transition: opacity .2s ease;
}

.mw-price-card__button::after {
    content: "\00BB"; /* » */
    display: inline-block;
    position: relative;
    top: -1px;
    margin-left: 8px;
    color: #FF645F; /* coral arrow, matching live */
}

.mw-price-card__button:hover,
.mw-price-card__button:focus {
    color: #FFFFFF !important;
    text-decoration: none !important;
    opacity: .85;
}

/* ---------- "Most popular" corner ribbon ---------- */
.mw-price-card__ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 108px;
    height: 108px;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}

.mw-price-card__ribbon span {
    position: absolute;
    top: 18px;
    right: -36px;
    display: block;
    width: 150px;
    padding: 4px 0;
    background: #FFFFFF;
    color: #000000;
    font-family: "Titillium Web", Sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 12px;
    text-align: center;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}
