/* Cards Down Sale bar. One centered strip, in flow so it scrolls away.
   Story left to right: sale name, 25% off sitewide, code adds 20%, ticket. */

.everest-s20 {
    position: relative;
    z-index: 40;
    color: #f0f7fc;
    overflow: hidden;
    background:
        repeating-linear-gradient(
            -18deg,
            transparent 0 22px,
            rgba(107, 179, 251, 0.05) 22px 23px
        ),
        linear-gradient(90deg, #011018 0%, #03284f 50%, #011018 100%);
    border-bottom: 2px solid #f5d67a;
}

html.everest-s20-on,
body.everest-s20-on {
    scroll-padding-top: calc(var(--everest-header-h, 64px) + 8px);
}

/* Whole bar is the button until the code is applied. */
.everest-s20__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    max-width: 1200px;
    min-height: 56px;
    margin: 0 auto;
    padding: 8px 16px;
    background: transparent;
    border: 0;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.everest-s20.is-applied .everest-s20__inner {
    cursor: default;
}
.everest-s20__inner:focus {
    outline: none;
}
.everest-s20__inner:focus-visible {
    outline: 2px solid #f5d67a;
    outline-offset: -2px;
}
.everest-s20__inner[disabled],
.everest-s20__inner[aria-busy="true"] {
    opacity: 0.75;
    cursor: wait;
}

/* Sale name pill. Desktop only; mobile folds it into the sub line. */
.everest-s20__tag {
    display: none;
    flex-shrink: 0;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(245, 214, 122, 0.55);
    color: #f5d67a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
}

/* Two stacked lines on mobile, one line on desktop. */
.everest-s20__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
}
.everest-s20__main {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: #f0f7fc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.everest-s20__main b {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    color: #ffffff;
}
.everest-s20__sub {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.3;
    color: #7fa8c9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.everest-s20__sub-desk { display: none; }
.everest-s20__sub-mobile { display: inline; }

/* Gold ticket: code on top, action under it. Turns green when applied. */
.everest-s20__cta {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 40px;
    padding: 4px 14px;
    border-radius: 8px;
    background: linear-gradient(180deg, #fff6d6 0%, #f5d67a 45%, #e8b84a 100%);
    border: 1px solid rgba(120, 53, 15, 0.35);
    color: #1c1917;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease, filter 0.15s ease;
}
.everest-s20__inner:hover .everest-s20__cta,
.everest-s20__inner:focus-visible .everest-s20__cta {
    filter: brightness(1.06);
    transform: translateY(-1px);
}
.everest-s20.is-applied .everest-s20__cta {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.55);
    color: #6ee7b7;
    box-shadow: none;
}
.everest-s20.is-applied .everest-s20__inner:hover .everest-s20__cta {
    filter: none;
    transform: none;
}
.everest-s20__code {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.2;
}
.everest-s20__cta-lbl {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    opacity: 0.85;
}
.everest-s20__cta-desk { display: none; }
.everest-s20__cta-mobile { display: inline; }

@media (min-width: 1024px) {
    .everest-s20__inner {
        justify-content: center;
        gap: 24px;
        min-height: 60px;
        padding: 8px 32px;
    }
    .everest-s20__tag {
        display: inline-flex;
    }
    .everest-s20__text {
        flex-direction: row;
        align-items: baseline;
        gap: 14px;
    }
    .everest-s20__main {
        font-size: 19px;
        line-height: 1.3;
    }
    .everest-s20__main b {
        font-size: 24px;
    }
    .everest-s20__sub {
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 0;
        text-transform: none;
        color: #b8d4ed;
    }
    .everest-s20__sub-desk { display: inline; }
    .everest-s20__sub-mobile { display: none; }
    .everest-s20__cta {
        flex-direction: row;
        gap: 10px;
        min-height: 40px;
        padding: 0 16px;
    }
    .everest-s20__cta-lbl {
        padding-left: 10px;
        border-left: 1px solid rgba(28, 25, 23, 0.25);
    }
    .everest-s20.is-applied .everest-s20__cta-lbl {
        border-left-color: rgba(110, 231, 183, 0.4);
    }
    .everest-s20__cta-desk { display: inline; }
    .everest-s20__cta-mobile { display: none; }
}

/* ------------------------------------------------------------------ */
/* Catalog price markup once SUMMIT20 is applied                       */
/* ------------------------------------------------------------------ */

/* Chain: row 1 = ~~full~~ sale [25% off]; row 2 = SUMMIT20 promo [extra 20%]. */
.everest-s20-price {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    line-height: 1.3;
}
.everest-s20-row {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
}
.everest-s20-price del,
.everest-card-price-value .everest-s20-price del,
.everest-card-price--s20 .everest-card-price-value del,
.everest-card-price-value .everest-s20-price del .woocommerce-Price-amount {
    display: inline !important;
    color: #7fa8c9 !important;
    text-decoration: line-through !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}
.everest-s20-price .everest-s20-sale,
.everest-s20-price .everest-s20-sale .woocommerce-Price-amount {
    color: #6bb3fb !important;
    font-size: 17px;
    font-weight: 700 !important;
}
.everest-s20-price .everest-s20-now,
.everest-s20-price ins,
.everest-s20-price .everest-s20-now .woocommerce-Price-amount {
    text-decoration: none !important;
    color: #10b981 !important;
    font-weight: 800 !important;
    font-size: 22px;
    line-height: 1.2;
}
.everest-s20-lbl {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(245, 214, 122, 0.55);
    color: #f5d67a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
}
.everest-s20-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #10b981;
    color: #011a2e;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}
.everest-s20-tag--sale {
    background: #ef4444;
    color: #ffffff;
}

/* Product cards: tighter chain. */
.everest-card-price--s20 .everest-card-price-from {
    display: none;
}
.everest-card-price--s20 .everest-s20-price {
    gap: 3px;
}
.everest-card-price--s20 .everest-s20-price .everest-s20-sale {
    font-size: 15px;
}
.everest-card-price--s20 .everest-s20-price .everest-s20-now {
    font-size: 19px;
}
.everest-card-price--s20 .everest-s20-tag--sale {
    display: none;
}

/* PDP hero. */
.everest-pdp-price .everest-s20-price {
    gap: 6px;
}
.everest-pdp-price .everest-s20-price del {
    font-size: 19px !important;
}
.everest-pdp-price .everest-s20-price .everest-s20-sale {
    font-size: 24px;
}
.everest-pdp-price .everest-s20-price .everest-s20-now {
    font-size: 30px;
}
@media (min-width: 1024px) {
    .everest-pdp-price:not(.everest-pdp-price--sticky) .everest-s20-price .everest-s20-sale {
        font-size: 28px;
    }
    .everest-pdp-price:not(.everest-pdp-price--sticky) .everest-s20-price .everest-s20-now {
        font-size: 36px;
    }
}

/* Mobile sticky bar: single row, promo only. */
.everest-pdp-price--sticky .everest-s20-price {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
}
.everest-pdp-price--sticky .everest-s20-row--sale .everest-s20-sale,
.everest-pdp-price--sticky .everest-s20-row--sale .everest-s20-tag--sale,
.everest-pdp-price--sticky .everest-s20-row--code .everest-s20-lbl,
.everest-pdp-price--sticky .everest-s20-row--code .everest-s20-tag {
    display: none;
}
.everest-pdp-price--sticky .everest-s20-price del {
    font-size: 15px !important;
}
.everest-pdp-price--sticky .everest-s20-price .everest-s20-now {
    font-size: 20px;
}

/* Cart notice: applied confirmation or one-tap apply. */
.everest-s20-cart-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0 0 12px;
    padding: 12px 14px;
    background: #0a1628;
    border: 1px solid rgba(245, 214, 122, 0.45);
    border-radius: 10px;
    color: #a3c4d9;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.everest-s20-cart-notice.is-applied {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(16, 185, 129, 0.08);
    cursor: default;
}
.everest-s20-cart-notice:hover:not(.is-applied) {
    border-color: #f5d67a;
}
.everest-s20-cart-notice[disabled] {
    opacity: 0.7;
    cursor: wait;
}
.everest-s20-cart-notice svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #f5d67a;
}
.everest-s20-cart-notice.is-applied svg {
    color: #10b981;
}
.everest-s20-cart-notice p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: #b8d4ed;
}
.everest-s20-cart-notice strong {
    color: #ffffff;
}
.everest-s20-cart-notice.is-applied strong {
    color: #6ee7b7;
}
.everest-s20-cart-notice .everest-s20-lbl {
    vertical-align: 1px;
}

/* Coupon box applied state. */
.evp-cart-coupon.has-applied {
    border-color: rgba(16, 185, 129, 0.5);
}
.evp-cart-coupon.has-applied .evp-cart-coupon__label {
    color: #6ee7b7;
}
.evp-cart-coupon__applied em {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-style: normal;
}
.evp-cart-coupon__check {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #10b981;
}
.everest-s20-coupon-sub,
.everest-s20-coupon-code {
    color: #6ee7b7;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.evp-cart-foot__label .everest-s20-lbl,
.evp-cart-summary__row--coupon .everest-s20-lbl {
    margin-right: 4px;
    vertical-align: 1px;
}
.evp-cart-foot__row--discount .evp-cart-foot__label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Cart line hint. */
.everest-s20-cart-hint {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 2px;
    color: #10b981;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}
.everest-s20-cart-hint .everest-s20-lbl {
    padding: 1px 6px;
}
.everest-s20-cart-hint__each {
    flex-basis: 100%;
    text-align: right;
    color: #7fa8c9;
    font-size: 13px;
    font-weight: 600;
}
.evp-cart-item__price .everest-s20-cart-hint {
    flex-wrap: wrap;
    justify-content: flex-end;
}
.evp-cart-row__unit .everest-s20-cart-hint {
    margin-top: 0;
}
