.hspv-cart-wallet {
    --hspv-ink: #29251f;
    --hspv-muted: #70675e;
    --hspv-line: #dfd7cd;
    --hspv-soft: #f7f3ed;
    --hspv-orange: #f08424;
    --hspv-orange-deep: #ba4d0c;
    --hspv-green: #1f7457;
    margin: 0 0 26px;
    overflow: hidden;
    border: 1px solid var(--hspv-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(45, 35, 24, .055);
    color: var(--hspv-ink);
}

.hspv-cart-wallet * {
    box-sizing: border-box;
}

.hspv-cart-wallet__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr);
    gap: 28px;
    background: var(--hspv-soft);
    padding: 25px clamp(22px, 3.5vw, 36px);
}

.hspv-cart-wallet__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 15px;
}

.hspv-cart-wallet__eyebrow,
.hspv-cart-wallet__progress-label {
    margin: 0;
    color: var(--hspv-orange-deep);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hspv-cart-wallet__expiry {
    color: var(--hspv-muted);
    font-size: 12px;
    white-space: nowrap;
}

.hspv-cart-wallet__badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    margin-bottom: 10px;
    border: 1px solid #edc9aa;
    border-radius: 999px;
    background: #fff5ec;
    padding: 3px 10px;
    color: var(--hspv-orange-deep);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.hspv-cart-wallet h2 {
    margin: 0;
    color: var(--hspv-ink);
    font-size: clamp(26px, 2.8vw, 34px);
    font-weight: 660;
    letter-spacing: -.035em;
    line-height: 1.1;
}

.hspv-cart-wallet__summary > p {
    max-width: 650px;
    margin: 11px 0 0;
    color: var(--hspv-muted);
    font-size: 14px;
    line-height: 1.55;
}

.hspv-cart-wallet code {
    border: 1px solid var(--hspv-line);
    border-radius: 5px;
    background: #fff;
    padding: 3px 7px;
    color: var(--hspv-ink);
    font: 750 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .04em;
}

.hspv-cart-wallet__progress-card {
    align-self: stretch;
    border: 1px solid var(--hspv-line);
    border-radius: 10px;
    background: #fff;
    padding: 20px;
}

.hspv-cart-wallet__progress-card strong {
    display: block;
    margin-top: 9px;
    color: var(--hspv-ink);
    font-size: 18px;
    letter-spacing: -.02em;
    line-height: 1.32;
}

.hspv-cart-wallet__progress-card > p:not(.hspv-cart-wallet__progress-label) {
    margin: 8px 0 0;
    color: var(--hspv-muted);
    font-size: 13px;
    line-height: 1.45;
}

.hspv-cart-wallet__track {
    overflow: hidden;
    height: 5px;
    margin-top: 17px;
    border-radius: 999px;
    background: #e6e0d8;
}

.hspv-cart-wallet__track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--hspv-orange);
}

.hspv-cart-wallet__all-tiers {
    border-top: 1px solid var(--hspv-line);
    background: #fff;
}

.hspv-cart-wallet__all-tiers > summary {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    list-style: none;
    padding: 14px clamp(18px, 2.5vw, 24px);
    color: var(--hspv-ink);
    font-size: 13px;
    line-height: 1.35;
}

.hspv-cart-wallet__all-tiers > summary::-webkit-details-marker {
    display: none;
}

.hspv-cart-wallet__all-tiers > summary > span {
    font-weight: 750;
}

.hspv-cart-wallet__all-tiers > summary > small {
    margin-left: auto;
    color: var(--hspv-muted);
    font-size: 11.5px;
}

.hspv-cart-wallet__all-tiers > summary::after {
    content: "+";
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    border: 1px solid var(--hspv-line);
    border-radius: 50%;
    color: var(--hspv-muted);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.hspv-cart-wallet__all-tiers[open] > summary {
    border-bottom: 1px solid var(--hspv-line);
}

.hspv-cart-wallet__all-tiers[open] > summary::after {
    content: "\2212";
}

.hspv-cart-wallet__tiers {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 14px clamp(14px, 2.5vw, 22px);
    color: var(--hspv-ink);
}

.hspv-cart-wallet__tier {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 105px;
    flex-direction: column;
    border: 1px solid var(--hspv-line);
    border-radius: 8px;
    background: #fff;
    padding: 12px;
}

.hspv-cart-wallet__step {
    color: var(--hspv-muted);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hspv-cart-wallet__tier > strong {
    margin-top: 6px;
    color: var(--hspv-ink);
    font-size: 17px;
    letter-spacing: -.025em;
}

.hspv-cart-wallet__tier > small {
    color: var(--hspv-muted);
    font-size: 12px;
}

.hspv-cart-wallet__tier-status {
    margin-top: auto;
    color: var(--hspv-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.hspv-cart-wallet__tier.is-unlocked {
    border-color: #c8d9d1;
    background: #fbfdfc;
}

.hspv-cart-wallet__tier.is-unlocked .hspv-cart-wallet__tier-status {
    color: var(--hspv-green);
}

.hspv-cart-wallet__tier.is-applied {
    border-color: var(--hspv-orange);
    background: #fff8f1;
}

.hspv-cart-wallet__tier.is-applied .hspv-cart-wallet__tier-status {
    color: var(--hspv-orange-deep);
}

.hspv-cart-wallet__tier.is-locked {
    opacity: .58;
}

.hspv-cart-wallet__footnote {
    margin: 0;
    border-top: 1px solid #f0ebe5;
    background: #fff;
    padding: 11px clamp(14px, 2.5vw, 22px) 13px;
    color: var(--hspv-muted);
    font-size: 11.5px;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .woocommerce table.cart .product-thumbnail,
    .woocommerce #content table.cart .product-thumbnail,
    .woocommerce-page table.cart .product-thumbnail,
    .woocommerce-page #content table.cart .product-thumbnail {
        display: block;
        padding: 14px 12px 4px;
        text-align: center !important;
    }

    .woocommerce table.cart .product-thumbnail::before,
    .woocommerce-page table.cart .product-thumbnail::before {
        display: none;
    }

    .woocommerce table.cart .product-thumbnail a,
    .woocommerce-page table.cart .product-thumbnail a {
        display: inline-block;
        overflow: hidden;
        width: 84px;
        border: 1px solid var(--hspv-line);
        border-radius: 9px;
        background: #fff;
    }

    .woocommerce table.cart .product-thumbnail picture,
    .woocommerce table.cart .product-thumbnail img,
    .woocommerce-page table.cart .product-thumbnail picture,
    .woocommerce-page table.cart .product-thumbnail img {
        display: block;
        width: 84px !important;
        height: 84px !important;
        margin: 0 !important;
        object-fit: cover;
    }
}

@media (max-width: 820px) {
    .hspv-cart-wallet__hero {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .hspv-cart-wallet__tiers {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .hspv-cart-wallet__tier {
        width: 155px;
        min-width: 155px;
        scroll-snap-align: start;
    }
}

@media (max-width: 520px) {
    .hspv-cart-wallet {
        border-radius: 13px;
    }

    .hspv-cart-wallet__hero {
        padding: 21px 18px;
    }

    .hspv-cart-wallet__topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .hspv-cart-wallet h2 {
        font-size: 26px;
    }

    .hspv-cart-wallet__progress-card {
        padding: 17px;
    }

    .hspv-cart-wallet__all-tiers > summary {
        padding: 13px 18px;
    }

    .hspv-cart-wallet__all-tiers > summary > small {
        display: none;
    }

    .hspv-cart-wallet__tiers {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow: visible;
    }

    .hspv-cart-wallet__tier {
        width: auto;
        min-width: 0;
        min-height: 103px;
    }

    .hspv-cart-wallet__tier:last-child {
        grid-column: 1 / -1;
    }
}
