/* ==========================================================================
   Everest Side Cart — slide-out cart drawer
   Palette sampled from the cart page: page #0a1628, card #162d4a,
   border #234567, inner #0f2137, accent #6bb3fb (hover #9dcbfd),
   text #a3c4d9, muted #93b4cc (AA on both navy surfaces), green #10b981,
   thumb bg #1c3a5c. Sections are separated by 1px hairlines, not cards.
   All selectors namespaced .evp-cart-*.
   ========================================================================== */

.evp-cart {
    --evp-muted: #93b4cc;
    --evp-hair: rgba(163, 196, 217, 0.14);
    --evp-gap: 18px;
    position: fixed;
    inset: 0;
    z-index: 10500; /* above header (z-50) and promo popup (10000) is fine — drawer opens on demand */
    pointer-events: none;
    /* Closed drawer is translated past the right edge; without this clip it
       inflates layout width and lets iOS pan the whole page sideways. */
    overflow: hidden;
}

.evp-cart__overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 26, 46, 0.7);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.evp-cart__drawer {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    /* 100% of the fixed shell (not 100vw) — avoids iOS vw scrollbar bleed */
    width: min(420px, calc(100% - 48px));
    display: flex;
    flex-direction: column;
    background: #0f2137;
    border-left: 1px solid #234567;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overscroll-behavior: contain;
    min-height: 0;
    overflow-x: hidden;
}

.evp-cart.evp-cart--open {
    pointer-events: auto;
}

.evp-cart.evp-cart--open .evp-cart__overlay {
    opacity: 1;
}

.evp-cart.evp-cart--open .evp-cart__drawer {
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    .evp-cart__overlay,
    .evp-cart__drawer,
    .evp-cart__drawer .evp-cart-coupon__panel,
    .evp-cart__drawer .evp-cart-coupon__panel-inner,
    .evp-cart-item__qty-num,
    .evp-cart-shipbar__fill {
        transition: none;
    }
}

/* Body scroll lock (JS adds class to <html>); padding compensation is set
   inline by JS so the page doesn't shift when the scrollbar disappears. */
html.evp-cart-lock,
html.evp-cart-lock body {
    overflow: hidden !important;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.evp-cart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #234567;
    background: #162d4a;
    flex-shrink: 0;
}

.evp-cart-head__title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}

.evp-cart-head__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: #0a1628;
    background: #6bb3fb;
    border-radius: 9999px;
}

.evp-cart-head__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.evp-cart-head__viewcart {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6bb3fb;
    text-decoration: none;
    white-space: nowrap;
}

.evp-cart-head__viewcart:hover {
    color: #9dcbfd;
    text-decoration: underline;
}

.evp-cart-head__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: -6px -8px -6px 0;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: #a3c4d9;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.evp-cart-head__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.evp-cart-head__close svg {
    width: 22px;
    height: 22px;
}

/* --------------------------------------------------------------------------
   Free shipping progress bar
   -------------------------------------------------------------------------- */

.evp-cart-shipbar {
    padding: 14px 1.25rem 12px;
    background: #0a1628;
    border-bottom: 1px solid var(--evp-hair);
    flex-shrink: 0;
}

.evp-cart-shipbar__text {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #a3c4d9;
}

.evp-cart-shipbar__text strong {
    color: #fff;
}

.evp-cart-shipbar--unlocked .evp-cart-shipbar__text strong:first-child {
    color: #10b981;
}

/* One track, $0 → top tier. Ticks mark each threshold. */
.evp-cart-shipbar__track {
    position: relative;
    height: 6px;
    border-radius: 9999px;
    background: #234567;
}

.evp-cart-shipbar__fill {
    height: 100%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #6bb3fb, #9dcbfd);
    transition: width 0.45s ease;
}

.evp-cart-shipbar--unlocked .evp-cart-shipbar__fill {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.evp-cart-shipbar__tick {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    background: #0a1628;
    border: 2px solid #234567;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.evp-cart-shipbar__tick.is-done {
    border-color: #10b981;
    background: #10b981;
}

.evp-cart-shipbar__ticks {
    position: relative;
    height: 18px;
    margin-top: 6px;
}

.evp-cart-shipbar__ticklabel {
    position: absolute;
    top: 0;
    transform: translateX(-100%);
    padding-right: 2px;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    color: var(--evp-muted);
    white-space: nowrap;
}

.evp-cart-shipbar__ticklabel.is-done {
    color: #10b981;
}

.evp-cart-shipbar__ticklabel .woocommerce-Price-amount {
    color: inherit;
}

/* --------------------------------------------------------------------------
   Scrollable body
   -------------------------------------------------------------------------- */

/* Shipbar + body scroll together; the footer below stays pinned. */
.evp-cart__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.evp-cart-body {
    padding: 4px 1.25rem var(--evp-gap);
}

/* Line items: flat rows separated by hairlines */

.evp-cart-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.evp-cart-item {
    display: flex;
    gap: 14px;
    padding: var(--evp-gap) 0;
    border-bottom: 1px solid var(--evp-hair);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.evp-cart-item.evp-cart-item--removing {
    opacity: 0;
    transform: translateX(12px);
}

.evp-cart-item__thumb {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #1c3a5c;
}

.evp-cart-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.evp-cart-item__info {
    flex: 1;
    min-width: 0;
}

.evp-cart-item__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.evp-cart-item__name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}

.evp-cart-item__name a {
    color: inherit;
    text-decoration: none;
}

.evp-cart-item__name a:hover {
    color: #6bb3fb;
}

.evp-cart-item__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: -4px -4px 0 0;
    flex-shrink: 0;
    border: none;
    border-radius: 0.4rem;
    background: transparent;
    color: var(--evp-muted);
    cursor: pointer;
    transition: color 0.2s ease;
}

.evp-cart-item__remove:hover {
    color: #ef4444;
}

.evp-cart-item__remove svg {
    width: 14px;
    height: 14px;
}

.evp-cart-item__meta {
    margin-top: 0.15rem;
    font-size: 13px;
    color: var(--evp-muted);
}

.evp-cart-item__meta dl,
.evp-cart-item__meta dt,
.evp-cart-item__meta dd,
.evp-cart-item__meta p {
    display: inline;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--evp-muted);
}

.evp-cart-item__bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 10px;
}

/* Compact inline stepper: the only bordered control on the row */
.evp-cart-item__qty {
    display: inline-flex;
    align-items: center;
    height: 36px;
    background: #0f2137;
    border: 1px solid #234567;
    border-radius: 8px;
    overflow: hidden;
}

.evp-cart-item__qty button {
    width: 32px;
    height: 34px;
    border: none;
    background: transparent;
    color: #a3c4d9;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.evp-cart-item__qty button:hover:not(:disabled) {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.evp-cart-item__qty button:disabled {
    opacity: 0.35;
    cursor: default;
}

.evp-cart-item__qty-num {
    min-width: 26px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.evp-cart-item__qty-num.is-changing {
    opacity: 0.4;
    transform: translateY(-2px);
}

.evp-cart-item__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.25;
}

.evp-cart-item__price del {
    font-size: 13px;
    color: var(--evp-muted);
}

.evp-cart-item__subtotal {
    font-size: 16px;
    font-weight: 800;
    color: #6bb3fb;
    transition: transform 0.15s ease;
}

.evp-cart-item__subtotal.evp-cart-bump {
    transform: scale(1.05);
}

.evp-cart-item__each {
    font-size: 13px;
    color: var(--evp-muted);
}

.evp-cart-item__qtycol {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.evp-cart-item__nudge {
    margin: 0;
    max-width: 10em;
    font-size: 15px;
    line-height: 1.4;
    color: var(--evp-muted);
}

.evp-cart-item__applied {
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #34d399;
}

.evp-cart-foot__callout {
    margin: 8px 0;
    padding: 8px 10px;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
    text-align: center;
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border-radius: 8px;
}

/* Shipment protection */

.evp-cart-protect {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.75rem;
    background: rgba(16, 185, 129, 0.07);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 0.75rem;
}

.evp-cart-protect__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #10b981;
}

.evp-cart-protect__label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.evp-cart-protect__free {
    font-size: 0.85rem;
    font-weight: 800;
    color: #10b981;
}

/* Tooltip */

.evp-cart-tip {
    position: relative;
    display: inline-flex;
}

.evp-cart-tip__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 1px solid #6a8fa8;
    border-radius: 9999px;
    background: transparent;
    color: #6a8fa8;
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 1;
    cursor: help;
}

.evp-cart-tip__text {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 230px;
    padding: 0.6rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.45;
    color: #a3c4d9;
    background: #0a1628;
    border: 1px solid #234567;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 5;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.evp-cart-tip:hover .evp-cart-tip__text,
.evp-cart-tip__btn:focus + .evp-cart-tip__text {
    opacity: 1;
    visibility: visible;
}

/* Shipment protection keeps its own (unchanged) card styling; only its
   vertical rhythm is matched to the flat rows around it. */
.evp-cart-body .evp-cart-protect {
    margin: var(--evp-gap) 0;
}

/* Companion-item upsell: flat row, hairline below, compact pill button */

.evp-cart-reconstitute {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    padding: 0 0 var(--evp-gap);
    margin: 0 0 var(--evp-gap);
    border-bottom: 1px solid var(--evp-hair);
}

.evp-cart-reconstitute__thumb {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #1c3a5c;
}

.evp-cart-reconstitute__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.evp-cart-reconstitute__info {
    flex: 1;
    min-width: 0;
}

/* Full-width label above the row so it never wraps beside the thumb */
.evp-cart-reconstitute__eyebrow {
    flex: 0 0 100%;
    margin: 0 0 -4px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6bb3fb;
}

.evp-cart-reconstitute__name {
    margin: 2px 0 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.evp-cart-reconstitute__price {
    margin: 2px 0 0;
    font-size: 15px;
    font-weight: 700;
    color: #a3c4d9;
}

.evp-cart-reconstitute__add {
    flex-shrink: 0;
    height: 36px;
    padding: 0 16px;
    border: none;
    border-radius: 9999px;
    background: #6bb3fb;
    color: #0a1628;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.evp-cart-reconstitute__add:hover:not(:disabled) {
    background: #9dcbfd;
}

.evp-cart-reconstitute__add:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Coupon / shipping notice */

.evp-cart-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.75rem;
    background: #0a1628;
    border: 1px solid #234567;
    border-radius: 0.5rem;
}

.evp-cart-notice svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: #6bb3fb;
}

.evp-cart-notice p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #a3c4d9;
}

.evp-cart-notice strong {
    color: #fff;
}

.evp-cart-notice--account a {
    color: #6bb3fb;
    font-weight: 700;
    text-decoration: underline;
}

.everest-account-nudge {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    background: #0f2137;
    border: 1px solid rgba(107, 179, 251, 0.35);
    border-radius: 0.75rem;
}
.everest-account-nudge p {
    margin: 0 0 0.6rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #a3c4d9;
}
.everest-account-nudge strong { color: #fff; }
.everest-account-nudge a {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #6bb3fb;
}

/* Points nudge: a single flat line in the footer (renders at $25+ only) */
.evp-cart-rewards {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0;
}
.evp-cart-rewards svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
    color: #10b981;
}
.evp-cart-rewards p {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: var(--evp-muted);
}
.evp-cart-rewards--member p,
.evp-cart-rewards__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #e2eef8;
}
.evp-cart-rewards__sub {
    margin-top: 2px !important;
    font-size: 13px !important;
    color: var(--evp-muted) !important;
}
.evp-cart-rewards__link {
    display: inline-block;
    margin-top: 2px;
    font-size: 13px;
    color: #38bdf8;
    text-decoration: none;
}
.evp-cart-rewards__link:hover { color: #7dd3fc; }

/* Coupon entry (drawer only; the cart page styles .evp-cart-coupon itself).
   Collapsed by default behind a text link; applied codes render as chips. */

.evp-cart__drawer .evp-cart-coupon {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
}

.evp-cart__drawer .evp-cart-coupon__chips {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.evp-cart__drawer .evp-cart-coupon__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    height: 32px;
    padding: 0 6px 0 10px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.evp-cart__drawer .evp-cart-coupon__check {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.evp-cart__drawer .evp-cart-coupon__chip-code {
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.evp-cart__drawer .evp-cart-coupon__chip-amt {
    color: #e2eef8;
    font-weight: 600;
    white-space: nowrap;
}

.evp-cart__drawer .evp-cart-coupon__chip-amt .woocommerce-Price-amount {
    color: inherit;
}

.evp-cart__drawer .evp-cart-coupon__chip-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    color: #34d399;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.evp-cart__drawer .evp-cart-coupon__chip-x:hover {
    background: rgba(16, 185, 129, 0.2);
    color: #fff;
}

.evp-cart__drawer .evp-cart-coupon__chip-x svg {
    width: 12px;
    height: 12px;
}

.evp-cart__drawer .evp-cart-coupon__toggle {
    display: inline-block;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #6bb3fb;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(107, 179, 251, 0.4);
    cursor: pointer;
    transition: color 0.15s ease;
}

.evp-cart__drawer .evp-cart-coupon__toggle:hover {
    color: #9dcbfd;
}

.evp-cart__drawer .evp-cart-coupon.is-open .evp-cart-coupon__toggle {
    color: var(--evp-muted);
    text-decoration: none;
}

/* grid-template-rows 0fr → 1fr animates height without a fixed max-height */
.evp-cart__drawer .evp-cart-coupon__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.15s ease;
}

.evp-cart__drawer .evp-cart-coupon.no-anim .evp-cart-coupon__panel {
    transition: none;
}

.evp-cart__drawer .evp-cart-coupon.is-open .evp-cart-coupon__panel {
    grid-template-rows: 1fr;
}

.evp-cart__drawer .evp-cart-coupon__panel-inner {
    min-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.evp-cart__drawer .evp-cart-coupon.is-open .evp-cart-coupon__panel-inner {
    opacity: 1;
}

.evp-cart__drawer .evp-cart-coupon__form {
    display: flex;
    gap: 8px;
    padding-top: 10px;
}

.evp-cart__drawer .evp-cart-coupon__input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #234567;
    border-radius: 8px;
    background: #0a1628;
    color: #fff;
    font-size: 15px;
}

.evp-cart__drawer .evp-cart-coupon__input::placeholder {
    color: var(--evp-muted);
}

.evp-cart__drawer .evp-cart-coupon__input:focus {
    outline: none;
    border-color: #6bb3fb;
}

.evp-cart__drawer .evp-cart-coupon__btn {
    flex-shrink: 0;
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 9999px;
    background: #6bb3fb;
    color: #011a2e;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s ease;
}

.evp-cart__drawer .evp-cart-coupon__btn:hover {
    background: #9dcbfd;
}

.evp-cart__drawer .evp-cart-coupon__msg {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.4;
}

.evp-cart__drawer .evp-cart-coupon__msg.is-error {
    color: #fca5a5;
}

.evp-cart__drawer .evp-cart-coupon__msg.is-ok {
    color: #34d399;
}

.evp-cart-foot__row--discount .evp-cart-foot__label,
.evp-cart-foot__row--discount .evp-cart-foot__amount {
    color: #34d399;
}

.evp-cart--busy .evp-cart-coupon__btn,
.evp-cart--busy .evp-cart-coupon__chip-x {
    pointer-events: none;
    opacity: 0.6;
}

/* Ship-cutoff line (inside the shipbar, under the tick labels) */

.evp-cart-urgency {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--evp-hair);
    font-size: 14px;
    font-weight: 600;
    color: #e2eef8;
}

.evp-cart-urgency__dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 9999px;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}

.evp-cart-urgency svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: #10b981;
}

.evp-cart-urgency strong {
    color: #10b981;
}

/* Empty state */

.evp-cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3.5rem 1.5rem;
}

.evp-cart-empty svg {
    width: 56px;
    height: 56px;
    color: var(--evp-muted);
    margin-bottom: 1rem;
}

.evp-cart-empty__title {
    margin: 0 0 0.25rem;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.evp-cart-empty__sub {
    margin: 0 0 1.25rem;
    font-size: 0.85rem;
    color: #a3c4d9;
}

.evp-cart-empty__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1.5rem;
    border-radius: 0.75rem;
    background: #6bb3fb;
    color: #0a1628;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
    transition: background 0.2s ease;
}

.evp-cart-empty__btn:hover {
    background: #9dcbfd;
}

/* --------------------------------------------------------------------------
   Sticky footer
   -------------------------------------------------------------------------- */

.evp-cart-foot {
    flex-shrink: 0;
    padding: 14px 1.25rem calc(14px + env(safe-area-inset-bottom, 0px));
    background: #162d4a;
    border-top: 1px solid var(--evp-hair);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
}

.evp-cart-foot__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 4px;
}

.evp-cart-foot__label {
    font-size: 15px;
    font-weight: 500;
    color: #a3c4d9;
}

.evp-cart-foot__amount {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    transition: transform 0.15s ease;
}

.evp-cart-foot__amount.evp-cart-bump {
    transform: scale(1.04);
}

.evp-cart-foot__row--total {
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--evp-hair);
}

.evp-cart-foot__row--total .evp-cart-foot__label {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.evp-cart-foot__row--total .evp-cart-foot__amount {
    font-size: 20px;
    font-weight: 800;
}

.evp-cart-foot__micro {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--evp-muted);
}

.evp-cart-express {
    margin: 0 0 10px;
    min-height: 0;
}

.evp-cart-express[hidden] {
    display: none !important;
}

.evp-cart-express .woocommerce-mini-cart__buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
}

/* Woo prints View cart / Checkout on this hook. We already have those. */
.evp-cart-express a.button.wc-forward,
.evp-cart-express a.checkout {
    display: none !important;
}

.evp-cart-express iframe,
.evp-cart-express apple-pay-button,
.evp-cart-express .apple-pay-button {
    display: block;
    width: 100%;
    min-height: 40px;
}

.evp-cart-foot__checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    border-radius: 0.75rem;
    background: #6bb3fb; /* matches the main cart page's Proceed to Checkout */
    color: #011a2e;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background 0.2s ease;
}

.evp-cart-foot__checkout:hover {
    background: #9dcbfd;
}

.evp-cart-foot__continue {
    display: block;
    width: auto;
    margin: 10px auto 0;
    padding: 4px 0;
    border: none;
    background: transparent;
    color: #a3c4d9;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(163, 196, 217, 0.4);
    cursor: pointer;
    transition: color 0.15s ease;
}

.evp-cart-foot__continue:hover {
    color: #fff;
}

/* --------------------------------------------------------------------------
   Loading spinner overlay
   -------------------------------------------------------------------------- */

.evp-cart__spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 33, 55, 0.55);
    z-index: 4;
}

.evp-cart__spinner span {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(40, 183, 217, 0.25);
    border-top-color: #6bb3fb;
    border-radius: 9999px;
    animation: evpCartSpin 0.7s linear infinite;
}

@keyframes evpCartSpin {
    to { transform: rotate(360deg); }
}

/* Pending state on interactive controls */
.evp-cart--busy .evp-cart-item__qty button,
.evp-cart--busy .evp-cart-item__remove,
.evp-cart--busy .evp-cart-reconstitute__add {
    pointer-events: none;
    opacity: 0.55;
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

/* Unclaimed free-gift reminder — gold strip pinned above the checkout button */
.evp-cart-foot__gift {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0 0 0.6rem;
    padding: 0.55rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 0.6rem;
}

@media (max-width: 639px) {
    /* Leave a gutter showing the dimmed page behind;
       tapping it closes the drawer via the overlay. */
    .evp-cart__drawer {
        width: calc(100% - 48px);
    }

    .evp-cart-head {
        padding: 1rem;
    }

    .evp-cart-shipbar {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .evp-cart-body {
        padding: 4px 1rem var(--evp-gap);
    }

    .evp-cart-foot {
        padding: 12px 1rem calc(12px + env(safe-area-inset-bottom, 0px));
    }

    .evp-cart-tip__text {
        left: auto;
        right: -12px;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Main cart page — Shipment Protection row (shared component)
   -------------------------------------------------------------------------- */

.evp-cart-protect--page {
    margin-bottom: 1.5rem;
}

/* Christmas in July — display-only gift cards (resolved variations) */
.evp-cart-gift {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 0.65rem;
    background: linear-gradient(135deg, #14532d 0%, #1c3a5c 100%);
    border: 1px solid rgba(253, 230, 138, 0.35);
    border-radius: 0.75rem;
}
.evp-cart-gift--locked {
    background: linear-gradient(135deg, #162d4a 0%, #1c3a5c 100%);
    border-color: rgba(40, 183, 217, 0.35);
}
.evp-cart-gift__thumb {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    background: #0f2137;
    display: block;
}
.evp-cart-gift__thumb img,
.evp-cart-gift__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.evp-cart-gift__icon {
    flex-shrink: 0;
    font-size: 1.35rem;
    line-height: 1.2;
}
.evp-cart-gift__info {
    flex: 1;
    min-width: 0;
}
.evp-cart-gift__eyebrow {
    margin: 0 0 0.15rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fde68a;
}
.evp-cart-gift--locked .evp-cart-gift__eyebrow {
    color: #6bb3fb;
}
.evp-cart-gift__name {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}
.evp-cart-gift__name a {
    color: inherit;
    text-decoration: none;
}
.evp-cart-gift__name a:hover {
    color: #6bb3fb;
}
.evp-cart-gift__text {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    line-height: 1.35;
    color: #b8d4ed;
}
.evp-cart-gift__text strong {
    color: #fff;
}

/* ── Choose-your-free-gift picker (tiered promo) ─────────────────────────── */
.evp-gift-widget {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
}

/* Unlocked tier — collapsible card (<details>) */
.evp-gift-card {
    border-radius: 0.75rem;
    border: 1px solid rgba(253, 230, 138, 0.4);
    background: linear-gradient(135deg, #14532d 0%, #1c3a5c 100%);
    overflow: hidden;
}
.evp-gift-card--done {
    border-color: rgba(16, 185, 129, 0.45);
    background: linear-gradient(135deg, #0f3b26 0%, #14293f 100%);
}
.evp-gift-card__summary {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.evp-gift-card__summary::-webkit-details-marker { display: none; }
.evp-gift-card__icon { flex-shrink: 0; font-size: 1rem; line-height: 1; }
.evp-gift-card__check {
    display: inline-flex;
    flex-shrink: 0;
    width: 1.05rem;
    height: 1.05rem;
    color: #10b981;
}
.evp-gift-card__check svg { width: 100%; height: 100%; }
.evp-gift-card__label {
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    line-height: 1.3;
    color: #b8d4ed;
}
.evp-gift-card__label strong { color: #fff; }
.evp-gift-card__action {
    flex-shrink: 0;
    padding: 0.28rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 999px;
    color: #b8d4ed;
    border: 1px solid rgba(184, 212, 237, 0.35);
}
.evp-gift-card__action--go {
    color: #011a2e;
    background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
    border-color: transparent;
}
.evp-gift-card[open] .evp-gift-card__action { opacity: 0.55; }
.evp-gift-card .evp-gift-options { padding: 0 0.7rem 0.7rem; }

/* Next locked tier — slim progress card (only ONE renders) */
.evp-gift-next {
    padding: 0.6rem 0.75rem 0.65rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #162d4a 0%, #1c3a5c 100%);
    border: 1px solid rgba(107, 179, 251, 0.3);
}
.evp-gift-next__row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.evp-gift-next__icon { flex-shrink: 0; font-size: 1rem; line-height: 1; }
.evp-gift-next__text {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 0.78rem;
    color: #b8d4ed;
}
.evp-gift-next__text strong { color: #fff; }
.evp-gift-next__at {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #fbbf24;
}
.evp-gift-next__bar {
    height: 0.32rem;
    margin: 0.45rem 0 0.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}
.evp-gift-next__bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}
.evp-gift-next__opts {
    margin: 0;
    font-size: 0.7rem;
    line-height: 1.4;
    color: #7fa8c9;
}

.evp-gift-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.4rem;
}
.evp-gift-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.55rem;
    background: rgba(1, 26, 46, 0.45);
    border: 1px solid rgba(107, 179, 251, 0.25);
    border-radius: 0.6rem;
}
.evp-gift-option--selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}
.evp-gift-option .evp-cart-gift__thumb {
    width: 42px;
    height: 42px;
}
.evp-gift-option__name {
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.3;
}
.evp-gift-option__name del {
    margin-left: 0.35rem;
    font-weight: 400;
    color: #7fa8c9;
}
.evp-gift-option__name strong {
    margin-left: 0.3rem;
    color: #10b981;
    letter-spacing: 0.03em;
}
.evp-gift-option__btn {
    flex-shrink: 0;
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #011a2e;
    background: #6bb3fb;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.15s ease;
}
.evp-gift-option__btn:hover {
    background: #9dcbfd;
}
.evp-gift-option__btn:disabled {
    opacity: 0.6;
    cursor: default;
}
.evp-gift-option__btn--remove {
    color: #b8d4ed;
    background: transparent;
    border: 1px solid rgba(184, 212, 237, 0.4);
}
.evp-gift-option__btn--remove:hover {
    background: rgba(184, 212, 237, 0.12);
}

/* FREE price + badge on gift lines (drawer + classic cart) */
.evp-free-gift-free {
    color: #10b981;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.evp-free-gift-badge {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 999px;
}
.evp-cart-item__ascent-label {
    display: block;
    margin: 0 0 2px;
    color: #6bb3fb;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.evp-cart-ascent-note {
    margin: 0 0 var(--evp-gap);
    color: var(--evp-muted);
    font-size: 13px;
}
.evp-cart-item__qty--gift {
    justify-content: center;
    min-width: 2.2rem;
}

body.everest-halloween .evp-gift-widget__choose {
    margin: 0 0 0.5rem;
    color: #fbbf24;
}

body.everest-halloween .evp-gift-options {
    flex-direction: row;
    flex-wrap: wrap;
}

body.everest-halloween .evp-gift-option {
    flex: 1 1 auto;
    min-width: 7rem;
    border-radius: 999px;
    border-color: rgba(245, 158, 11, 0.45);
    background: #1a0b2e;
}

body.everest-halloween .evp-gift-option--selected {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.18);
}

body.everest-halloween .evp-gift-option .evp-cart-gift__thumb {
    display: none;
}

