/* shop.html inline style block 1 (from line 41) */
/* Theme Variables (Copied from Prompts Poetry) */
        :root {
            /* Light Mode Defaults */
            --bg-color: #eef2f7;
            --shop-light-page-bg: #eef2f7;
            --text-main: #1e293b;
            --text-dim: #94a3b8;
            --text-bold: #0f172a;
            --card-bg: #f8fafc;
            --card-border: #e2e8f0;
            --accent-purple: #9b5de5;
            --font-serif: 'Playfair Display', serif;
            --font-sans: 'Outfit', sans-serif;
            --accent-color: #3b82f6;
            --shop-category-active-blue: #6b9ece;
            --shop-category-active-blue-rgb: 107, 158, 206;
            --shop-sold-out-soft-red: #c95c56;
            --shop-sold-out-soft-red-deep: #b84c47;
            --shop-sold-out-soft-red-rgb: 201, 92, 86;
            --shop-sold-out-soft-red-deep-rgb: 184, 76, 71;
            --shop-media-accent: #5f8fc7;
            --shop-media-shell-bg: #e8f2ff;
            --shop-skeleton-shell-bg: #f1f7ff;
            --app-modal-backdrop: rgba(31, 76, 118, 0.20);
            --app-modal-backdrop-filter: blur(8px) saturate(108%);
            --public-light-modal-backdrop: var(--app-modal-backdrop);
            --public-light-modal-backdrop-filter: var(--app-modal-backdrop-filter);
        }

        [data-theme="dark"] {
            /* Dark Mode Overrides */
            --bg-color: #000000;
            /* Pure Black Background */
            --text-main: #f1f5f9;
            --text-dim: #94a3b8;
            --text-bold: #ffffff;
            --card-bg: rgba(30, 41, 59, 0.7);
            /* Slightly transparent for starry sky */
            --card-border: rgba(255, 255, 255, 0.08);
            --accent-purple: #a78bfa;
            --accent-color: #60a5fa;
            --starry-blue: #5d9fd8;
            /* Navigation bar background */
            --bg-nav: #000000;
            --shop-media-accent: #7db5ea;
            --shop-media-shell-bg: #182634;
            --shop-skeleton-shell-bg: #182634;
            --app-modal-backdrop: rgba(34, 41, 52, 0.48);
            --app-modal-backdrop-filter: blur(6px) saturate(106%);
        }

        /* Keep overscroll and theme transitions aligned with the current page theme. */
        html,
        body {
            background-color: var(--site-theme-chrome-color, var(--bg-color)) !important;
        }

        .shop-page {
            min-height: 100vh;
            background: var(--site-theme-chrome-color, var(--bg-color));
            color: var(--text-main);
            position: relative;
            overflow-x: hidden;
        }

        body.shop-page #starryCanvas {
            position: fixed;
            top: -10vh;
            left: -10vw;
            width: 120vw;
            height: 120vh;
            z-index: 0;
            opacity: 0;
            pointer-events: none;
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
            will-change: transform, opacity;
            transition: opacity 1.5s ease;
        }

        [data-theme="dark"] body.shop-page #starryCanvas {
            opacity: 1;
        }

        /* Shop Card Styles (Prompt Card Style) */
        .shop-card {
            position: relative;
            overflow: visible;
            padding: 0;
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100%;
            /*
             * 让 .shop-card 始终处于 promoted compositor layer：
             *   - base 的 transform 与入场结束态 translate3d(0,0,0) 一致；
             *   - cleanup 移除 .shop-card-filter-enter / .is-visible 时，transform 不变化，
             *     父 layer 不降级 → 子 breathe-frame 不会因父层重栅格化而被横向亚像素吸附
             *     （这是之前 “水平对齐抖一次” 的根因之一）。
             */
            transform: translate3d(0, 0, 0);
            will-change: transform;
        }

        .shop-card-breathe-frame {
            position: relative;
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100%;
            min-height: 0;
            /* translate3d 强制提前创建独立合成层，避免 will-change 后置触发时的一次性 layer 重建。 */
            transform: translate3d(0, 0, 0);
            backface-visibility: hidden;
            will-change: transform;
            overflow: visible;
            contain: layout;
            /* isolation: isolate 强制独立 stacking context，
               不受父 .shop-card z-index / class 变化引起的 compositor 重排影响。 */
            isolation: isolate;
        }

        .shop-card-breathe-shell {
            position: relative;
            border-radius: 16px;
            overflow: hidden;
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
            transition:
                box-shadow 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.42s ease;
            display: flex;
            flex-direction: column;
            width: 100%;
            height: 100%;
            min-height: 0;
        }

        .shop-card:hover .shop-card-breathe-shell {
            box-shadow:
                0 22px 46px rgba(93, 159, 216, 0.22),
                0 0 0 1px rgba(93, 159, 216, 0.58),
                0 0 0 3px rgba(93, 159, 216, 0.18);
            border-color: rgba(93, 159, 216, 0.94);
        }

        @media (min-width: 769px) {
            .shop-card.user-product-card {
                min-height: 357px;
            }
        }

        .shop-card--interactive {
            cursor: pointer;
        }

        .shop-card--sold-out {
            cursor: pointer;
        }

        .shop-card--interactive:focus-visible {
            outline: none;
        }

        .shop-card--interactive:focus-visible .shop-card-breathe-shell {
            box-shadow: 0 0 0 3px rgba(93, 159, 216, 0.2), 0 14px 34px rgba(93, 159, 216, 0.24);
            border-color: rgba(117, 190, 255, 0.9);
        }

        .shop-card--sold-out:focus-visible {
            outline: none;
        }

        .shop-card--sold-out:focus-visible .shop-card-breathe-shell {
            box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18), 0 14px 34px rgba(248, 113, 113, 0.18);
            border-color: rgba(248, 113, 113, 0.62);
        }

        .shop-card.shop-card--spotlight .shop-card-breathe-shell {
            border-color: rgba(251, 191, 36, 0.92);
            box-shadow:
                0 0 0 4px rgba(251, 191, 36, 0.18),
                0 18px 42px rgba(251, 191, 36, 0.16);
        }

        [data-theme="dark"] .shop-card .shop-card-breathe-shell {
            border-color: transparent;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
        }

        [data-theme="dark"] .shop-card:hover .shop-card-breathe-shell {
            box-shadow:
                0 22px 46px rgba(0, 0, 0, 0.42),
                0 0 0 1px rgba(125, 181, 234, 0.32);
            border-color: rgba(125, 181, 234, 0.58);
        }

        [data-theme="dark"] .shop-card.shop-card--spotlight .shop-card-breathe-shell {
            border-color: rgba(251, 191, 36, 0.96);
            box-shadow:
                0 0 0 4px rgba(251, 191, 36, 0.24),
                0 20px 44px rgba(251, 191, 36, 0.2);
        }

        /* Inner Elements */
        .shop-card-image {
            width: 100%;
            aspect-ratio: 3 / 2;
            height: auto;
            background: var(--shop-media-shell-bg);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            border-bottom: 1px solid var(--card-border);
        }

        .shop-inline-store-title-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px;
            color: #10b981;
        }

        .shop-card-image-cover {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        body.shop-page img {
            -webkit-user-drag: none;
            user-drag: none;
            user-select: none;
        }

        body.shop-page .shop-card,
        body.shop-page .shop-card * {
            -webkit-user-select: none;
            user-select: none;
        }

        body.shop-page .framer-nav,
        body.shop-page .framer-nav *,
        body.shop-page .mobile-menu,
        body.shop-page .mobile-menu *,
        body.shop-page .nav-dropdown,
        body.shop-page .nav-dropdown *,
        body.shop-page .nav-dropdown-portal,
        body.shop-page .nav-dropdown-portal *,
        body.shop-page #shopCategoryFilters,
        body.shop-page #shopCategoryFilters *,
        body.shop-page .category-filters,
        body.shop-page .category-filters *,
        body.shop-page .shop-cart-anchor,
        body.shop-page .shop-cart-anchor *,
        body.shop-page #shopPurchaseModal .shop-purchase-stage-header,
        body.shop-page #shopPurchaseModal .shop-purchase-stage-header *,
        body.shop-page #shopPurchaseModal #purchaseSkuSelector,
        body.shop-page #shopPurchaseModal #purchaseSkuSelector *,
        body.shop-page #shopPurchaseModal .shop-quantity-wrapper,
        body.shop-page #shopPurchaseModal .shop-quantity-wrapper *,
        body.shop-page #shopPurchaseModal .shop-purchase-stage-summary,
        body.shop-page #shopPurchaseModal .shop-purchase-stage-summary *,
        body.shop-page #shopPurchaseModal .shop-purchase-discount__summary,
        body.shop-page #shopPurchaseModal .shop-purchase-discount__summary *,
        body.shop-page #shopPurchaseModal .shop-purchase-discount__action,
        body.shop-page #shopPurchaseModal .shop-purchase-discount__action *,
        body.shop-page #shopPurchaseModal .shop-purchase-discount__feedback,
        body.shop-page #shopPurchaseModal .shop-purchase-discount__feedback *,
        body.shop-page #shopPurchaseModal .shop-purchase-stage-action,
        body.shop-page #shopPurchaseModal .shop-purchase-stage-action *,
        body.shop-page #shopPurchaseModal .shop-btn,
        body.shop-page #shopPurchaseModal .shop-btn *,
        body.shop-page #purchaseQuantity {
            -webkit-user-select: none;
            user-select: none;
        }

        /* 20260530_SHOP_CART_DRAWER_SELECT_GUARD_1 */
        body.shop-page #shopCartDrawer,
        body.shop-page #shopCartDrawer * {
            -webkit-user-select: none;
            user-select: none;
        }

        body.shop-page #purchaseDiscountCode {
            -webkit-user-select: text;
            user-select: text;
            -webkit-touch-callout: default;
            touch-action: auto;
        }

        body.shop-page #shopCartDrawer .shop-cart-item__panel--notice,
        body.shop-page #shopCartDrawer .shop-cart-item__panel--notice *,
        body.shop-page #shopCartDrawer .shop-cart-item__panel--usage,
        body.shop-page #shopCartDrawer .shop-cart-item__panel--usage * {
            -webkit-user-select: text;
            user-select: text;
        }

        .shop-card-image-cover,
        .shop-card-thumb,
        .shop-icon-wrapper>* {
            transition: transform 0.6s ease, opacity 0.4s ease;
            transform-origin: center;
        }

        .shop-card:hover .shop-card-image-cover,
        .shop-card:hover .shop-card-thumb,
        .shop-card:hover .shop-icon-wrapper>* {
            transform: scale(1.09);
        }

        .shop-card-icon {
            color: var(--shop-media-accent);
        }

        .shop-card-icon--font {
            font-size: 24px;
        }

        .shop-card-icon--cover {
            font-size: 5rem;
            line-height: 1;
        }

        .shop-cover-icon-svg {
            width: 104px;
            height: 104px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: rgba(188, 199, 214, 0.96);
            filter: drop-shadow(0 4px 18px rgba(15, 23, 42, 0.12));
            flex: 0 0 auto;
        }

        .shop-cover-icon-svg svg {
            width: 100%;
            height: 100%;
            display: block;
        }

        .shop-card-icon--fallback {
            font-size: 24px;
            color: var(--shop-media-accent);
        }

        .shop-card-thumb {
            border-radius: 8px;
        }

        .shop-icon-wrapper {
            /* Now used as a fallback container or inner icon style */
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--shop-media-shell-bg);
            color: var(--shop-media-accent);
            font-size: 3rem;
            margin-bottom: 0;
            border-radius: 0;
            /* No radius for cover */
        }

        .shop-content-padding {
            padding: 24px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        [data-theme="dark"] .shop-icon-wrapper {
            background: var(--shop-media-shell-bg);
        }

        .shop-stock-badge {
            font-size: 12px;
            font-weight: 500;
            padding: 4px 10px;
            border-radius: 20px;
        }

        .shop-stock-badge--floating {
            position: absolute;
            top: 12px;
            right: 12px;
            z-index: 10;
        }

        .shop-stock-badge.in-stock {
            color: #4ade80;
            background: rgba(40, 40, 40, 0.6);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(74, 222, 128, 0.3);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            font-weight: 600;
        }

        .shop-stock-badge.out-of-stock {
            color: #ff6b6b;
            background: rgba(40, 40, 40, 0.6);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(255, 107, 107, 0.3);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            font-weight: 600;
        }

        .shop-stock-badge.manual-delivery {
            color: #fbbf24;
            background: rgba(40, 40, 40, 0.66);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(251, 191, 36, 0.36);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            font-weight: 700;
        }

        .shop-card-title {
            margin: 0 0 8px 0;
            font-size: 1.1rem;
            font-weight: 700;
            color: var(--text-bold);
            font-family: var(--font-display);
            line-height: 1.3;
        }

        .shop-card-desc {
            margin: 0;
            font-size: 0.9rem;
            color: var(--text-dim);
            line-height: 1.6;
            height: 44px;
            /* Limit to 2 lines approximately */
            overflow: hidden;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            line-clamp: 2;
            -webkit-box-orient: vertical;
        }

        .shop-card-desc--placeholder {
            visibility: hidden;
        }

        .shop-card-price {
            font-weight: 800;
            color: #f59e0b;
            font-size: 1.25rem;
            font-family: var(--font-display);
        }

        .shop-card-price span {
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--text-dim);
            margin-left: 2px;
        }

        .shop-card-original-price {
            text-decoration: line-through;
            text-decoration-color: currentColor;
            color: rgba(255, 255, 255, 0.4);
            font-size: 0.8em;
            margin-right: 6px;
        }

        .shop-card-original-price--flash {
            text-decoration-color: #ef4444;
            text-decoration-thickness: 2px;
        }

        @media (max-width: 820px) {
            .shop-card-original-price--flash,
            .shop-card.flash-sale-card .shop-card-original-price {
                display: none !important;
            }
        }

        body[data-layout-mode="mobile"] .shop-card-original-price--flash,
        body[data-layout-mode="mobile"] .shop-card.flash-sale-card .shop-card-original-price {
            display: none !important;
        }

        .shop-agent-badge {
            position: absolute;
            bottom: 12px;
            left: 12px;
            z-index: 10;
            font-size: 11px;
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
            padding: 2px 6px;
            border-radius: 4px;
            border: 1px solid rgba(16, 185, 129, 0.4);
        }

        .shop-card-footer {
            margin-top: auto;
            padding-top: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
        }

        .shop-card-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 10px;
            flex-wrap: wrap;
        }

        .shop-buy-btn {
            border: none;
            padding: 9px 18px;
            border-radius: 24px;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.1s ease;
            font-family: var(--font-sans);
            min-height: 42px;
            white-space: nowrap;
        }

        .shop-card-cart-trigger {
            width: 54px;
            height: 54px;
            padding: 0;
            border: 0;
            background: transparent;
            cursor: pointer;
            border-radius: 20px;
            display: grid;
            place-items: center;
            transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), filter 0.24s ease;
        }

        .shop-card-cart-trigger:hover {
            transform: translateY(-2px) scale(1.02);
            filter: brightness(1.04);
        }

        .shop-card-cart-trigger:focus-visible {
            outline: none;
        }

        .shop-card-cart-trigger:focus-visible {
            box-shadow: 0 0 0 3px rgba(255, 208, 145, 0.16);
        }

        .shop-card-cart-trigger__shell {
            width: 100%;
            height: 100%;
            display: grid;
            place-items: center;
            border-radius: 20px;
            border: 0;
            background: transparent;
            color: #ffbf1f;
            box-shadow: none;
            transition: color 0.24s ease, filter 0.24s ease;
        }

        .shop-card-cart-trigger:hover .shop-card-cart-trigger__shell {
            color: #ffd95c;
            filter: drop-shadow(0 10px 18px rgba(255, 179, 34, 0.24));
        }

        .shop-card-cart-trigger.is-disabled,
        .shop-card-cart-trigger:disabled {
            cursor: not-allowed;
            transform: none !important;
            filter: none !important;
        }

        .shop-card-cart-trigger.is-disabled .shop-card-cart-trigger__shell,
        .shop-card-cart-trigger:disabled .shop-card-cart-trigger__shell {
            color: rgba(148, 163, 184, 0.82);
            opacity: 0.96;
            filter: none;
        }

        .shop-card-cart-trigger__icon {
            width: 24px;
            height: 24px;
            display: block;
        }

        .shop-add-cart-btn {
            background: rgba(255, 255, 255, 0.05);
            color: rgba(241, 245, 249, 0.88);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }

        .shop-add-cart-btn:hover {
            transform: translateY(-2px);
            background: rgba(255, 255, 255, 0.09);
            border-color: rgba(255, 255, 255, 0.14);
        }

        .shop-btn-primary {
            background: var(--accent-purple);
            color: white;
            box-shadow: 0 4px 12px rgba(155, 93, 229, 0.3);
        }

        .shop-btn-primary:hover:not(:disabled):not([aria-disabled="true"]):not(.shop-purchase-sold-out-btn) {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(155, 93, 229, 0.5);
            filter: brightness(1.1);
        }

        .shop-btn-disabled {
            background: var(--text-dim);
            color: white;
            opacity: 0.5;
            cursor: not-allowed;
        }

        .shop-card .shop-buy-btn:disabled,
        .shop-card .shop-buy-btn[disabled] {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none !important;
            filter: none !important;
            box-shadow: none !important;
        }

        .shop-card--in-cart .shop-card-breathe-shell {
            border-color: rgba(255, 214, 143, 0.14);
            box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
        }

        .shop-status-message {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-align: center;
            padding: 20px;
            color: rgba(255, 255, 255, 0.72);
        }

        .shop-status-message--full {
            grid-column: 1 / -1;
            padding: 40px 20px;
        }

        .shop-status-message--error {
            color: rgba(255, 100, 100, 0.8);
        }

        .shop-status-message--muted {
            color: rgba(255, 255, 255, 0.4);
        }

        .visually-hidden-h1 {
            position: absolute;
            width: 1px;
            height: 1px;
            padding: 0;
            margin: -1px;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            white-space: nowrap;
            border: 0;
        }

        /* Success Modal Content Card Styles */
        .content-card {
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 16px;
            margin-bottom: 12px;
        }

        .content-card[data-shop-copy-content] {
            cursor: pointer;
            transition: all 0.2s;
        }

        .content-card[data-shop-copy-content]:hover {
            border-color: rgba(107, 158, 206, 0.5);
            background: rgba(255, 255, 255, 0.08);
        }

        .content-card--shop-copy {
            margin-bottom: 0 !important;
            padding: 10px 6px !important;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px !important;
        }

        .content-card--shop-copy[hidden] {
            display: none !important;
        }

        .content-card .item-name {
            display: flex;
            align-items: center;
            gap: 8px;
            font-weight: 600;
            font-size: 14px;
            color: #fff;
            margin-bottom: 10px;
        }

        .content-card .item-content-box {
            background: rgba(0, 0, 0, 0.2);
            border-radius: 10px;
            padding: 12px;
        }

        .content-card .item-content-box--plain {
            padding: 0 !important;
            width: 100%;
            background: transparent !important;
            border-radius: 0 !important;
        }

        .content-card .item-text {
            font-family: monospace;
            font-size: 13px;
            color: #22c55e;
            word-break: break-all;
            line-height: 1.5;
        }

        .content-card .item-text--centered {
            text-align: center;
            letter-spacing: 0.5px;
            line-height: 1.3;
        }

        .shop-success-content-grid {
            width: 100%;
        }

        .shop-success-content-grid--double {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .shop-success-content-grid--stacked {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .shop-expand-toggle-row {
            margin-top: 12px;
            text-align: center;
        }

        .shop-expand-toggle {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.6);
            background: rgba(255, 255, 255, 0.1);
            padding: 8px 16px;
            border-radius: 20px;
            transition: all 0.2s;
        }

        .shop-expand-toggle:hover {
            color: rgba(255, 255, 255, 0.9);
            background: rgba(255, 255, 255, 0.16);
        }

        .shop-expand-toggle-icon {
            font-size: 10px;
        }

        .shop-success-toast[data-shop-toast-global="1"] {
            position: fixed;
            left: 50%;
            bottom: max(80px, calc(env(safe-area-inset-bottom) + 80px));
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            width: max-content;
            max-width: min(560px, calc(100vw - 32px));
            min-height: 44px;
            padding: 12px 24px;
            border-radius: 50px;
            border: 1px solid #10b981;
            background: rgba(20, 20, 20, 0.9);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
            color: #ffffff;
            font-size: 14px;
            font-weight: 500;
            line-height: 1.35;
            letter-spacing: 0.5px;
            text-align: center;
            pointer-events: none;
            white-space: nowrap;
            opacity: 0;
            transform: translateX(-50%) translateY(20px);
            transition:
                opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.2s ease;
            z-index: 999999;
            -webkit-backdrop-filter: blur(12px);
            backdrop-filter: blur(12px);
        }

        .shop-success-toast[data-shop-toast-global="1"]::before {
            content: '✓';
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            flex: 0 0 auto;
            margin-right: 2px;
            border-radius: 50%;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: #ffffff;
            font-size: 12px;
            font-weight: 800;
            line-height: 1;
        }

        .shop-success-toast[data-shop-toast-global="1"][data-variant="error"] {
            border-color: #ef4444;
        }

        .shop-success-toast[data-shop-toast-global="1"][data-variant="error"]::before {
            content: '!';
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        }

        .shop-success-toast[data-shop-toast-global="1"][data-variant="info"] {
            border-color: #ffffff;
        }

        .shop-success-toast[data-shop-toast-global="1"][data-variant="info"]::before {
            content: 'i';
            background: rgba(255, 255, 255, 0.16);
        }

        .shop-success-toast[data-shop-toast-global="1"][data-variant="sold-out"] {
            border-color: rgba(239, 68, 68, 0.82);
            background: rgba(255, 255, 255, 0.96);
            color: #111827;
            box-shadow: 0 8px 32px rgba(15, 23, 42, 0.16);
        }

        .shop-success-toast[data-shop-toast-global="1"][data-variant="sold-out"]::before {
            content: '';
            width: 18px;
            height: 18px;
            border: 0;
            border-radius: 0;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.2 5.2 14.8 14.8M14.8 5.2 5.2 14.8' fill='none' stroke='%23dc2626' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
            color: transparent;
            box-shadow: none;
        }

        .shop-success-toast[data-shop-toast-global="1"][data-variant="manual-delivery"] {
            border-color: rgba(245, 158, 11, 0.82);
            background: rgba(255, 255, 255, 0.96);
            color: #111827;
            box-shadow: 0 8px 32px rgba(15, 23, 42, 0.16);
        }

        .shop-success-toast[data-shop-toast-global="1"][data-variant="manual-delivery"]::before {
            content: '';
            width: 18px;
            height: 18px;
            border: 0;
            border-radius: 0;
            background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 11.4h5.2l1.3-5.1c.3-1 1.8-.8 1.8.3v4.1h3.2c.8 0 1.3.8.9 1.5l-2.1 4.1c-.3.5-.8.8-1.4.8H7.4c-.7 0-1.4-.3-1.8-.9L4 14.1v-2.7Z' fill='none' stroke='%23d97706' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
            color: transparent;
            box-shadow: none;
        }

        .shop-success-toast[data-shop-toast-global="1"].is-visible {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }

        @media (max-width: 640px) {
            .shop-success-toast[data-shop-toast-global="1"] {
                bottom: max(80px, calc(env(safe-area-inset-bottom) + 80px));
                max-width: calc(100vw - 28px);
                padding: 12px 18px;
                font-size: 14px;
                white-space: normal;
            }
        }

        /* Legacy modal toast markup keeps the same class; global storefront toast uses the stronger bottom placement above. */
        .shop-success-toast:not([data-shop-toast-global="1"]) {
            position: fixed;
            top: 20%;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: #fff;
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 13px;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 999999;
        }

        .shop-success-toast:not([data-shop-toast-global="1"]).is-visible {
            opacity: 1;
        }

        .shop-success-summary-bar {
            display: flex;
            align-items: flex-end;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 18px;
            padding: 0 2px 2px;
            text-align: left;
        }

        .shop-success-summary-bar__copy {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .shop-success-summary-bar__label {
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: rgba(226, 232, 240, 0.58);
        }

        .shop-success-summary-bar__count {
            font-size: 18px;
            font-weight: 700;
            color: rgba(248, 250, 252, 0.96);
        }

        .shop-success-summary-bar__actions {
            margin: 0 0 0 auto;
            flex: 0 0 auto;
        }

        .shop-success-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            width: 100%;
        }

        .shop-success-item {
            display: flex;
            flex-direction: column;
            gap: 10px;
            padding: 11px 13px;
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow:
                0 14px 28px rgba(0, 0, 0, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
            text-align: left;
        }

        .shop-success-item__surface {
            display: flex;
            flex-direction: column;
            gap: 8px;
            min-width: 0;
            position: relative;
            padding-right: 0;
            border-radius: 14px;
            cursor: pointer;
            transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
        }

        .shop-success-item__surface:hover {
            transform: translateY(-1px);
            background: rgba(255, 255, 255, 0.015);
        }

        .shop-success-item.is-content-expanded .shop-success-item__surface {
            background: rgba(255, 255, 255, 0.02);
        }

        .shop-success-item__header {
            display: flex;
            align-items: stretch;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 0;
            min-width: 0;
        }

        .shop-success-item__heading {
            display: flex;
            align-items: stretch;
            gap: 12px;
            min-width: 0;
            flex: 1 1 auto;
        }

        .shop-success-item__thumb,
        .shop-success-item__icon {
            width: 38px;
            height: 38px;
            border-radius: 12px;
            flex: 0 0 auto;
            transform: translateY(var(--shop-success-thumb-offset-y, 0));
        }

        .shop-success-item__thumb {
            object-fit: cover;
            border: 0;
            background: rgba(15, 23, 42, 0.42);
            box-shadow:
                0 1px 2px rgba(15, 23, 42, 0.10),
                0 0 0 1px rgba(148, 163, 184, 0.08);
        }

        .shop-success-item__icon {
            display: grid;
            place-items: center;
            background: rgba(255, 214, 102, 0.12);
            border: 1px solid rgba(255, 214, 102, 0.16);
            color: #ffd45d;
            box-shadow:
                0 12px 22px rgba(255, 214, 102, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
            font-size: 18px;
        }

        .shop-success-item__copy {
            min-width: 0;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 6px;
            align-self: stretch;
            padding: 1px 0 2px;
        }

        .shop-success-item__title-row {
            display: flex;
            align-items: center;
            gap: 8px;
            min-width: 0;
        }

        .shop-success-item__title {
            margin: 0;
            color: #ffffff;
            font-size: 15px;
            font-weight: 700;
            line-height: 1.24;
            word-break: break-word;
            min-width: 0;
            flex: 1 1 auto;
        }

        .shop-success-item__quantity-row {
            display: flex;
            align-items: center;
            min-width: 0;
            margin-top: -1px;
        }

        .shop-success-item__footer-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 4px 10px;
            min-width: 0;
            margin-top: auto;
            padding-top: 14px;
            transform: translateY(10px);
        }

        .shop-success-item__submeta {
            display: flex;
            min-width: 0;
        }

        .shop-success-item__order-id,
        .shop-success-item__reveal-code {
            appearance: none;
            border: none;
            padding: 0;
            margin: 0;
            background: transparent;
            display: inline-flex;
            align-items: center;
            flex-wrap: wrap;
            gap: 6px;
            max-width: 100%;
            min-width: 0;
            font-size: 11px;
            line-height: 1.4;
            color: rgba(191, 212, 255, 0.88);
            cursor: pointer;
            text-align: left;
            border-radius: 0;
            box-shadow: none;
            transition: color 0.16s ease, opacity 0.16s ease, transform 0.16s ease, text-shadow 0.16s ease;
        }

        .shop-success-item__order-id:hover,
        .shop-success-item__reveal-code:hover {
            color: rgba(224, 234, 255, 0.98);
            transform: translateX(1px);
            text-shadow: 0 0 12px rgba(125, 162, 255, 0.12);
        }

        .shop-success-item__order-id:focus-visible,
        .shop-success-item__reveal-code:focus-visible {
            outline: none;
            text-shadow: 0 0 12px rgba(125, 162, 255, 0.16);
        }

        .shop-success-item__reveal-code .shop-success-item__submeta-label {
            color: currentColor;
            font-weight: 700;
        }

        .shop-success-item__reveal-code {
            position: relative;
            top: 0;
        }

        .shop-success-item__submeta-label {
            flex: 0 0 auto;
            color: rgba(148, 163, 184, 0.6);
            font-weight: 500;
        }

        .shop-success-item__submeta-value {
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
            color: currentColor;
            overflow-wrap: anywhere;
            word-break: break-all;
        }

        .shop-success-item__actions {
            position: static;
            flex: 0 0 auto;
            min-width: 0;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            justify-content: space-between;
            align-self: stretch;
            gap: 8px;
            margin-left: 16px;
        }

        .shop-success-item__toolbar {
            --shop-success-toolbar-height: 30px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            flex-wrap: wrap;
            max-width: 300px;
            min-height: var(--shop-success-toolbar-height);
        }

        .shop-success-item__action-tags {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: flex-end;
            gap: 6px;
        }

        .shop-success-item__copy-btn {
            width: var(--shop-success-toolbar-height);
            height: var(--shop-success-toolbar-height);
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.05);
            color: rgba(241, 245, 249, 0.9);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
            transition: transform 0.14s ease, border-color 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease, color 0.14s ease;
        }

        .shop-success-item__copy-btn:hover {
            transform: translateY(-1px);
            background: rgba(255, 255, 255, 0.09);
            border-color: rgba(255, 255, 255, 0.14);
            box-shadow:
                0 10px 18px rgba(0, 0, 0, 0.14),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        .shop-success-item__copy-btn:focus-visible {
            outline: none;
            box-shadow: 0 0 0 3px rgba(134, 239, 172, 0.16);
        }

        .shop-success-item__time {
            position: relative;
            top: 0;
            transform: translateY(10px);
            margin-top: auto;
            padding-top: 14px;
            max-width: none;
            font-size: 10px;
            line-height: 1.35;
            color: rgba(148, 163, 184, 0.6);
            text-align: right;
        }

        .shop-success-item__meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            align-content: flex-start;
            gap: 3px;
        }

        .shop-success-item__meta--inline {
            margin-top: 0;
            gap: 4px;
        }

        .shop-success-item__tag {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 26px;
            padding: 4px 9px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 600;
            letter-spacing: 0.01em;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: rgba(226, 232, 240, 0.78);
        }

        button.shop-success-item__tag {
            appearance: none;
            font: inherit;
            cursor: pointer;
            transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
        }

        .shop-success-item__tag--quantity {
            color: rgba(255, 243, 205, 0.92);
            border-color: rgba(251, 191, 36, 0.16);
            background: rgba(251, 191, 36, 0.08);
        }

        .shop-success-item__meta--inline .shop-success-item__tag--quantity,
        .shop-success-item__quantity-row .shop-success-item__tag--quantity {
            flex: 0 0 auto;
            white-space: nowrap;
            min-height: 18px;
            padding: 0 7px;
            font-size: 9px;
            font-weight: 600;
        }

        #shopSuccessModal .shop-success-item__tag--notice,
        #guestCashPurchaseModal .shop-success-item__tag--notice {
            height: var(--shop-success-toolbar-height, 30px);
            min-height: var(--shop-success-toolbar-height, 30px);
            flex: 0 0 auto;
            align-self: center;
            padding: 0 11px;
            border-radius: 999px;
            font-size: var(--shop-success-pill-font-size, 10px);
            line-height: 1;
            font-weight: 500;
            letter-spacing: -0.02em;
            white-space: nowrap;
            color: #ffd78f;
            border-color: rgba(255, 214, 102, 0.15);
            background: transparent;
        }

        #shopSuccessModal .shop-success-item__tag--usage,
        #guestCashPurchaseModal .shop-success-item__tag--usage {
            height: var(--shop-success-toolbar-height, 30px);
            min-height: var(--shop-success-toolbar-height, 30px);
            flex: 0 0 auto;
            align-self: center;
            padding: 0 11px;
            border-radius: 999px;
            font-size: var(--shop-success-pill-font-size, 10px);
            line-height: 1;
            font-weight: 500;
            letter-spacing: -0.02em;
            white-space: nowrap;
            color: rgba(187, 247, 208, 0.96);
            border-color: rgba(74, 222, 128, 0.15);
            background: transparent;
        }

        #shopSuccessModal .shop-success-item__tag-label,
        #guestCashPurchaseModal .shop-success-item__tag-label {
            display: inline-block;
            font-size: var(--shop-success-pill-font-size, 10px);
            line-height: 1;
            font-weight: inherit;
            letter-spacing: 0;
            transform: none;
            white-space: nowrap;
        }

        .shop-success-item__tag--notice:hover,
        .shop-success-item__tag--usage:hover {
            transform: none;
        }

        .shop-success-item__tag--notice:hover {
            border-color: rgba(255, 214, 102, 0.22);
            background: transparent;
            box-shadow: none;
        }

        .shop-success-item__tag--usage:hover {
            border-color: rgba(74, 222, 128, 0.22);
            background: transparent;
            box-shadow: none;
        }

        .shop-success-item__tag--notice:focus-visible,
        .shop-success-item__tag--usage:focus-visible {
            outline: none;
        }

        .shop-success-item__tag--notice:focus-visible {
            box-shadow: 0 0 0 3px rgba(255, 214, 102, 0.16);
        }

        .shop-success-item__tag--usage:focus-visible {
            box-shadow: 0 0 0 3px rgba(134, 239, 172, 0.16);
        }

        .shop-success-item__tag--notice.is-active {
            border-color: rgba(255, 214, 102, 0.24);
            background: rgba(255, 214, 102, 0.14);
            box-shadow: none;
        }

        .shop-success-item__tag--usage.is-active {
            border-color: rgba(74, 222, 128, 0.24);
            background: rgba(34, 197, 94, 0.14);
            box-shadow: none;
        }

        .shop-success-item__body {
            min-height: 0;
        }

        .shop-success-item__content-grid {
            display: flex;
            flex-direction: column;
            align-items: stretch;
            gap: 6px;
            min-height: 0;
            overflow: hidden;
            transform: translateY(-4px);
            opacity: 0;
            transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease;
        }

        .shop-success-item__content-card {
            min-width: 0;
            padding: 8px 10px !important;
            border-radius: 10px !important;
            justify-content: flex-start;
            border-color: rgba(134, 239, 172, 0.08);
            background: rgba(10, 14, 20, 0.42);
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.04),
                0 10px 24px rgba(0, 0, 0, 0.12);
        }

        .shop-success-item__content-card[data-shop-copy-content]:hover {
            border-color: rgba(134, 239, 172, 0.18);
            background: rgba(12, 18, 26, 0.5);
        }

        .shop-success-item__content-card .item-text {
            color: #d8ffe4;
            line-height: 1.55;
            text-align: left;
            white-space: pre-wrap;
            word-break: break-word;
        }

        .shop-success-item__content-card .item-text--centered {
            text-align: left;
        }

        .shop-success-item__disclosures {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .shop-success-item__content-panel,
        .shop-success-item__notes-panel,
        .shop-success-item__usage-panel {
            -webkit-overflow-scrolling: touch;
            padding: 9px 10px;
            border-radius: 12px;
        }

        .shop-success-item__content-panel {
            display: grid;
            grid-template-rows: 0fr;
            max-height: 0;
            padding-top: 0;
            padding-bottom: 0;
            overflow: hidden;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-4px);
            pointer-events: none;
            background: rgba(12, 18, 26, 0.26);
            border: 1px solid rgba(255, 255, 255, 0.06);
            border-color: transparent;
            transition:
                grid-template-rows 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                max-height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                padding 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.18s ease,
                transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.22s ease,
                visibility 0s linear 0.28s;
        }

        .shop-success-item__notes-panel,
        .shop-success-item__usage-panel {
            position: relative;
            max-height: min(34vh, 260px);
            overflow: hidden;
            background: rgba(12, 18, 26, 0.26);
            border: 1px solid rgba(255, 255, 255, 0.06);
            color: rgba(226, 232, 240, 0.88);
        }

        .shop-guidance-panel-copy {
            position: absolute;
            top: 9px;
            right: 9px;
            z-index: 2;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            padding: 0;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.08);
            color: rgba(226, 232, 240, 0.78);
            cursor: pointer;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
            transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
        }

        .shop-guidance-panel-copy:hover,
        .shop-guidance-panel-copy:focus-visible {
            transform: translateY(-1px);
            border-color: rgba(107, 158, 206, 0.42);
            background: rgba(107, 158, 206, 0.16);
            color: #dbeafe;
            box-shadow:
                inset 0 1px 0 rgba(255, 255, 255, 0.08),
                0 8px 18px rgba(3, 7, 18, 0.18);
            outline: none;
        }

        .shop-guidance-panel-copy:active {
            transform: translateY(0) scale(0.98);
        }

        .shop-guidance-panel-content {
            box-sizing: border-box;
            min-height: 28px;
            max-height: calc(min(34vh, 260px) - 18px);
            overflow-y: auto;
            overflow-x: hidden;
            overscroll-behavior: contain;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-y;
            padding-right: 38px;
        }

        .shop-guidance-panel-content::-webkit-scrollbar {
            width: 7px;
        }

        .shop-guidance-panel-content::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 999px;
        }

        .shop-guidance-panel-content::-webkit-scrollbar-thumb {
            background: rgba(107, 158, 206, 0.45);
            border-radius: 999px;
        }

        .shop-guidance-panel-content::-webkit-scrollbar-thumb:hover {
            background: rgba(107, 158, 206, 0.65);
        }

        .shop-success-item.is-content-expanded .shop-success-item__content-panel {
            grid-template-rows: 1fr;
            max-height: min(24vh, 210px);
            padding-top: 9px;
            padding-bottom: 9px;
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
            pointer-events: auto;
            border-color: rgba(255, 255, 255, 0.06);
            transition:
                grid-template-rows 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                max-height 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                padding 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.2s ease 0.04s,
                transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
                border-color 0.22s ease,
                visibility 0s;
        }

        .shop-success-item__notes-panel:not([hidden]),
        .shop-success-item__usage-panel:not([hidden]) {
            max-height: min(34vh, 260px);
            min-height: 0;
            overflow: hidden;
        }

        .shop-success-item.is-content-expanded .shop-success-item__content-grid {
            opacity: 1;
            transform: translateY(0);
        }

        .shop-success-item:not(.is-content-expanded) .shop-success-item__content-panel {
            max-height: 0 !important;
            padding-top: 0 !important;
            padding-bottom: 0 !important;
            border-color: transparent !important;
        }

        .shop-success-item__content-panel[hidden],
        .shop-success-item__notes-panel[hidden],
        .shop-success-item__usage-panel[hidden] {
            display: none !important;
        }

        .shop-success-item__notes-panel a {
            color: #bcd7ff;
        }

        .shop-success-item__usage-panel a {
            color: #bcd7ff;
        }

        .shop-success-warning__mount {
            width: 100%;
        }

        #shopSuccessModal .shop-success-scroll-stage-warning {
            margin-top: auto;
            padding-top: 8px;
        }

        #shopSuccessModal #purchasedWarning {
            margin: auto 0 0 !important;
            padding: 0 !important;
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
        }

        .shop-success-warning {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            gap: 12px;
            align-items: flex-start;
            width: 100%;
            padding: 12px 14px;
            border-radius: 18px;
            background: rgba(251, 191, 36, 0.07);
            border: 1px solid rgba(251, 191, 36, 0.14);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
            text-align: left;
        }

        .shop-success-warning__icon {
            width: 28px;
            height: 28px;
            border-radius: 10px;
            display: grid;
            place-items: center;
            flex: 0 0 auto;
            color: #fbbf24;
            background: rgba(251, 191, 36, 0.1);
            border: 1px solid rgba(251, 191, 36, 0.14);
            box-shadow: none;
            font-size: 12px;
        }

        .shop-success-warning__content {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .shop-success-warning__header {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 4px 8px;
        }

        .shop-success-warning__eyebrow {
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: rgba(255, 222, 164, 0.5);
        }

        .shop-success-warning__title {
            font-size: 13px;
            font-weight: 700;
            line-height: 1.2;
            color: rgba(255, 242, 207, 0.92);
        }

        .shop-success-warning__summary {
            margin: 0;
            font-size: 12px;
            line-height: 1.55;
            color: rgba(255, 238, 200, 0.72);
        }

        .shop-success-warning__chips {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .shop-success-warning__chip {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            min-height: 24px;
            padding: 0 9px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 600;
            line-height: 1;
            letter-spacing: 0.01em;
        }

        .shop-success-warning__chip i {
            font-size: 11px;
            opacity: 0.9;
        }

        .shop-success-warning__chip--product {
            color: #fff0c7;
            background: rgba(251, 191, 36, 0.09);
            border: 1px solid rgba(251, 191, 36, 0.14);
        }

        .shop-success-warning__chip--reason {
            color: #ffd7cd;
            background: rgba(248, 113, 113, 0.08);
            border: 1px solid rgba(248, 113, 113, 0.14);
        }

        /* Product Name Tooltip Dot (in header) */
        .product-name-dot {
            position: relative;
            cursor: pointer;
            opacity: 0.7;
            transition: opacity 0.2s;
            padding: 4px 8px;
            user-select: none;
        }

        .product-name-dot:hover {
            opacity: 1;
        }

        .product-name-dot::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: calc(100% + 8px);
            right: 0;
            background: rgba(30, 33, 40, 0.98);
            color: #fff;
            padding: 10px 16px;
            border-radius: 10px;
            font-size: 13px;
            white-space: nowrap;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.15s, visibility 0.15s;
            pointer-events: none;
            z-index: 99999;
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .product-name-dot:hover::after {
            opacity: 1;
            visibility: visible;
        }

        /* Quantity Stepper (Ultra-minimal) */
        .shop-quantity-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 25px;
        }

        .shop-quantity-label {
            display: none;
        }

        .shop-quantity-control {
            display: inline-flex;
            align-items: center;
            gap: 0;
        }

        .shop-qty-btn {
            width: 44px;
            height: 44px;
            border: none;
            background: transparent;
            color: rgba(255, 255, 255, 0.7);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.15s ease;
            font-size: 1.5rem;
            font-weight: 300;
        }

        .shop-qty-btn:hover {
            color: #fff;
            transform: scale(1.1);
        }

        .shop-qty-btn:active {
            transform: scale(0.95);
        }

        .shop-qty-input {
            width: 60px;
            height: 44px;
            text-align: center;
            background: rgba(255, 255, 255, 0.08);
            border: none;
            border-radius: 8px;
            color: #fff;
            font-family: var(--font-display);
            font-size: 1.25rem;
            font-weight: 600;
            outline: none;
            margin: 0 8px;
        }

        .shop-qty-input:focus {
            background: rgba(255, 255, 255, 0.12);
            box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
        }

        /* Remove number spinner arrows */
        input[type=number]::-webkit-inner-spin-button,
        input[type=number]::-webkit-outer-spin-button {
            -webkit-appearance: none;
            appearance: none;
            margin: 0;
        }

        input[type=number] {
            -moz-appearance: textfield;
            appearance: textfield;
        }



        /* Shop Specific Styles */
        .shop-main {
            max-width: 1600px;
            margin: calc(var(--nav-height, 61px) + 16px) auto 40px;
            padding: 0 5vw;
            transition: padding-right 0.28s ease;
        }

        .shop-header {
            display: none;
            text-align: center;
            margin-bottom: 0;
            position: relative;
            z-index: 10;
        }

        .shop-title {
            font-size: 2.5rem;
            font-weight: 800;
            margin-bottom: 10px;
            background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
            background-clip: text;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }

        .shop-subtitle {
            font-size: 1.1rem;
            color: rgba(255, 255, 255, 0.6);
        }

        .shop-cart-anchor {
            position: fixed;
            right: 40px;
            bottom: 56px;
            z-index: 110;
            width: 264px;
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 16px;
            border-radius: 24px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(12, 17, 24, 0.42);
            color: #f8fbff;
            overflow: hidden;
            isolation: isolate;
            cursor: pointer;
            backdrop-filter: blur(24px) saturate(1.18);
            -webkit-backdrop-filter: blur(24px) saturate(1.18);
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
            transition:
                transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.28s ease,
                box-shadow 0.28s ease,
                border-color 0.24s ease,
                background 0.24s ease;
        }

        .shop-cart-anchor[hidden] {
            display: none !important;
        }

        .shop-cart-anchor::before {
            content: '';
            position: absolute;
            inset: 1px;
            border-radius: inherit;
            background: rgba(255, 255, 255, 0.015);
            pointer-events: none;
            transition: background 0.24s ease, opacity 0.24s ease;
        }

        .shop-cart-anchor:hover {
            transform: none;
            border-color: rgba(255, 255, 255, 0.12);
            background: rgba(12, 17, 24, 0.5);
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
        }

        .shop-cart-anchor:hover::before {
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
        }

        .shop-cart-anchor:focus-visible {
            outline: none;
            transform: none;
            border-color: rgba(255, 255, 255, 0.16);
            box-shadow:
                0 0 0 3px rgba(148, 163, 184, 0.18),
                0 10px 24px rgba(0, 0, 0, 0.26);
        }

        .shop-cart-anchor:active {
            transform: scale(0.992);
        }

        .shop-cart-anchor__pulse {
            position: absolute;
            inset: -1px;
            border-radius: inherit;
            border: 1px solid rgba(255, 200, 132, 0.18);
            opacity: 0;
            animation: none;
            pointer-events: none;
        }

        @keyframes shop-cart-anchor-pulse {
            0%, 100% {
                transform: scale(1);
                opacity: 0.24;
            }

            50% {
                transform: scale(1.03);
                opacity: 0.56;
            }
        }

        .shop-cart-anchor__icon,
        .shop-cart-anchor__copy,
        .shop-cart-anchor__hint {
            position: relative;
            z-index: 1;
        }

        .shop-cart-anchor__icon {
            width: 42px;
            height: 42px;
            flex: 0 0 auto;
            display: grid;
            place-items: center;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: #ffe2c3;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
            transition:
                transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
                background 0.24s ease,
                border-color 0.24s ease,
                color 0.24s ease,
                box-shadow 0.24s ease;
        }

        .shop-cart-anchor__icon i {
            transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), filter 0.24s ease;
        }

        .shop-cart-anchor__badge {
            display: none;
        }

        .shop-cart-anchor__copy {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
        }

        .shop-cart-anchor__copy strong {
            font-size: 15px;
        }

        .shop-cart-anchor__copy span,
        .shop-cart-anchor__hint {
            font-size: 12px;
            color: rgba(226, 232, 240, 0.72);
        }

        .shop-cart-anchor__hint {
            margin-left: auto;
            white-space: nowrap;
        }

        .shop-cart-anchor:hover .shop-cart-anchor__icon,
        .shop-cart-anchor:focus-visible .shop-cart-anchor__icon {
            transform: none;
        }

        .shop-cart-anchor:hover .shop-cart-anchor__icon i,
        .shop-cart-anchor:focus-visible .shop-cart-anchor__icon i {
            transform: none;
            filter: none;
        }

        .shop-cart-anchor:hover .shop-cart-anchor__pulse,
        .shop-cart-anchor:focus-visible .shop-cart-anchor__pulse {
            opacity: 0;
        }

        .shop-cart-anchor.is-feedback {
            border-color: rgba(255, 214, 143, 0.2);
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
        }

        .shop-cart-anchor.is-feedback .shop-cart-anchor__pulse {
            opacity: 0.94;
            border-color: rgba(255, 214, 143, 0.28);
            animation-duration: 0.72s;
        }

        .shop-cart-anchor.is-feedback .shop-cart-anchor__icon {
            background: rgba(255, 226, 195, 0.15);
            border-color: rgba(255, 223, 181, 0.18);
            box-shadow:
                0 14px 28px rgba(255, 193, 122, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.16);
            animation: shop-cart-anchor-icon-bounce 620ms cubic-bezier(0.22, 1, 0.36, 1);
        }

        .shop-cart-anchor.is-feedback .shop-cart-anchor__icon i {
            filter: drop-shadow(0 10px 16px rgba(255, 193, 122, 0.32));
            animation: shop-cart-anchor-basket-wiggle 620ms cubic-bezier(0.22, 1, 0.36, 1);
        }

        @keyframes shop-cart-anchor-icon-bounce {
            0% {
                transform: translateY(0) scale(1);
            }

            22% {
                transform: translateY(-5px) scale(1.12);
            }

            48% {
                transform: translateY(0) scale(0.96);
            }

            72% {
                transform: translateY(-1px) scale(1.05);
            }

            100% {
                transform: translateY(0) scale(1);
            }
        }

        @keyframes shop-cart-anchor-basket-wiggle {
            0%, 100% {
                transform: rotate(0deg) scale(1);
            }

            18% {
                transform: rotate(-10deg) scale(1.08);
            }

            36% {
                transform: rotate(8deg) scale(1.1);
            }

            56% {
                transform: rotate(-6deg) scale(1.04);
            }

            78% {
                transform: rotate(3deg) scale(1.02);
            }
        }

        body[data-shop-cart-open="true"] .shop-cart-anchor {
            opacity: 0;
            pointer-events: none;
            transform: translateY(16px);
        }

        body.shop-page[data-shop-cart-open="true"] .chat-widget-fab {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
        }

        body.shop-page[data-shop-purchase-modal-open="true"] .chat-widget-fab,
        body.shop-page:has(#shopPurchaseModal.active) .chat-widget-fab {
            z-index: 9998 !important;
            pointer-events: none !important;
        }

        .shop-cart-backdrop {
            position: fixed;
            inset: 0;
            z-index: 104;
            border: 0;
            background: transparent;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.26s ease, visibility 0s linear 0.26s;
        }

        body[data-shop-cart-open="true"] .shop-cart-backdrop {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            background: var(--app-modal-backdrop, var(--public-light-modal-backdrop, rgba(31, 76, 118, 0.20)));
            backdrop-filter: var(--app-modal-backdrop-filter, var(--public-light-modal-backdrop-filter, blur(8px) saturate(108%)));
            -webkit-backdrop-filter: var(--app-modal-backdrop-filter, var(--public-light-modal-backdrop-filter, blur(8px) saturate(108%)));
            transition-delay: 0s;
        }

        .shop-cart-drawer {
            position: fixed;
            top: 116px;
            right: 12px;
            bottom: 24px;
            width: min(424px, calc(100vw - 24px));
            z-index: 105;
            display: flex;
            flex-direction: column;
            border-radius: 30px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background:
                linear-gradient(180deg, rgba(14, 20, 29, 0.96) 0%, rgba(8, 12, 18, 0.98) 100%);
            backdrop-filter: blur(22px);
            -webkit-backdrop-filter: blur(22px);
            box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
            transform: translateX(calc(100% + 24px));
            opacity: 0;
            pointer-events: none;
            max-width: 100%;
            overflow: hidden;
            transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.26s ease;
        }

        body[data-shop-cart-open="true"] .shop-cart-drawer {
            transform: translateX(0);
            opacity: 1;
            pointer-events: auto;
        }

        body.shop-page.shop-cart-force-hidden .shop-cart-backdrop {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
            background: transparent !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            transition: none !important;
        }

        body.shop-page.shop-cart-force-hidden .shop-cart-drawer {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
            transform: translateX(calc(100% + 24px)) !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            transition: none !important;
        }

        .shop-cart-drawer__header,
        .shop-cart-drawer__title {
            display: none !important;
        }

        .shop-cart-drawer__footer {
            padding: 22px 22px 0;
        }

        .shop-cart-drawer__heading {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            min-width: 0;
            transform: translateY(10px);
        }

        .shop-cart-drawer__eyebrow,
        .shop-cart-checkout__eyebrow {
            font-size: 11px;
            letter-spacing: 0.24em;
            text-transform: uppercase;
            color: rgba(148, 163, 184, 0.78);
            font-family: 'Outfit', sans-serif;
        }

        .shop-cart-drawer__label {
            margin: 0;
            color: rgba(244, 247, 252, 0.96);
            font-size: 17px;
            font-weight: 700;
            line-height: 1.1;
            letter-spacing: -0.02em;
        }

        .shop-cart-drawer__title {
            margin: 0 auto;
            width: 44px;
            height: 44px;
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: relative;
            border-radius: 14px;
            border: 1px solid rgba(255, 196, 76, 0.03);
            background:
                radial-gradient(circle at 50% 28%, rgba(255, 203, 79, 0.14) 0%, rgba(255, 203, 79, 0.038) 40%, transparent 68%),
                rgba(14, 20, 29, 0.14);
            box-shadow:
                0 6px 14px rgba(0, 0, 0, 0.08),
                0 0 22px rgba(255, 191, 31, 0.09),
                inset 0 1px 0 rgba(255, 255, 255, 0.014);
            color: transparent;
            font-size: 0;
            line-height: 0;
            letter-spacing: 0;
            user-select: none;
            transform: translateY(10px) scale(1.12);
        }

        .shop-cart-drawer__title::before {
            content: '';
            width: 21px;
            height: 21px;
            display: block;
            background: linear-gradient(180deg, #ffd95c 0%, #ffbf1f 55%, #f5a200 100%);
            filter:
                drop-shadow(0 5px 9px rgba(255, 179, 34, 0.18))
                drop-shadow(0 0 7px rgba(255, 191, 31, 0.12));
            -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath fill='black' d='M0 24C0 10.7 10.7 0 24 0l45.5 0c22.2 0 41.5 15.2 46.7 36.8L122 64 552 64c15.4 0 29.9 7.4 38.9 19.9s11.3 28.7 6.2 43.1l-55.2 160c-7.1 20.6-26.5 34.5-48.3 34.5l-277.1 0c-22.2 0-41.5-15.2-46.7-36.8L124.2 96 24 96C10.7 96 0 85.3 0 72L0 24zM128 416a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336 48a48 48 0 1 1 0-96 48 48 0 1 1 0 96z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath fill='black' d='M0 24C0 10.7 10.7 0 24 0l45.5 0c22.2 0 41.5 15.2 46.7 36.8L122 64 552 64c15.4 0 29.9 7.4 38.9 19.9s11.3 28.7 6.2 43.1l-55.2 160c-7.1 20.6-26.5 34.5-48.3 34.5l-277.1 0c-22.2 0-41.5-15.2-46.7-36.8L124.2 96 24 96C10.7 96 0 85.3 0 72L0 24zM128 416a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zm336 48a48 48 0 1 1 0-96 48 48 0 1 1 0 96z'/%3E%3C/svg%3E") center / contain no-repeat;
        }

        .shop-cart-drawer__title::after {
            content: '';
            position: absolute;
            inset: 1px;
            border-radius: inherit;
            border: 1px solid rgba(255, 255, 255, 0.01);
            pointer-events: none;
        }

        .shop-cart-checkout__hint {
            margin: 10px 0 0;
            color: rgba(226, 232, 240, 0.74);
            font-size: 13px;
            line-height: 1.65;
        }

        .shop-cart-drawer__body {
            flex: 1;
            padding: 18px 22px 0;
            overflow-y: auto;
            overflow-x: hidden;
            overscroll-behavior: contain;
            overscroll-behavior-x: none;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-y;
        }

        .shop-cart-list {
            display: flex;
            flex-direction: column;
            gap: 14px;
            min-width: 0;
            max-width: 100%;
        }

        .shop-cart-list[hidden],
        .shop-cart-empty[hidden] {
            display: none !important;
        }

        .shop-cart-item {
            padding: 16px;
            border-radius: 22px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
            transform-origin: center;
            min-width: 0;
            max-width: 100%;
            overflow: hidden;
        }

        .shop-cart-item__top,
        .shop-cart-item__footer,
        .shop-cart-item__heading,
        .shop-cart-summary__row,
        .shop-cart-checkout__summary-row,
        .shop-cart-checkout__item-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 12px;
        }

        .shop-cart-item__thumb,
        .shop-cart-item__icon {
            width: 46px;
            height: 46px;
            flex: 0 0 auto;
            border-radius: 16px;
            display: grid;
            place-items: center;
            background: rgba(255, 255, 255, 0.08);
            object-fit: cover;
        }

        .shop-cart-item__icon {
            color: #ffe2c3;
        }

        .shop-cart-item__heading {
            flex: 1 1 auto;
            min-width: 0;
            justify-content: flex-start;
        }

        .shop-cart-item__copy {
            flex: 1 1 auto;
            min-width: 0;
        }

        .shop-cart-item__title,
        .shop-cart-checkout__item-title {
            display: block;
            max-width: 100%;
            font-size: 15px;
            font-weight: 700;
            line-height: 1.35;
            white-space: normal;
            word-break: break-word;
            overflow-wrap: anywhere;
        }

        .shop-cart-item__title-btn {
            padding: 0;
            border: 0;
            background: none;
            color: inherit;
            text-align: left;
            cursor: pointer;
            transition: color 0.18s ease, opacity 0.18s ease;
        }

        .shop-cart-item__title-btn:hover {
            color: #f8fbff;
        }

        .shop-cart-item__title-btn:focus-visible {
            outline: none;
            color: #f8fbff;
        }

        .shop-cart-item__title-btn:disabled {
            cursor: default;
            opacity: 0.9;
        }

        .shop-cart-item__subtitle {
            display: block;
            max-width: 100%;
            margin-top: 4px;
            font-size: 13px;
            color: rgba(226, 232, 240, 0.68);
            line-height: 1.55;
            white-space: normal;
            word-break: break-word;
            overflow-wrap: anywhere;
        }

        .shop-cart-item__remove {
            width: 30px;
            height: 30px;
            min-width: 30px;
            min-height: 30px;
            flex: 0 0 30px;
            align-self: flex-start;
            display: grid;
            place-items: center;
            padding: 0;
            border: 1px solid transparent;
            background: transparent;
            color: rgba(226, 232, 240, 0.72);
            cursor: pointer;
            font-size: 24px;
            line-height: 1;
            font-weight: 700;
            border-radius: 10px;
            transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
        }

        .shop-cart-item__remove-icon {
            position: relative;
            width: 14px;
            height: 14px;
            display: block;
            overflow: visible;
            flex: 0 0 auto;
            background: currentColor;
            -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.2 3.25c.2-.72.86-1.25 1.62-1.25h2.36c.76 0 1.42.53 1.62 1.25L15.05 4H19a1 1 0 1 1 0 2h-.38l-.92 11.48A3.2 3.2 0 0 1 14.52 20.5H9.48a3.2 3.2 0 0 1-3.18-3.02L5.38 6H5a1 1 0 1 1 0-2h3.95l.25-.75z'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.2 3.25c.2-.72.86-1.25 1.62-1.25h2.36c.76 0 1.42.53 1.62 1.25L15.05 4H19a1 1 0 1 1 0 2h-.38l-.92 11.48A3.2 3.2 0 0 1 14.52 20.5H9.48a3.2 3.2 0 0 1-3.18-3.02L5.38 6H5a1 1 0 1 1 0-2h3.95l.25-.75z'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
        }

        .shop-cart-item__remove:hover {
            color: #f8fbff;
            background: rgba(255, 255, 255, 0.08);
            border-color: rgba(255, 255, 255, 0.08);
            box-shadow: none;
            transform: none;
        }

        .shop-cart-item__remove:focus-visible {
            outline: none;
            border-color: rgba(255, 255, 255, 0.18);
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12);
        }

        .shop-cart-item__remove:disabled,
        .shop-cart-item__pill:disabled {
            cursor: default;
            opacity: 0.58;
        }

        .shop-cart-item.is-removing {
            pointer-events: none;
            animation: shop-cart-item-remove-slide 280ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
        }

        @keyframes shop-cart-item-remove-slide {
            0% {
                opacity: 1;
                transform: translateX(0) scale(1);
                filter: blur(0);
            }

            100% {
                opacity: 0;
                transform: translateX(-34px) scale(0.98);
                filter: blur(2px);
            }
        }

        .shop-cart-item__meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 12px;
        }

        .shop-cart-item__pill,
        .shop-cart-checkout__item-pill {
            display: inline-flex;
            align-items: center;
            padding: 6px 10px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.06);
            color: rgba(226, 232, 240, 0.74);
        }

        .shop-cart-item__pill--toggle {
            cursor: pointer;
            transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
        }

        .shop-cart-item__pill--toggle:hover {
            transform: translateY(-1px);
        }

        .shop-cart-item__pill--toggle:focus-visible {
            outline: none;
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
        }

        .shop-cart-item__pill--stock {
            margin-right: auto;
        }

        .shop-cart-item__pill--notice,
        .shop-cart-checkout__item-pill--notice {
            background: transparent;
            border-color: rgba(255, 214, 102, 0.18);
            color: #ffd78f;
        }

        .shop-cart-item__pill--usage,
        .shop-cart-checkout__item-pill--usage {
            background: transparent;
            border-color: rgba(114, 229, 208, 0.16);
            color: #b7fff2;
        }

        .shop-cart-item__pill--discount,
        .shop-cart-checkout__item-pill--discount {
            background: rgba(244, 114, 182, 0.14);
            border-color: rgba(244, 114, 182, 0.2);
            color: #f9a8d4;
        }

        .shop-cart-item__pill--toggle.is-active.shop-cart-item__pill--notice {
            background: rgba(255, 214, 102, 0.18);
            border-color: rgba(255, 214, 102, 0.28);
            box-shadow: 0 10px 18px rgba(255, 214, 102, 0.08);
        }

        .shop-cart-item__pill--toggle.is-active.shop-cart-item__pill--usage {
            background: rgba(114, 229, 208, 0.18);
            border-color: rgba(114, 229, 208, 0.26);
            box-shadow: 0 10px 18px rgba(114, 229, 208, 0.08);
        }

        .shop-cart-item__pill--toggle.is-active.shop-cart-item__pill--discount {
            background: rgba(244, 114, 182, 0.18);
            border-color: rgba(244, 114, 182, 0.3);
            box-shadow: 0 10px 18px rgba(244, 114, 182, 0.1);
        }

        .shop-cart-item__disclosures {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-top: 12px;
        }

        @keyframes shop-cart-disclosure-enter {
            0% {
                opacity: 0;
                transform: translateY(-10px) scaleY(0.92);
            }

            100% {
                opacity: 1;
                transform: translateY(0) scaleY(1);
            }
        }

        .shop-cart-item__panel {
            padding: 12px 14px;
            border-radius: 16px;
            font-size: 13px;
            line-height: 1.6;
            max-height: min(24vh, 220px);
            overflow-y: auto;
            overflow-x: hidden;
            overscroll-behavior: contain;
            overscroll-behavior-x: none;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-y;
            word-break: break-word;
            overflow-wrap: anywhere;
            transform-origin: top center;
            animation: shop-cart-disclosure-enter 0.26s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .shop-cart-item__panel[hidden] {
            display: none !important;
        }

        .shop-cart-item__panel--notice {
            background: rgba(255, 214, 102, 0.08);
            border: 1px solid rgba(255, 214, 102, 0.14);
            color: #ffd78f;
        }

        .shop-cart-item__panel--usage {
            background: rgba(114, 229, 208, 0.08);
            border: 1px solid rgba(114, 229, 208, 0.14);
            color: #b7fff2;
        }

        .shop-cart-item__panel--discounts {
            background: rgba(244, 114, 182, 0.08);
            border: 1px solid rgba(244, 114, 182, 0.14);
            color: rgba(249, 168, 212, 0.94);
        }

        #shopSuccessModal .shop-success-item__notes-panel,
        #shopSuccessModal .shop-success-item__usage-panel {
            max-height: none;
            min-height: 0;
            overflow: visible;
            overscroll-behavior: auto;
            background: rgba(12, 18, 26, 0.26);
            border: 1px solid rgba(255, 255, 255, 0.06);
            color: rgba(226, 232, 240, 0.88);
        }

        .shop-cart-item__discount-stack {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .shop-cart-item__discount-stack-head {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
        }

        .shop-cart-item__discount-stack-title {
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.02em;
            color: #ffd5ea;
        }

        .shop-cart-item__discount-stack-hint {
            font-size: 11px;
            color: rgba(255, 225, 239, 0.74);
        }

        .shop-cart-item__discount-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .shop-cart-item__discount-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 10px 12px;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.06);
        }

        .shop-cart-item__discount-copy {
            min-width: 0;
            flex: 1 1 auto;
        }

        .shop-cart-item__discount-title {
            font-size: 13px;
            font-weight: 700;
            color: #ffd9ed;
        }

        .shop-cart-item__discount-meta {
            margin-top: 2px;
            font-size: 11px;
            color: rgba(255, 225, 239, 0.68);
            word-break: break-all;
        }

        .shop-cart-item__discount-amount {
            flex: 0 0 auto;
            font-size: 12px;
            font-weight: 700;
            color: #b7fff2;
            white-space: nowrap;
        }

        .shop-cart-item__panel > :first-child {
            margin-top: 0 !important;
        }

        .shop-cart-item__panel > :last-child {
            margin-bottom: 0 !important;
        }

        .shop-cart-item__footer {
            align-items: flex-end;
            margin-top: 14px;
        }

        .shop-cart-item__price strong {
            display: block;
            font-family: 'Outfit', sans-serif;
            font-size: 1.25rem;
            letter-spacing: -0.03em;
        }

        .shop-cart-item__price span,
        .shop-cart-checkout__item-meta {
            font-size: 12px;
            color: rgba(226, 232, 240, 0.58);
        }

        .shop-cart-item__discount-note {
            display: block;
            margin-top: 4px;
            font-size: 12px;
            color: rgba(110, 231, 183, 0.86);
        }

        .shop-cart-checkout__discount-note {
            font-size: 12px;
            color: rgba(110, 231, 183, 0.86);
        }

        .shop-cart-item__quantity {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 6px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .shop-cart-item__qty-btn {
            width: 28px;
            height: 28px;
            border: 0;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.08);
            color: #fff;
            cursor: pointer;
        }

        .shop-cart-item__qty-btn[disabled] {
            opacity: 0.4;
            cursor: not-allowed;
        }

        .shop-cart-item__qty-value {
            min-width: 24px;
            text-align: center;
            font-size: 14px;
            font-weight: 700;
        }

        .shop-cart-empty {
            min-height: 320px;
            display: grid;
            place-items: center;
            text-align: center;
            padding: 20px;
        }

        .shop-cart-empty__icon {
            width: 64px;
            height: 64px;
            display: grid;
            place-items: center;
            border-radius: 22px;
            background: rgba(255, 255, 255, 0.06);
            font-size: 22px;
            color: #f6c78d;
            margin: 0 auto 18px;
        }

        .shop-cart-empty h4 {
            margin: 0;
            font-size: 1.2rem;
        }

        .shop-cart-empty p {
            margin: 12px 0 0;
            color: rgba(226, 232, 240, 0.68);
            line-height: 1.65;
        }

        .shop-cart-drawer__footer {
            margin-top: auto;
            padding-bottom: 22px;
            background:
                linear-gradient(180deg, rgba(8, 12, 18, 0) 0%, rgba(8, 12, 18, 0.84) 20%, rgba(8, 12, 18, 0.98) 100%);
            border-bottom-left-radius: 30px;
            border-bottom-right-radius: 30px;
        }

        .shop-cart-summary,
        .shop-cart-checkout__summary {
            display: flex;
            flex-direction: column;
            gap: 12px;
            padding: 16px 18px;
            border-radius: 22px;
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.08);
        }

        .shop-cart-summary__row,
        .shop-cart-checkout__summary-row {
            align-items: baseline;
            font-size: 14px;
            color: rgba(226, 232, 240, 0.72);
        }

        .shop-cart-summary__row strong,
        .shop-cart-checkout__summary-row strong {
            color: #fff;
            font-size: 16px;
        }

        .shop-cart-actions,
        .shop-cart-checkout__actions {
            display: flex;
            gap: 12px;
            margin-top: 16px;
        }

        .shop-cart-btn {
            flex: 1;
            min-height: 50px;
            min-width: 0;
            border-radius: 999px;
            box-sizing: border-box;
            transform: none;
            will-change: transform;
            transition:
                transform 0.14s ease,
                box-shadow 0.18s ease,
                background-color 0.18s ease,
                border-color 0.18s ease,
                filter 0.14s ease,
                color 0.18s ease,
                opacity 0.18s ease;
        }

        .shop-cart-btn--ghost {
            background: rgba(255, 255, 255, 0.05);
            color: #f8fbff;
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow:
                0 10px 22px rgba(0, 0, 0, 0.16),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }

        .shop-cart-btn--primary {
            background-color: #67d975;
            border: 1px solid rgba(173, 247, 186, 0.3);
            color: #062811;
            box-shadow:
                0 14px 26px rgba(0, 0, 0, 0.18),
                0 6px 14px rgba(34, 197, 94, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.2),
                inset 0 -1px 0 rgba(0, 0, 0, 0.08);
        }

        @media (hover: hover) and (pointer: fine) {
            .shop-cart-btn--ghost:hover:not([disabled]) {
                transform: translateY(-1px);
                background: rgba(255, 255, 255, 0.11);
                border-color: rgba(255, 255, 255, 0.18);
                color: #ffffff;
                box-shadow:
                    0 14px 24px rgba(15, 23, 42, 0.24),
                    inset 0 1px 0 rgba(255, 255, 255, 0.1);
            }

            .shop-cart-btn--primary:hover:not([disabled]) {
                transform: translateY(-1px);
                filter: brightness(1.03);
                box-shadow:
                    0 15px 26px rgba(0, 0, 0, 0.2),
                    0 5px 14px rgba(74, 222, 128, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.22),
                    inset 0 -1px 0 rgba(0, 0, 0, 0.08);
            }
        }

        .shop-cart-btn:focus-visible {
            outline: none;
        }

        .shop-cart-btn--ghost:focus-visible {
            border-color: rgba(255, 255, 255, 0.18);
            box-shadow:
                0 0 0 3px rgba(255, 255, 255, 0.08),
                0 14px 24px rgba(0, 0, 0, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        .shop-cart-btn--primary:focus-visible {
            border-color: rgba(201, 251, 210, 0.5);
            box-shadow:
                0 0 0 3px rgba(74, 222, 128, 0.2),
                0 15px 26px rgba(0, 0, 0, 0.2),
                0 5px 14px rgba(74, 222, 128, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.22),
                inset 0 -1px 0 rgba(0, 0, 0, 0.08);
        }

        .shop-cart-btn--ghost:active:not([disabled]) {
            transform: translateY(0);
            filter: brightness(0.98);
            background: rgba(255, 255, 255, 0.09);
            border-color: rgba(255, 255, 255, 0.14);
            box-shadow:
                0 8px 16px rgba(0, 0, 0, 0.16),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        .shop-cart-btn--primary:active:not([disabled]) {
            transform: translateY(0);
            filter: brightness(0.98);
            box-shadow:
                0 9px 18px rgba(0, 0, 0, 0.18),
                0 4px 10px rgba(34, 197, 94, 0.14),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        .shop-cart-btn[disabled] {
            opacity: 0.45;
            cursor: not-allowed;
        }

        .shop-cart-checkout-modal {
            width: min(calc(100% - 40px), 620px) !important;
            max-width: 620px !important;
            padding: 24px;
        }

        .shop-cart-checkout__header {
            text-align: left;
            margin-bottom: 18px;
        }

        .shop-cart-checkout__list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            max-height: min(42vh, 360px);
            padding-right: 4px;
            overflow-y: auto;
            overflow-x: hidden;
            overscroll-behavior: contain;
            overscroll-behavior-x: none;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-y;
        }

        .shop-cart-checkout__item {
            padding: 14px 16px;
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.04);
            border: 1px solid rgba(255, 255, 255, 0.08);
            min-width: 0;
            max-width: 100%;
            overflow: hidden;
        }

        .shop-cart-checkout__item-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 8px;
        }

        .shop-cart-checkout__notice {
            margin-top: 14px;
            padding: 14px 16px;
            border-radius: 18px;
            background: rgba(255, 214, 102, 0.08);
            border: 1px solid rgba(255, 214, 102, 0.14);
            color: #ffd78f;
            font-size: 13px;
            line-height: 1.65;
            text-align: left;
        }

        @media (max-width: 1180px) {
            .shop-cart-drawer {
                right: 40px;
                width: min(404px, calc(100vw - 24px));
            }
        }

        @media (max-width: 720px) {
            body[data-shop-cart-open="true"] {
                overflow: hidden;
            }

            body.shop-page .chat-widget-fab {
                bottom: calc(env(safe-area-inset-bottom, 0px) + 40px);
            }

            .shop-cart-anchor {
                left: auto;
                right: 16px;
                bottom: calc(env(safe-area-inset-bottom, 0px) + 108px);
                width: 56px;
                height: 56px;
                min-width: 56px;
                padding: 0;
                justify-content: center;
                gap: 0;
                border-radius: 18px;
                transform: none;
            }

            .shop-cart-anchor__pulse,
            .shop-cart-anchor__copy,
            .shop-cart-anchor__hint {
                display: none !important;
            }

            .shop-cart-anchor__icon {
                width: 100%;
                height: 100%;
                border: 0;
                border-radius: inherit;
                background: transparent;
                box-shadow: none;
            }

            .shop-cart-anchor__icon i {
                font-size: 24px;
                line-height: 1;
            }

            body[data-shop-cart-open="true"] .shop-cart-anchor {
                transform: translateY(18px);
            }

            body[data-shop-cart-open="true"] .shop-cart-backdrop {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
                background: var(--app-modal-backdrop, var(--public-light-modal-backdrop, rgba(31, 76, 118, 0.20)));
                backdrop-filter: var(--app-modal-backdrop-filter, var(--public-light-modal-backdrop-filter, blur(8px) saturate(108%)));
                -webkit-backdrop-filter: var(--app-modal-backdrop-filter, var(--public-light-modal-backdrop-filter, blur(8px) saturate(108%)));
                transition-delay: 0s;
            }

            .shop-cart-drawer {
                top: auto;
                left: 50%;
                right: auto;
                bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
                width: min(calc(100% - 28px), 620px);
                max-height: min(78dvh, 760px);
                border-radius: 30px 30px 26px 26px;
                transform: translate(-50%, calc(100% + 36px));
                overflow: hidden;
            }

            body[data-shop-cart-open="true"] .shop-cart-drawer {
                transform: translate(-50%, 0);
            }

            body.shop-page.shop-cart-force-hidden .shop-cart-drawer {
                transform: translate(-50%, calc(100% + 36px)) !important;
            }

            .shop-cart-drawer__header,
            .shop-cart-drawer__title {
                display: none !important;
            }

            .shop-cart-drawer__heading {
                display: flex;
                justify-content: flex-start;
                transform: translateY(8px);
            }

            .shop-cart-drawer__label {
                font-size: 15px;
            }

            .shop-cart-drawer__title {
                width: 34px;
                height: 34px;
                margin-top: 0;
                border-radius: 12px;
                transform: translateY(8px) scale(1.12);
            }

            .shop-cart-drawer__title::before {
                width: 16px;
                height: 16px;
            }

            .shop-cart-drawer__body {
                padding: 16px 18px 18px;
            }

            .shop-cart-actions,
            .shop-cart-checkout__actions {
                flex-direction: row;
                align-items: stretch;
                gap: 10px;
            }

            .shop-cart-btn {
                min-height: 48px;
                padding-inline: 12px;
            }

            .shop-card-footer {
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
            }

            .shop-cart-item__footer {
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
                gap: 12px;
                flex-wrap: nowrap;
            }

            .shop-cart-item__price {
                min-width: 0;
                flex: 1 1 auto;
            }

            .shop-cart-item__price strong {
                font-size: 1.08rem;
            }

            .shop-cart-item__quantity {
                flex: 0 0 auto;
                width: 136px;
                justify-content: space-between;
                padding: 5px 8px;
                gap: 10px;
            }

            .shop-cart-item__qty-btn {
                width: 30px;
                height: 30px;
                font-size: 17px;
            }

            .shop-cart-item__qty-value {
                min-width: 22px;
                font-size: 14px;
            }

            .shop-card-actions {
                width: auto;
                flex: 0 0 auto;
                justify-content: flex-end;
            }

            .shop-card-cart-trigger {
                width: 50px;
                height: 50px;
            }

            .shop-cart-anchor:hover,
            .shop-cart-anchor:focus-visible {
                transform: none;
            }

            .shop-cart-anchor:active {
                transform: scale(0.96);
            }
        }

        /* Modal Buttons */
        .shop-btn {
            border: none;
            border-radius: 12px;
            padding: 12px 20px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-decoration: none;
        }

        .shop-btn-primary {
            background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
            color: #052e16;
            box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
        }

        .shop-btn-primary:hover:not(:disabled):not([aria-disabled="true"]):not(.shop-purchase-sold-out-btn) {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(74, 222, 128, 0.4);
            filter: brightness(1.1);
        }

        .shop-purchase-step-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
            padding: 6px 12px;
            border-radius: 999px;
            border: 1px solid rgba(147, 197, 253, 0.2);
            background: rgba(96, 165, 250, 0.12);
            color: #bfdbfe;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
        }

        .shop-purchase-actions {
            display: flex;
            align-items: stretch;
            gap: 12px;
            width: 100%;
        }

        .shop-purchase-actions--single {
            justify-content: space-between;
        }

        #purchaseAddToCartBtn,
        #purchaseBackBtn {
            flex: 0 0 148px;
            min-height: 44px;
            padding: 10px 16px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.08);
            color: rgba(255, 255, 255, 0.92);
            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow:
                0 12px 24px rgba(15, 23, 42, 0.24),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
            transition:
                transform 0.14s ease,
                background-color 0.14s ease,
                border-color 0.14s ease,
                box-shadow 0.14s ease,
                filter 0.14s ease;
        }

        #purchaseAddToCartBtn:hover,
        #purchaseBackBtn:hover {
            transform: translateY(0.5px);
            filter: brightness(0.995) saturate(1.01);
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.18);
            box-shadow:
                0 4px 10px rgba(15, 23, 42, 0.06),
                inset 0 1px 3px rgba(15, 23, 42, 0.045),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
        }

        #purchaseAddToCartBtn,
        #nextPurchaseStepBtn,
        #confirmPurchaseBtn {
            min-height: 44px;
            padding: 10px 16px;
            border-radius: 999px;
            will-change: transform;
        }

        #nextPurchaseStepBtn {
            flex: 0 0 136px;
            box-shadow:
                0 8px 18px rgba(15, 23, 42, 0.1),
                0 3px 8px rgba(74, 222, 128, 0.16),
                inset 0 1px 0 rgba(255, 255, 255, 0.22);
            transition:
                transform 0.14s ease,
                box-shadow 0.14s ease,
                filter 0.14s ease;
        }

        #confirmPurchaseBtn {
            flex: 1 1 auto;
            box-shadow:
                0 8px 18px rgba(15, 23, 42, 0.1),
                0 3px 8px rgba(74, 222, 128, 0.16),
                inset 0 1px 0 rgba(255, 255, 255, 0.22);
            transition:
                transform 0.14s ease,
                box-shadow 0.14s ease,
                filter 0.14s ease;
        }

        #nextPurchaseStepBtn:hover:not(:disabled):not([aria-disabled="true"]):not(.shop-purchase-sold-out-btn),
        #confirmPurchaseBtn:hover:not(:disabled):not([aria-disabled="true"]) {
            transform: translateY(0.5px);
            filter: brightness(0.995) saturate(1.01);
            box-shadow:
                0 4px 10px rgba(15, 23, 42, 0.06),
                inset 0 1px 3px rgba(15, 23, 42, 0.045),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
        }

        #purchaseAddToCartBtn:active:not(:disabled):not([aria-disabled="true"]),
        #nextPurchaseStepBtn:active:not(:disabled):not([aria-disabled="true"]),
        #confirmPurchaseBtn:active:not(:disabled):not([aria-disabled="true"]),
        #purchaseBackBtn:active:not(:disabled):not([aria-disabled="true"]) {
            transform: translateY(0);
            filter: brightness(0.98);
        }

        #nextPurchaseStepBtn:active:not(:disabled):not([aria-disabled="true"]),
        #confirmPurchaseBtn:active:not(:disabled):not([aria-disabled="true"]) {
            transform: translateY(0.5px);
            box-shadow:
                0 3px 8px rgba(15, 23, 42, 0.05),
                inset 0 1px 3px rgba(15, 23, 42, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
        }

        #purchaseAddToCartBtn:active:not(:disabled):not([aria-disabled="true"]),
        #purchaseBackBtn:active:not(:disabled):not([aria-disabled="true"]) {
            transform: translateY(0.5px);
            box-shadow:
                0 3px 8px rgba(15, 23, 42, 0.05),
                inset 0 1px 3px rgba(15, 23, 42, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
        }

        #purchaseAddToCartBtn i,
        #purchaseBackBtn i,
        #nextPurchaseStepBtn i,
        #confirmPurchaseBtn i {
            font-size: 14px;
        }

        #purchaseAddToCartBtn span,
        #purchaseBackBtn span,
        #nextPurchaseStepBtn span,
        #confirmPurchaseBtn span {
            font-size: 14px;
        }

        #purchaseAddToCartBtn.shop-sold-out-restock-btn {
            background: rgba(var(--shop-category-active-blue-rgb), 0.16);
            color: #eaf4ff;
            border-color: rgba(var(--shop-category-active-blue-rgb), 0.38);
            box-shadow:
                0 12px 24px rgba(var(--shop-category-active-blue-rgb), 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        #purchaseAddToCartBtn.shop-sold-out-restock-btn:hover {
            background: rgba(var(--shop-category-active-blue-rgb), 0.22);
            border-color: rgba(var(--shop-category-active-blue-rgb), 0.52);
            color: #ffffff;
        }

        #nextPurchaseStepBtn.shop-purchase-sold-out-btn,
        #nextPurchaseStepBtn.shop-purchase-sold-out-btn:hover,
        #nextPurchaseStepBtn.shop-purchase-sold-out-btn:active,
        #nextPurchaseStepBtn.shop-purchase-sold-out-btn:focus-visible,
        #nextPurchaseStepBtn.shop-purchase-sold-out-btn:disabled {
            background: linear-gradient(135deg, var(--shop-sold-out-soft-red) 0%, var(--shop-sold-out-soft-red-deep) 100%);
            color: #ffffff;
            -webkit-text-fill-color: #ffffff;
            border-color: rgba(var(--shop-sold-out-soft-red-rgb), 0.34);
            box-shadow:
                0 10px 22px rgba(var(--shop-sold-out-soft-red-deep-rgb), 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.16);
            transform: none;
            filter: none;
            transition: none;
            cursor: not-allowed;
            opacity: 1;
        }

        .shop-purchase-confirm-card {
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            background:
                linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(15, 23, 42, 0.22)),
                rgba(15, 23, 42, 0.28);
            box-shadow:
                0 20px 40px rgba(2, 6, 23, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }

        .shop-purchase-confirm-card {
            padding: 18px;
        }

        .shop-purchase-confirm-card__title {
            font-size: 14px;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.94);
            margin-bottom: 14px;
        }

        .shop-purchase-confirm-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .shop-purchase-confirm-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            color: rgba(226, 232, 240, 0.86);
            font-size: 14px;
        }

        .shop-purchase-confirm-row strong {
            color: #ffffff;
            font-size: 14px;
            font-weight: 700;
            text-align: right;
            word-break: break-word;
        }

        .shop-purchase-confirm-row--total {
            margin-top: 6px;
            padding-top: 14px;
            border-top: 1px solid rgba(255, 255, 255, 0.12);
        }

        .shop-purchase-confirm-row--total strong {
            color: #86efac;
            font-size: 16px;
        }

        .shop-purchase-stage-sku {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .shop-sku-selector__label {
            font-size: 13px;
            font-weight: 700;
            color: rgba(226, 232, 240, 0.84);
        }

        .shop-sku-selector__options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
            gap: 10px;
        }

        .shop-sku-option {
            min-width: 0;
            min-height: 64px;
            padding: 10px 12px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.075);
            color: rgba(255, 255, 255, 0.92);
            cursor: pointer;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            gap: 5px;
            text-align: left;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
            transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
        }

        .shop-sku-option:hover:not(:disabled) {
            transform: translateY(-1px);
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(134, 239, 172, 0.34);
        }

        .shop-sku-option.is-selected {
            border-color: rgba(134, 239, 172, 0.72);
            background: rgba(34, 197, 94, 0.14);
            box-shadow:
                0 0 0 3px rgba(34, 197, 94, 0.14),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
        }

        .shop-sku-option.is-disabled,
        .shop-sku-option:disabled {
            cursor: not-allowed;
            opacity: 0.48;
        }

        .shop-sku-option__name {
            max-width: 100%;
            font-size: 14px;
            font-weight: 800;
            line-height: 1.2;
            overflow-wrap: anywhere;
        }

        .shop-sku-option__meta {
            max-width: 100%;
            font-size: 12px;
            line-height: 1.25;
            color: rgba(203, 213, 225, 0.78);
            overflow-wrap: anywhere;
        }

        #shopPurchaseModal .modal-content>.shop-purchase-stage,
        #shopPurchaseModal .shop-purchase-config-panel>.shop-purchase-stage,
        #shopPurchaseModal .shop-purchase-dock>.shop-purchase-stage,
        #shopSuccessModal .shop-success-modal>.shop-success-stage,
        #shopSuccessModal .shop-success-scroll>.shop-success-scroll-stage {
            will-change: opacity, transform;
        }

        #shopPurchaseModal .modal-content>.shop-purchase-stage,
        #shopPurchaseModal .shop-purchase-config-panel>.shop-purchase-stage,
        #shopPurchaseModal .shop-purchase-dock>.shop-purchase-stage {
            transition: none;
        }

        #shopSuccessModal .shop-success-modal>.shop-success-scroll {
            opacity: 1 !important;
            transform: none !important;
            transition: none !important;
            will-change: auto !important;
        }

        #shopSuccessModal .shop-success-scroll>.shop-success-scroll-stage {
            transition: opacity 0.5s ease-out, transform 0.5s ease-out;
        }

        #shopPurchaseModal:not(.active) .modal-content>.shop-purchase-stage,
        #shopPurchaseModal:not(.active) .shop-purchase-config-panel>.shop-purchase-stage,
        #shopPurchaseModal:not(.active) .shop-purchase-dock>.shop-purchase-stage,
        #shopSuccessModal:not(.active) .shop-success-modal>.shop-success-stage,
        #shopSuccessModal:not(.active) .shop-success-scroll>.shop-success-scroll-stage {
            opacity: 0 !important;
            transform: translate3d(0, 14px, 0) !important;
        }

        #shopPurchaseModal.active .modal-content>.shop-purchase-stage,
        #shopPurchaseModal.active .shop-purchase-config-panel>.shop-purchase-stage,
        #shopPurchaseModal.active .shop-purchase-dock>.shop-purchase-stage {
            opacity: 1;
            transform: translate3d(0, 0, 0);
            animation: none;
        }

        #shopPurchaseModal .modal-content>.shop-purchase-stage--opening-stagger,
        #shopPurchaseModal .shop-purchase-config-panel>.shop-purchase-stage--opening-stagger,
        #shopPurchaseModal .shop-purchase-dock>.shop-purchase-stage--opening-stagger,
        #shopPurchaseModal .shop-purchase-stage--opening-stagger .shop-sku-selector__header {
            opacity: 0;
            transform: translate3d(0, 14px, 0);
            animation: none;
        }

        #shopPurchaseModal .shop-purchase-stage--opening-stagger .shop-sku-option--pill,
        #shopPurchaseModal .shop-purchase-stage--opening-stagger .shop-sku-spec-option {
            opacity: 0;
            transform: translate3d(0, 0, 0);
            animation: none;
        }

        #shopPurchaseModal.active .modal-content>.shop-purchase-stage--opening-stagger,
        #shopPurchaseModal.active .shop-purchase-config-panel>.shop-purchase-stage--opening-stagger,
        #shopPurchaseModal.active .shop-purchase-dock>.shop-purchase-stage--opening-stagger {
            animation: shopPurchaseStaggeredRise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        #shopPurchaseModal.active .shop-purchase-stage--opening-stagger .shop-sku-selector__header {
            animation: shopPurchaseStaggeredRise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        #shopPurchaseModal.active .shop-purchase-stage--opening-stagger .shop-sku-option--pill,
        #shopPurchaseModal.active .shop-purchase-stage--opening-stagger .shop-sku-spec-option {
            animation: shopPurchaseSkuTagFadeIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
        }

        #shopPurchaseModal.active .shop-purchase-stage--opening-stagger .shop-sku-option--pill.is-disabled,
        #shopPurchaseModal.active .shop-purchase-stage--opening-stagger .shop-sku-option--pill:disabled,
        #shopPurchaseModal.active .shop-purchase-stage--opening-stagger .shop-sku-spec-option.is-disabled,
        #shopPurchaseModal.active .shop-purchase-stage--opening-stagger .shop-sku-spec-option:disabled {
            animation-name: shopPurchaseSkuDisabledFadeIn;
        }

        #shopSuccessModal.active .shop-success-modal>.shop-success-stage,
        #shopSuccessModal.active .shop-success-scroll>.shop-success-scroll-stage {
            opacity: 1 !important;
            transform: translate3d(0, 0, 0) !important;
        }

        /* 20260525_SHOP_PURCHASE_STAGGER_RHYTHM_1
           外层 stage 统一 60ms 等距节奏，SKU 内部子项统一 40ms 等距节奏，
           原来 80/120/40/40/60/60ms 的混乱间距导致"标题→内容"和"内容→内容"
           视觉不协调。 */
        #shopPurchaseModal.active .shop-purchase-stage-header {
            animation-delay: 0s !important;
            transition-delay: 0s !important;
        }

        @media (min-width: 769px) {
            #shopPurchaseModal.active .modal-content > .shop-purchase-stage-header.shop-purchase-stage--opening-stagger,
            #shopPurchaseModal .shop-purchase-stage-header.shop-purchase-stage--opening-stagger {
                opacity: 1 !important;
                transform: translate3d(0, 0, 0) !important;
                animation: none !important;
            }

            #shopPurchaseModal .shop-purchase-stage-header > #purchaseStageTitle,
            #shopPurchaseModal .shop-purchase-stage-header > #modalProductName {
                will-change: opacity, transform;
            }

            #shopPurchaseModal:not(.active) .shop-purchase-stage-header > #purchaseStageTitle,
            #shopPurchaseModal:not(.active) .shop-purchase-stage-header > #modalProductName,
            #shopPurchaseModal .shop-purchase-stage-header.shop-purchase-stage--opening-stagger > #purchaseStageTitle,
            #shopPurchaseModal .shop-purchase-stage-header.shop-purchase-stage--opening-stagger > #modalProductName {
                opacity: 0;
                transform: translate3d(0, 14px, 0);
            }

            #shopPurchaseModal.active .shop-purchase-stage-header.shop-purchase-stage--opening-stagger > #purchaseStageTitle {
                animation: shopPurchaseStaggeredRise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
                animation-delay: 0.03s !important;
            }

            #shopPurchaseModal.active .shop-purchase-stage-header.shop-purchase-stage--opening-stagger > #modalProductName {
                animation: shopPurchaseStaggeredRise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
                animation-delay: 0.09s !important;
            }

            #shopPurchaseModal.active.shop-purchase-stages-settled .shop-purchase-stage-header > #purchaseStageTitle,
            #shopPurchaseModal.active.shop-purchase-stages-settled .shop-purchase-stage-header > #modalProductName {
                animation: none !important;
                opacity: 1 !important;
                transform: translate3d(0, 0, 0) !important;
            }
        }

        #shopPurchaseModal.active .shop-purchase-stage-sku {
            animation-delay: 0.08s !important;
            transition-delay: 0.08s !important;
        }

        #shopPurchaseModal.active .shop-purchase-stage-quantity {
            animation-delay: 0.2s !important;
            transition-delay: 0.2s !important;
        }

        #shopPurchaseModal.active .shop-purchase-stage-notes {
            animation-delay: 0.24s !important;
            transition-delay: 0.24s !important;
        }

        #shopPurchaseModal.active .shop-purchase-stage-summary {
            animation-delay: 0.28s !important;
            transition-delay: 0.28s !important;
        }

        #shopPurchaseModal.active .shop-purchase-stage-discount {
            animation-delay: 0.34s !important;
            transition-delay: 0.34s !important;
        }

        #shopPurchaseModal.active .shop-purchase-stage-action {
            animation-delay: 0.4s !important;
            transition-delay: 0.4s !important;
        }

        #shopPurchaseModal.active .shop-purchase-stage-sku.shop-purchase-stage--opening-stagger {
            opacity: 1;
            transform: translate3d(0, 0, 0);
            animation: none;
        }

        #shopPurchaseModal.active .shop-purchase-stage--opening-stagger .shop-sku-selector__header {
            animation-delay: 0.06s !important;
        }

        #shopPurchaseModal.active .shop-purchase-stage--opening-stagger .shop-sku-option--pill:nth-of-type(1),
        #shopPurchaseModal.active .shop-purchase-stage--opening-stagger .shop-sku-spec-option:nth-of-type(1) {
            animation-delay: 0.14s !important;
        }

        #shopPurchaseModal.active .shop-purchase-stage--opening-stagger .shop-sku-option--pill:nth-of-type(2),
        #shopPurchaseModal.active .shop-purchase-stage--opening-stagger .shop-sku-spec-option:nth-of-type(2) {
            animation-delay: 0.18s !important;
        }

        #shopPurchaseModal.active .shop-purchase-stage--opening-stagger .shop-sku-option--pill:nth-of-type(3),
        #shopPurchaseModal.active .shop-purchase-stage--opening-stagger .shop-sku-spec-option:nth-of-type(3) {
            animation-delay: 0.22s !important;
        }

        #shopPurchaseModal.active .shop-purchase-stage--opening-stagger .shop-sku-option--pill:nth-of-type(n+4),
        #shopPurchaseModal.active .shop-purchase-stage--opening-stagger .shop-sku-spec-option:nth-of-type(n+4) {
            animation-delay: 0.26s !important;
        }

        @keyframes shopPurchaseStaggeredRise {
            from {
                opacity: 0;
                transform: translate3d(0, 14px, 0);
            }

            to {
                opacity: 1;
                transform: translate3d(0, 0, 0);
            }
        }

        @keyframes shopPurchaseSkuTagFadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        @keyframes shopPurchaseSkuDisabledFadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 0.42;
            }
        }

        @media (min-width: 769px) and (prefers-reduced-motion: reduce) {
            #shopPurchaseModal .shop-purchase-stage-header > #purchaseStageTitle,
            #shopPurchaseModal .shop-purchase-stage-header > #modalProductName {
                animation: none !important;
                opacity: 1 !important;
                transform: translate3d(0, 0, 0) !important;
            }
        }

        #shopSuccessModal.active .shop-success-stage-icon {
            transition-delay: 0.08s !important;
        }

        #shopSuccessModal.active .shop-success-stage-title {
            transition-delay: 0.16s !important;
        }

        #shopSuccessModal.active .shop-success-scroll-stage-meta {
            transition-delay: 0.28s !important;
        }

        #shopSuccessModal.active .shop-success-scroll-stage-content {
            transition-delay: 0.36s !important;
        }

        #shopSuccessModal.active .shop-success-scroll-stage-usage {
            transition-delay: 0.46s !important;
        }

        #shopSuccessModal.active .shop-success-scroll-stage-warning {
            transition-delay: 0.54s !important;
        }

        #shopSuccessModal.active .shop-success-stage-actions {
            transition-delay: 0.64s !important;
        }

        .shop-btn-secondary {
            background: rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .shop-btn-secondary:hover {
            background: rgba(255, 255, 255, 0.2);
            color: #fff;
            transform: translateY(-2px);
        }

        .shop-btn-feedback-success {
            background: #4ade80 !important;
            color: #fff !important;
        }

        .shop-wholesale-badge {
            font-size: 12px;
            color: #10b981;
            background: rgba(16, 185, 129, 0.1);
            padding: 2px 6px;
            border-radius: 4px;
            margin-left: 6px;
            display: inline-flex;
            align-items: center;
            gap: 4px;
            vertical-align: middle;
            line-height: 1;
        }

        .shop-wholesale-badge__icon {
            font-size: 10px;
        }

        .shop-discount-message {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 8px;
            font-size: 13px;
        }

        .shop-discount-message[hidden] {
            display: none !important;
        }

        .shop-discount-message--error {
            color: #ef4444;
        }

        .shop-discount-message--success {
            color: #10b981;
        }

        .shop-discount-message--warning {
            color: #f59e0b;
        }

        .shop-discount-message--info {
            color: #60a5fa;
        }

        .shop-discount-assets-shell {
            display: grid;
            gap: 12px;
            margin-top: 12px;
        }

        .shop-discount-assets-group {
            display: grid;
            gap: 8px;
        }

        .shop-discount-assets-group__title {
            font-size: 12px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.58);
        }

        .shop-discount-assets-grid {
            display: grid;
            gap: 8px;
        }

        .shop-discount-asset-card {
            width: 100%;
            padding: 10px 12px;
            border-radius: 14px;
            border: 1px solid rgba(255, 255, 255, 0.12);
            background: rgba(255, 255, 255, 0.06);
            color: #fff;
            text-align: left;
            display: grid;
            align-items: start;
            position: relative;
            gap: 5px;
            transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
        }

        .shop-discount-asset-card:hover:not(.is-disabled):not(:disabled) {
            transform: translateY(-1px);
            border-color: rgba(255, 255, 255, 0.22);
            background: rgba(255, 255, 255, 0.09);
        }

        .shop-discount-asset-card.is-selected {
            border-color: rgba(16, 185, 129, 0.55);
            background: rgba(16, 185, 129, 0.12);
        }

        .shop-discount-asset-card.is-disabled,
        .shop-discount-asset-card:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .shop-discount-asset-card.has-product-targets {
            opacity: 0.88;
            cursor: default;
        }

        .shop-discount-asset-card.has-product-targets .shop-discount-asset-card__cta {
            color: rgba(255, 255, 255, 0.82);
        }

        .shop-discount-asset-card__top {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: flex-start;
            gap: 6px 10px;
            font-size: 14px;
            line-height: 1.25;
        }

        .shop-discount-asset-card__identity {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px;
            min-width: 0;
        }

        .shop-discount-asset-card__identity strong {
            min-width: 0;
            max-width: 100%;
            line-height: 1.2;
            overflow-wrap: anywhere;
        }

        .shop-discount-asset-card__benefit {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 4px 8px;
            border-radius: 999px;
            border: 1px solid rgba(244, 114, 182, 0.24);
            background: rgba(244, 114, 182, 0.12);
            color: #f9a8d4;
            font-size: 11px;
            font-weight: 700;
            line-height: 1;
            white-space: nowrap;
        }

        .shop-discount-asset-card__stacking {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 4px 8px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 700;
            line-height: 1;
            white-space: nowrap;
            border: 1px solid transparent;
        }

        .shop-discount-asset-card__stacking--exclusive {
            border-color: rgba(251, 191, 36, 0.26);
            background: rgba(251, 191, 36, 0.12);
            color: #fcd34d;
        }

        .shop-discount-asset-card__stacking--stackable {
            border-color: rgba(45, 212, 191, 0.24);
            background: rgba(45, 212, 191, 0.12);
            color: #99f6e4;
        }

        .shop-discount-asset-card__cta {
            display: inline-flex;
            align-items: center;
            justify-self: end;
            font-size: 12px;
            color: rgba(255, 255, 255, 0.72);
            line-height: 1.2;
            white-space: nowrap;
        }

        .shop-discount-asset-card__disclosure {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 8px;
            margin-left: auto;
            max-width: min(58%, 220px);
        }

        .shop-discount-asset-card__chevron {
            width: 22px;
            height: 22px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            margin-top: 0;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.05);
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
            transform: rotate(0deg);
            transition:
                transform 0.22s ease,
                background 0.22s ease,
                box-shadow 0.22s ease;
        }

        .shop-discount-asset-card__chevron::before {
            content: '';
            width: 6px;
            height: 6px;
            border-right: 2px solid rgba(255, 255, 255, 0.68);
            border-bottom: 2px solid rgba(255, 255, 255, 0.68);
            transform: rotate(45deg) translateY(-1px);
            transition: border-color 0.22s ease;
        }

        .shop-discount-asset-card--collapsible {
            padding: 0;
            gap: 0;
            overflow: hidden;
            opacity: 1;
            transition:
                border-color 0.22s ease,
                background 0.22s ease,
                box-shadow 0.22s ease,
                transform 0.22s ease;
        }

        .shop-discount-asset-card--collapsible.is-disabled {
            opacity: 1;
        }

        .shop-discount-asset-card--collapsible[open] {
            border-color: rgba(255, 255, 255, 0.18);
            background: rgba(255, 255, 255, 0.08);
        }

        .shop-discount-asset-card--collapsible[open] .shop-discount-asset-card__chevron {
            transform: rotate(180deg);
            background: rgba(187, 247, 208, 0.1);
            box-shadow: inset 0 0 0 1px rgba(187, 247, 208, 0.2);
        }

        .shop-discount-asset-card--collapsible[open] .shop-discount-asset-card__chevron::before {
            border-color: rgba(187, 247, 208, 0.88);
        }

        .shop-discount-asset-card__summary {
            position: relative;
            list-style: none;
            display: grid;
            gap: 6px;
            padding: 10px 58px 10px 12px;
            cursor: pointer;
            transition: background 0.2s ease;
        }

        .shop-discount-asset-card--collapsible .shop-discount-asset-card__disclosure {
            position: absolute;
            top: 50%;
            right: 12px;
            transform: translateY(-50%);
            margin-left: 0;
            max-width: none;
        }

        .shop-discount-asset-card__summary-reason {
            font-size: 12px;
            line-height: 1.45;
            color: rgba(255, 232, 163, 0.92);
        }

        .shop-discount-asset-card__summary::-webkit-details-marker {
            display: none;
        }

        .shop-discount-asset-card__summary::marker {
            content: '';
        }

        .shop-discount-asset-card__summary:focus-visible {
            outline: 2px solid rgba(187, 247, 208, 0.42);
            outline-offset: -2px;
        }

        .shop-discount-asset-card__fold {
            display: grid;
            opacity: 0;
            border-top: 1px solid transparent;
            background: rgba(255, 255, 255, 0.025);
            transition: border-top-color 0.22s ease;
        }

        .shop-discount-asset-card__fold-inner {
            overflow: hidden;
            display: grid;
            gap: 10px;
            padding: 0 12px;
            transform: translateY(-8px);
            transition: none;
        }

        .shop-discount-asset-card--collapsible[open] .shop-discount-asset-card__summary {
            background: rgba(255, 255, 255, 0.02);
        }

        .shop-discount-asset-card--collapsible[open] .shop-discount-asset-card__fold {
            opacity: 1;
            border-top-color: rgba(255, 255, 255, 0.08);
        }

        .shop-discount-asset-card--collapsible[open] .shop-discount-asset-card__fold-inner {
            padding: 10px 12px 12px;
            transform: translateY(0);
        }

        .shop-discount-asset-card--collapsible.is-collapsing .shop-discount-asset-card__summary {
            background: transparent;
        }

        .shop-discount-asset-card--collapsible.is-collapsing .shop-discount-asset-card__chevron {
            transform: rotate(0deg);
            background: rgba(255, 255, 255, 0.05);
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
        }

        .shop-discount-asset-card--collapsible.is-collapsing .shop-discount-asset-card__chevron::before {
            border-color: rgba(255, 255, 255, 0.68);
        }

        .shop-discount-asset-card__meta {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.72);
            line-height: 1.35;
        }

        .shop-discount-asset-card__hint {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.84);
            line-height: 1.35;
        }

        .shop-discount-asset-card__targets {
            display: grid;
            gap: 6px;
            margin-top: 2px;
        }

        .shop-discount-asset-card__targets--static {
            grid-template-columns: minmax(0, 1fr);
            align-items: start;
            gap: 4px 8px;
            margin-top: 0;
        }

        .shop-discount-asset-card__targets--static .shop-discount-asset-card__targets-label {
            display: none;
        }

        .shop-discount-asset-card__targets-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .shop-discount-asset-card__targets-label {
            font-size: 11px;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.52);
        }

        .shop-discount-asset-card__targets-count {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.44);
        }

        .shop-discount-asset-card__targets-list {
            display: grid;
            grid-template-columns: 1fr;
            gap: 6px;
        }

        .shop-discount-asset-card__target-link {
            appearance: none;
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center;
            gap: 10px;
            width: 100%;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.025);
            color: #e2e8f0;
            border-radius: 12px;
            padding: 9px 12px;
            font-size: 12px;
            line-height: 1.35;
            text-align: left;
            cursor: pointer;
            transition:
                border-color 0.18s ease,
                background 0.18s ease,
                transform 0.18s ease;
        }

        .shop-discount-asset-card__target-link:hover {
            transform: translateY(-1px);
            border-color: rgba(187, 247, 208, 0.22);
            background: rgba(255, 255, 255, 0.04);
        }

        .shop-discount-asset-card__target-link:focus-visible {
            outline: 2px solid rgba(187, 247, 208, 0.42);
            outline-offset: 2px;
        }

        .shop-discount-asset-card__target-name {
            font-size: 13px;
            font-weight: 650;
            color: #f8fafc;
            min-width: 0;
            text-align: left;
        }

        .shop-discount-asset-card__target-action {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
            min-height: 24px;
            padding: 0 2px;
            border-radius: 999px;
            border: 0;
            background: transparent;
            font-size: 11px;
            font-weight: 650;
            color: rgba(187, 247, 208, 0.82);
            white-space: nowrap;
            text-align: right;
        }

        .shop-discount-asset-card__target-action::after {
            content: '';
            width: 5px;
            height: 5px;
            border-top: 1.5px solid currentColor;
            border-right: 1.5px solid currentColor;
            transform: rotate(45deg);
            opacity: 0.82;
        }

        .shop-discount-asset-card__scope {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.76);
            line-height: 1.35;
            min-width: 0;
            padding: 0;
            border-radius: 0;
            background: transparent;
            overflow-wrap: anywhere;
            text-align: left;
        }

        .shop-discount-assets-empty {
            margin-top: 12px;
            padding: 10px 12px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.05);
            color: rgba(255, 255, 255, 0.62);
            font-size: 12px;
            line-height: 1.5;
        }

        .shop-price-waterfall-panel {
            margin-top: 10px;
        }

        .shop-price-waterfall {
            display: grid;
            gap: 10px;
            padding: 12px 14px;
            border-radius: 16px;
            background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .shop-price-waterfall__header {
            display: grid;
            gap: 8px;
        }

        .shop-price-waterfall__title {
            font-size: 12px;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.62);
        }

        .shop-price-waterfall__policy {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .shop-price-waterfall__policy-chip {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px 8px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.08);
            color: rgba(255, 255, 255, 0.78);
            font-size: 11px;
        }

        .shop-price-waterfall__rows {
            display: grid;
            gap: 8px;
        }

        .shop-price-waterfall__row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .shop-price-waterfall__row-copy {
            display: grid;
            gap: 3px;
            min-width: 0;
        }

        .shop-price-waterfall__row-copy strong {
            font-size: 13px;
            color: #fff;
        }

        .shop-price-waterfall__row-copy span {
            font-size: 11px;
            color: rgba(255, 255, 255, 0.62);
            line-height: 1.4;
        }

        .shop-price-waterfall__row-value {
            font-size: 14px;
            font-weight: 700;
            color: rgba(255, 255, 255, 0.88);
            white-space: nowrap;
        }

        .shop-price-waterfall__row--discount .shop-price-waterfall__row-value {
            color: #10b981;
        }

        .shop-price-waterfall__row--total .shop-price-waterfall__row-value {
            color: #fbbf24;
            font-size: 16px;
        }

        .shop-price-waterfall__footer {
            font-size: 11px;
            line-height: 1.5;
            color: rgba(255, 255, 255, 0.6);
        }

        .shop-btn:active {
            transform: translateY(0);
            filter: brightness(0.9);
        }

        /* Quantity Input Reset */
        .shop-quantity-input {
            width: 50px;
            text-align: center;
            background: transparent;
            border: none;
            color: #fff;
            font-weight: 700;
            font-family: 'Outfit', sans-serif;
            font-size: 1.2rem;
            -moz-appearance: textfield;
            appearance: textfield;
        }

        .shop-quantity-input::-webkit-outer-spin-button,
        .shop-quantity-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .shop-quantity-input:focus {
            outline: none;
        }

        .shop-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 24px;
            position: relative;
        }

        .shop-grid-transition-layer {
            position: absolute;
            inset: 0;
            pointer-events: none;
            z-index: 1;
        }

        .shop-card-filter-motion-lock {
            animation: none !important;
            transition: none !important;
            will-change: transform, opacity;
        }

        .shop-card-filter-hidden {
            opacity: 0 !important;
            pointer-events: none !important;
        }

        .shop-card-filter-moving {
            z-index: 2;
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        }

        /*
         * 入场/退出 transform 还原到 .shop-card：呼吸 transform 在子 breathe-frame，
         * 父子各自一个 transform 来源，互不打断；并且 .shop-card 始终是 promoted
         * layer，cleanup 后 transform 回到 base 的 translate3d(0,0,0)（与终态等价），
         * 不会降层、不引起子层重栅格化。
         * .shop-card-filter-enter 上不再加 z-index，避免 stacking context 出现/消失。
         */
        .shop-card-filter-enter {
            opacity: 0;
            transform: translate3d(0, 20px, 0);
        }

        .shop-card-filter-enter.is-visible {
            opacity: 1;
            transform: translate3d(0, 0, 0);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }

        .shop-card-filter-exit {
            opacity: 1;
            transform: translate3d(0, 0, 0);
        }

        .shop-card-filter-exit.is-leaving {
            opacity: 0;
            transform: scale(0.9);
            transition: opacity 0.3s ease, transform 0.3s ease;
        }

        .shop-card-transition-clone {
            position: absolute;
            margin: 0 !important;
            pointer-events: none;
            z-index: 1;
            opacity: 1;
            animation: none !important;
            will-change: transform, opacity;
            backface-visibility: hidden;
            transform: translate3d(0, 0, 0) scale(1);
            transition:
                opacity 0.34s ease-in var(--shop-card-filter-delay, 0ms),
                transform 0.44s cubic-bezier(0.4, 0, 0.2, 1) var(--shop-card-filter-delay, 0ms);
        }

        .shop-card-transition-clone--moving {
            z-index: 3;
            transition:
                transform 0.82s cubic-bezier(0.2, 0.72, 0.24, 1) var(--shop-card-filter-delay, 0ms),
                opacity 0.18s ease-in var(--shop-card-filter-delay, 0ms);
        }

        .shop-card-transition-clone--exit {
            z-index: 1;
        }

        .shop-card-transition-clone.is-exiting {
            opacity: 0;
            transform: translate3d(0, 18px, 0) scale(0.988);
        }

        .shop-grid.is-empty {
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: clamp(240px, 34vh, 400px);
            padding: clamp(8px, 1.8vw, 18px) 0;
            transition: min-height 0.24s ease, padding 0.24s ease;
        }

        .shop-empty-state {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 12px;
            text-align: center;
            width: min(100%, 360px);
            padding: 0 12px;
        }

        .shop-empty-icon {
            width: 62px;
            height: 62px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 20px;
            background: linear-gradient(135deg, rgba(107, 158, 206, 0.28), rgba(96, 165, 250, 0.12));
            border: 1px solid rgba(147, 197, 253, 0.24);
            color: #93c5fd;
            box-shadow: 0 18px 40px rgba(96, 165, 250, 0.12);
            font-size: 1.4rem;
            line-height: 1;
        }

        .shop-empty-title {
            margin: 0;
            color: rgba(226, 232, 240, 0.96);
            font-size: clamp(1.12rem, 1.5vw, 1.3rem);
            font-weight: 600;
            letter-spacing: 0.01em;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .shop-main {
                padding: calc(var(--nav-height, 61px) + 12px) 20px calc(40px + env(safe-area-inset-bottom)) 20px;
                margin-top: 0;
            }

            .shop-header {
                display: none;
            }

            .shop-title {
                font-size: 2rem;
            }

            .shop-grid {
                grid-template-columns: repeat(1, minmax(0, 1fr));
                gap: 14px;
            }

            .shop-card-breathe-shell {
                border-radius: 18px;
            }

            .shop-card-image {
                aspect-ratio: 3 / 2;
                height: auto;
            }

            .skeleton-card .skeleton-image-shell {
                aspect-ratio: 3 / 2;
                height: auto;
            }

            .shop-content-padding {
                padding: 16px;
            }

            .shop-card-title {
                margin-bottom: 6px;
                font-size: 1rem;
            }

            .shop-card-desc {
                font-size: 0.82rem;
                line-height: 1.5;
                height: 40px;
            }

            .shop-card-price {
                font-size: 1.05rem;
            }

            .shop-card-price span {
                font-size: 0.72rem;
            }

            .shop-card-footer {
                padding-top: 14px;
                gap: 10px;
            }

            .shop-card-cart-trigger {
                width: 42px;
                height: 42px;
                border-radius: 16px;
            }

            .shop-card-cart-trigger__icon {
                width: 19px;
                height: 19px;
            }

            .shop-grid.is-empty {
                min-height: clamp(180px, 26vh, 260px);
                padding: 6px 0 2px;
            }
        }

        @media (max-width: 559px) {
            .shop-card-image {
                aspect-ratio: 16 / 9;
            }

            .skeleton-card .skeleton-image-shell {
                aspect-ratio: 16 / 9;
            }
        }

        @media (min-width: 560px) and (max-width: 768px) {
            .shop-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: clamp(14px, 2vw, 22px);
            }
        }

        /* Home Button (Replica from Prompts Page) */
        .home-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            box-sizing: border-box;
            border-radius: 50%;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

            /* Fixed Position (Top Left) */
            position: fixed;
            top: 28px;
            left: 30px;
            z-index: 100;

            /* Styles adapted for Dark Theme primarily, as Shop is dark-themed */
            color: rgba(255, 255, 255, 0.85);
            background: rgba(15, 23, 42, 0.6);
            border: 1px solid rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(8px);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }

        .home-btn i {
            font-size: 1.1rem;
        }

        /* Nav Logo SVG inside home button */
        .home-btn.nav-logo svg {
            width: 24px;
            height: 24px;
        }

        .home-btn:hover {
            background: rgba(15, 23, 42, 0.8);
            color: #fff;
            border-color: rgba(255, 255, 255, 0.2);
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
            transform: translateY(-2px);
        }

        /* Standardized Premium Modal (Frosted Glass) */
        .premium-modal {
            max-width: 380px !important;
            background: rgba(30, 41, 59, 0.75);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
            border-radius: 24px;
            color: #fff;
        }

        #shopPurchaseModal .modal-content {
            width: min(calc(100% - 40px), 620px) !important;
            max-width: 620px !important;
            box-sizing: border-box;
            background:
                linear-gradient(180deg, rgba(14, 20, 29, 0.96) 0%, rgba(8, 12, 18, 0.98) 100%) !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            box-shadow:
                0 34px 80px rgba(0, 0, 0, 0.34),
                inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
        }

        #shopSuccessModal .modal-content {
            width: min(calc(100% - 56px), 1040px) !important;
            max-width: 1040px !important;
            box-sizing: border-box;
            padding: 26px clamp(24px, 2.8vw, 34px) clamp(24px, 3vw, 34px) !important;
            border-radius: 30px !important;
        }

        #shopSuccessModal .modal-content.shop-success-modal {
            --shop-success-action-font-size: 12px;
            --shop-success-pill-font-size: 10px;
            --shop-success-thumb-offset-y: 8px;
            text-align: center;
            display: flex;
            flex-direction: column;
            position: relative;
            background:
                linear-gradient(180deg, rgba(14, 20, 29, 0.96) 0%, rgba(8, 12, 18, 0.985) 100%) !important;
            backdrop-filter: blur(22px) saturate(0.92) !important;
            -webkit-backdrop-filter: blur(22px) saturate(0.92) !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            box-shadow:
                0 34px 80px rgba(0, 0, 0, 0.34),
                inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
            height: min(840px, calc(100dvh - 40px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))) !important;
            max-height: calc(100dvh - 40px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
            overflow: hidden;
        }

        .shop-success-scroll {
            display: flex;
            flex-direction: column;
            gap: 24px;
            min-height: 0;
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            overscroll-behavior: contain;
            overscroll-behavior-x: none;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-y;
            padding-right: 8px;
            margin-right: -8px;
            padding-bottom: 4px;
        }

        /* 20260428_PUBLIC_TOUCH_PAN_LOCK_1 */
        #shopSuccessModal .shop-success-content-shell,
        #shopSuccessModal.has-usage-instructions .shop-success-content-shell {
            max-height: none !important;
            overflow: visible !important;
            min-width: 0;
            max-width: 100%;
        }

        #shopSuccessModal .shop-success-content-shell--plain {
            margin: 0 !important;
            padding: 0 !important;
            background: transparent !important;
            border: none !important;
            box-shadow: none !important;
            text-align: left !important;
            word-break: normal !important;
            max-height: none !important;
            overflow: visible !important;
            min-width: 0;
            max-width: 100%;
        }

        #shopSuccessModal .shop-success-content {
            font-family: inherit !important;
            font-size: inherit !important;
            color: inherit !important;
            white-space: normal !important;
            overflow: visible !important;
            min-width: 0;
            max-width: 100%;
            overflow-wrap: anywhere;
        }

        .shop-success-actions {
            display: flex;
            gap: 10px;
            margin-top: 0;
        }

        .shop-success-actions .shop-btn {
            flex: 0 0 auto;
        }

        #shopSuccessModal .shop-success-actions {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            gap: 10px;
            width: auto;
            margin: 0;
        }

        #shopSuccessModal .shop-success-actions .shop-btn {
            flex: 0 0 auto;
            min-width: 0;
            min-height: 40px;
            padding: 8px 14px;
            border-radius: 999px;
            box-shadow:
                0 10px 18px rgba(0, 0, 0, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.18);
        }

        #shopSuccessModal .shop-success-actions .shop-btn i {
            font-size: 14px;
        }

        #shopSuccessModal .shop-success-actions .shop-btn span {
            font-size: var(--shop-success-action-font-size);
        }

        #shopSuccessModal #copyContentBtn {
            box-shadow:
                0 14px 28px rgba(0, 0, 0, 0.18),
                0 4px 12px rgba(74, 222, 128, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.22);
        }

        #shopSuccessModal #exportContentBtn {
            background: #ffffff !important;
            color: #111827 !important;
            border: 1px solid rgba(255, 255, 255, 0.95) !important;
            box-shadow:
                0 14px 28px rgba(0, 0, 0, 0.16),
                0 4px 10px rgba(255, 255, 255, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.96);
        }

        #shopSuccessModal #exportContentBtn i,
        #shopSuccessModal #exportContentBtn span {
            color: inherit !important;
        }

        .shop-success-usage-card {
            padding: 15px;
            text-align: left;
            line-height: 1.7;
            justify-content: flex-start;
            align-items: stretch;
            cursor: text !important;
            transition: none !important;
            -webkit-user-select: text !important;
            user-select: text !important;
            -webkit-touch-callout: default !important;
            min-height: 0;
            min-width: 0;
            max-width: 100%;
            overflow-wrap: anywhere;
        }

        .shop-success-usage-card,
        .shop-success-usage-card *,
        #usageInstructionsContent,
        #usageInstructionsContent *,
        #purchaseNotesContent,
        #purchaseNotesContent *,
        #purchaseUsageContent,
        #purchaseUsageContent * {
            -webkit-user-select: text !important;
            user-select: text !important;
        }

        .shop-success-usage-card::before,
        .shop-success-usage-card:hover::before {
            opacity: 0 !important;
        }

        .shop-success-usage-card:hover {
            transform: none !important;
            background: rgba(255, 255, 255, 0.03) !important;
            border-color: rgba(255, 255, 255, 0.08) !important;
            border-top-color: rgba(255, 255, 255, 0.15) !important;
            border-left-color: rgba(255, 255, 255, 0.15) !important;
            box-shadow:
                0 20px 40px -10px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                inset 0 0 20px rgba(255, 255, 255, 0.01) !important;
        }

        #usageInstructionsContent,
        #purchaseUsageContent {
            cursor: text;
            -webkit-touch-callout: default;
            min-height: 0;
        }

        #usageInstructionsContent a {
            color: #60a5fa;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease, opacity 0.2s ease;
            border-bottom: 1px solid transparent;
            cursor: pointer;
        }

        #purchaseNotesContent a,
        #purchaseUsageContent a {
            color: #60a5fa;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s ease, opacity 0.2s ease;
            border-bottom: 1px solid transparent;
            cursor: pointer;
        }

        #usageInstructionsContent a:hover {
            color: #93c5fd;
            opacity: 0.9;
        }

        #purchaseNotesContent a:hover,
        #purchaseUsageContent a:hover {
            color: #93c5fd;
            opacity: 0.9;
        }

        .shop-rich-link {
            color: #6b9ece;
            text-decoration: underline;
            text-underline-offset: 2px;
        }

        #shopPurchaseModal .shop-success-usage-card {
            position: relative;
            box-sizing: border-box;
            max-height: var(--shop-purchase-guidance-card-max, min(32vh, 220px));
            overflow: hidden;
            overscroll-behavior: contain;
            overscroll-behavior-x: none;
            padding-bottom: 15px !important;
        }

        #shopPurchaseModal #purchaseNotesContent,
        #shopPurchaseModal #purchaseUsageContent {
            box-sizing: border-box;
            min-height: 28px;
            max-height: calc(var(--shop-purchase-guidance-card-max, min(32vh, 220px)) - 30px);
            overflow-y: auto;
            overflow-x: hidden;
            overscroll-behavior: contain;
            overscroll-behavior-x: none;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-y;
            padding-right: 42px;
            padding-bottom: var(--shop-purchase-guidance-card-bottom-inset, 30px) !important;
            scroll-padding-bottom: var(--shop-purchase-guidance-card-bottom-inset, 30px);
        }

        #shopPurchaseModal .shop-success-usage-card .shop-guidance-copy-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            z-index: 2;
            width: 30px;
            height: 30px;
        }

        #shopPurchaseModal #purchaseNotesContent::-webkit-scrollbar,
        #shopPurchaseModal #purchaseUsageContent::-webkit-scrollbar {
            width: 7px;
        }

        #shopPurchaseModal #purchaseNotesContent::-webkit-scrollbar-track,
        #shopPurchaseModal #purchaseUsageContent::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 999px;
        }

        #shopPurchaseModal #purchaseNotesContent::-webkit-scrollbar-thumb,
        #shopPurchaseModal #purchaseUsageContent::-webkit-scrollbar-thumb {
            background: rgba(107, 158, 206, 0.45);
            border-radius: 999px;
        }

        #shopPurchaseModal #purchaseNotesContent::-webkit-scrollbar-thumb:hover,
        #shopPurchaseModal #purchaseUsageContent::-webkit-scrollbar-thumb:hover {
            background: rgba(107, 158, 206, 0.65);
        }

        #shopPurchaseModal #purchaseNotesCard.shop-success-usage-card,
        #shopPurchaseModal #purchaseNotesCard.shop-success-usage-card:hover,
        #shopPurchaseModal #purchaseUsageCard.shop-success-usage-card,
        #shopPurchaseModal #purchaseUsageCard.shop-success-usage-card:hover {
            transform: none !important;
            box-shadow: none !important;
        }

        #shopPurchaseModal {
            --shop-purchase-overlay-height: 100dvh;
            --shop-purchase-viewport-top: 0px;
            --shop-purchase-viewport-left: 0px;
            --shop-purchase-viewport-width: 100vw;
            --shop-purchase-translate-y: 0px;
            --shop-purchase-scale: 0.95;
            top: var(--shop-purchase-viewport-top) !important;
            left: var(--shop-purchase-viewport-left) !important;
            right: auto !important;
            bottom: auto !important;
            width: var(--shop-purchase-viewport-width) !important;
            height: var(--shop-purchase-overlay-height) !important;
            min-height: var(--shop-purchase-overlay-height) !important;
            overflow: hidden !important;
            overscroll-behavior: none !important;
            box-sizing: border-box !important;
        }

        html.shop-purchase-modal-lock,
        body.shop-purchase-modal-lock {
            overflow: hidden !important;
            overscroll-behavior: none !important;
            background: var(--shop-purchase-theme-chrome-color, var(--site-theme-chrome-color, var(--bg-color))) !important;
        }

        body.shop-purchase-modal-lock {
            position: fixed !important;
            top: var(--shop-purchase-lock-top, 0px) !important;
            left: 0;
            right: 0;
            width: 100%;
        }

        #shopPurchaseModal.shop-purchase-force-hidden,
        #shopPurchaseModal[hidden] {
            display: none !important;
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
            background: transparent !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            transition: none !important;
        }

        #shopCartCheckoutModal.shop-modal-force-hidden,
        #shopSuccessModal.shop-modal-force-hidden {
            display: none !important;
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
            background: transparent !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            transition: none !important;
        }

        #shopCartCheckoutModal.shop-modal-force-hidden .modal-content,
        #shopSuccessModal.shop-modal-force-hidden .modal-content {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            transition: none !important;
            animation: none !important;
        }

        #shopPurchaseModal.active {
            --shop-purchase-scale: 1;
        }

        #shopPurchaseModal .modal-content {
            margin: auto !important;
            position: relative !important;
            top: auto !important;
            transform: translate3d(0, var(--shop-purchase-translate-y, 0px), 0) scale(var(--shop-purchase-scale, 0.95)) !important;
            transition: none !important;
            will-change: transform, height !important;
        }

        #shopPurchaseModal .modal-content.shop-purchase-height-locked {
            height: var(--shop-purchase-dock-height) !important;
            max-height: var(--shop-purchase-dock-height) !important;
            overflow-y: auto !important;
            overflow-x: hidden !important;
        }

        #shopPurchaseModal .modal-content.shop-purchase-notes-height-animating,
        #shopPurchaseModal.active .modal-content.shop-purchase-notes-height-animating,
        #shopPurchaseModal.active:focus-within .modal-content.shop-purchase-notes-height-animating,
        #shopPurchaseModal.ios-focus-lock .modal-content.shop-purchase-notes-height-animating,
        #shopPurchaseModal.keyboard-docked .modal-content.shop-purchase-notes-height-animating {
            overflow: hidden !important;
            transition:
                height 240ms cubic-bezier(0.22, 1, 0.36, 1),
                max-height 240ms cubic-bezier(0.22, 1, 0.36, 1) !important;
        }

        #shopPurchaseModal.active .modal-content,
        #shopPurchaseModal.active:focus-within .modal-content,
        #shopPurchaseModal.ios-focus-lock .modal-content,
        #shopPurchaseModal.keyboard-docked .modal-content {
            transform: translate3d(0, var(--shop-purchase-translate-y, 0px), 0) scale(1) !important;
            animation: none !important;
        }

        #shopPurchaseModal.active:not(:focus-within):not(.ios-focus-lock):not(.keyboard-docked) .modal-content {
            transition: transform 0.3s ease-out !important;
        }

        #shopPurchaseModal.shop-purchase-opening-stable .modal-content,
        #shopPurchaseModal.shop-purchase-opening-stable.active .modal-content,
        #shopPurchaseModal.shop-purchase-opening-stable.active:not(:focus-within):not(.ios-focus-lock):not(.keyboard-docked) .modal-content,
        #shopPurchaseModal.shop-purchase-opening-stable.keyboard-docked .modal-content,
        #shopPurchaseModal.shop-purchase-opening-stable .modal-content.shop-purchase-height-locked,
        #shopPurchaseModal.shop-purchase-opening-stable .modal-content.shop-purchase-sheet-animating,
        #shopPurchaseModal.shop-purchase-opening-stable .modal-content.shop-purchase-notes-height-animating {
            transition: none !important;
        }

        #shopPurchaseModal.shop-purchase-opening-stable .shop-purchase-stage[hidden] {
            animation: none !important;
            transition: none !important;
        }

        #shopPurchaseModal.active .shop-purchase-stage--opening-settled {
            animation: none !important;
        }

        #shopPurchaseModal.active.shop-purchase-stages-settled .modal-content>.shop-purchase-stage,
        #shopPurchaseModal.active.shop-purchase-stages-settled .shop-purchase-config-panel>.shop-purchase-stage,
        #shopPurchaseModal.active.shop-purchase-stages-settled .shop-purchase-dock>.shop-purchase-stage {
            animation: none !important;
            transition-delay: 0s !important;
        }

        #shopPurchaseModal.shop-purchase-opening-stable .shop-purchase-discount,
        #shopPurchaseModal.shop-purchase-opening-stable .shop-purchase-discount__fold,
        #shopPurchaseModal.shop-purchase-opening-stable .shop-purchase-discount__fold-inner {
            transition: none !important;
        }

        @media (max-width: 768px) {
            #shopPurchaseModal .modal-content {
                width: calc(100% - 40px) !important;
                max-width: 620px !important;
                max-height: min(760px, calc(100dvh - 112px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))) !important;
                display: flex !important;
                flex-direction: column;
                overflow-y: auto !important;
                overflow-x: hidden !important;
                overscroll-behavior: contain;
                overscroll-behavior-x: none;
                -webkit-overflow-scrolling: touch;
                touch-action: pan-y;
                scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
                border-radius: 30px !important;
                padding: 24px 20px calc(20px + env(safe-area-inset-bottom)) !important;
            }

            #shopSuccessModal .modal-content {
                --shop-success-thumb-offset-y: 6px;
                width: calc(100% - 40px) !important;
                max-width: 620px !important;
                border-radius: 28px !important;
                padding: 22px 16px calc(18px + env(safe-area-inset-bottom)) !important;
            }

            #shopPurchaseModal .modal-content,
            #shopPurchaseModal.active .modal-content,
            #shopPurchaseModal.active:focus-within .modal-content,
            #shopPurchaseModal.ios-focus-lock .modal-content,
            #shopPurchaseModal.keyboard-docked .modal-content {
                margin: auto !important;
                position: relative !important;
                top: auto !important;
                transform: translate3d(0, var(--shop-purchase-translate-y, 0px), 0) scale(1) !important;
                transition: none !important;
                will-change: transform, height !important;
            }

            #shopPurchaseModal .modal-content.shop-purchase-notes-height-animating,
            #shopPurchaseModal.active .modal-content.shop-purchase-notes-height-animating,
            #shopPurchaseModal.active:focus-within .modal-content.shop-purchase-notes-height-animating,
            #shopPurchaseModal.ios-focus-lock .modal-content.shop-purchase-notes-height-animating,
            #shopPurchaseModal.keyboard-docked .modal-content.shop-purchase-notes-height-animating {
                overflow: hidden !important;
                transition:
                    height 240ms cubic-bezier(0.22, 1, 0.36, 1),
                    max-height 240ms cubic-bezier(0.22, 1, 0.36, 1) !important;
            }

            #shopPurchaseModal .shop-purchase-stage-header,
            #shopPurchaseModal .shop-purchase-stage-sku,
            #shopPurchaseModal .shop-purchase-stage-quantity,
            #shopPurchaseModal .shop-purchase-stage-discount,
            #shopPurchaseModal .shop-purchase-stage-summary,
            #shopPurchaseModal .shop-purchase-stage-action {
                flex: 0 0 auto;
            }

            #shopPurchaseModal #purchaseNotesBox,
            #shopPurchaseModal #purchaseUsageBox {
                display: flex;
                flex: 0 0 auto;
                flex-direction: column;
                min-height: 0;
                overflow: visible;
            }

            #shopPurchaseModal #purchaseNotesBox.is-expanded,
            #shopPurchaseModal #purchaseUsageBox.is-expanded {
                flex: 1 1 auto;
                margin-bottom: 18px !important;
                overflow: visible;
            }

            #shopPurchaseModal #purchaseNotesBox:not(.is-expanded),
            #shopPurchaseModal #purchaseUsageBox:not(.is-expanded) {
                flex: 0 0 auto;
                overflow: visible;
            }

            #shopPurchaseModal #purchaseNotesCard.shop-success-usage-card,
            #shopPurchaseModal #purchaseUsageCard.shop-success-usage-card {
                flex: 1 1 auto;
                min-height: 96px;
                max-height: clamp(160px, 34dvh, 320px);
                overflow: hidden;
                overscroll-behavior: contain;
                overscroll-behavior-x: none;
            }

            #shopPurchaseModal #purchaseNotesContent,
            #shopPurchaseModal #purchaseUsageContent {
                max-height: calc(clamp(160px, 34dvh, 320px) - 30px);
            }

            #shopPurchaseModal .shop-purchase-stage-action {
                position: relative;
                z-index: 6;
                box-sizing: border-box;
                width: 100%;
                margin: 0;
                padding: 14px 0 0;
                background: transparent;
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
            }

            #shopPurchaseModal .shop-purchase-stage-action .shop-purchase-actions {
                position: relative;
                z-index: 1;
                width: 100%;
                margin-inline: auto;
            }

            #shopPurchaseModal .modal-content.shop-purchase-sheet-animating,
            #shopPurchaseModal.active .modal-content.shop-purchase-sheet-animating,
            #shopPurchaseModal.active:focus-within .modal-content.shop-purchase-sheet-animating,
            #shopPurchaseModal.ios-focus-lock .modal-content.shop-purchase-sheet-animating,
            #shopPurchaseModal.keyboard-docked .modal-content.shop-purchase-sheet-animating {
                transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1) !important;
            }

            #shopSuccessModal .modal-content.shop-success-modal {
                display: flex;
                flex-direction: column;
                position: relative;
                height: auto !important;
                min-height: 0 !important;
                max-height: min(640px, calc(100dvh - 128px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))) !important;
                overflow: hidden;
            }

            #shopSuccessModal .shop-success-scroll {
                flex: 0 1 auto;
                overflow-y: auto;
                overflow-x: hidden;
                gap: 18px;
                min-height: 0;
                max-height: calc(100dvh - 244px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
                padding-right: 4px;
                margin-right: -4px;
                padding-bottom: 0;
                overscroll-behavior: contain;
                overscroll-behavior-x: none;
                -webkit-overflow-scrolling: touch;
                touch-action: pan-y;
            }

            #shopSuccessModal .shop-success-content-shell {
                max-height: none !important;
                overflow: visible !important;
            }

            #shopSuccessModal .shop-success-content-shell--plain {
                background: transparent !important;
                border: none !important;
                box-shadow: none !important;
                padding: 0 !important;
            }

            #shopSuccessModal .shop-success-actions {
                position: static;
                width: auto;
                max-width: none;
                margin: 0;
                display: flex;
                gap: 8px;
                align-items: center;
                justify-content: flex-end;
            }

            #shopSuccessModal .shop-success-actions .shop-btn {
                min-width: 0;
                min-height: 36px;
                padding: 7px 12px;
                border-radius: 999px;
                box-shadow:
                    0 10px 18px rgba(0, 0, 0, 0.18),
                    inset 0 1px 0 rgba(255, 255, 255, 0.18);
            }

            #shopSuccessModal .shop-success-actions .shop-btn i {
                font-size: 12px;
            }

            #shopSuccessModal .shop-success-actions .shop-btn span {
                font-size: var(--shop-success-action-font-size);
            }

            #shopSuccessModal #copyContentBtn {
                box-shadow:
                    0 14px 28px rgba(0, 0, 0, 0.18),
                    0 4px 12px rgba(74, 222, 128, 0.28),
                    inset 0 1px 0 rgba(255, 255, 255, 0.22);
            }

            #shopSuccessModal #exportContentBtn {
                background: #ffffff !important;
                color: #111827 !important;
                border: 1px solid rgba(255, 255, 255, 0.95) !important;
                box-shadow:
                    0 14px 28px rgba(0, 0, 0, 0.16),
                    0 4px 10px rgba(255, 255, 255, 0.28),
                    inset 0 1px 0 rgba(255, 255, 255, 0.96);
            }

            #shopSuccessModal #exportContentBtn i,
            #shopSuccessModal #exportContentBtn span {
                color: inherit !important;
            }

            .shop-success-summary-bar {
                padding: 0 2px;
                gap: 10px;
            }

            .shop-success-summary-bar__label {
                font-size: 10px;
                letter-spacing: 0.16em;
            }

            .shop-success-summary-bar__count {
                font-size: 15px;
            }

            .shop-success-summary-bar__actions {
                margin-left: auto;
            }

            .shop-success-item {
                padding: 12px;
                border-radius: 18px;
            }

            .shop-success-item__header {
                align-items: stretch;
                gap: 10px;
            }

            .shop-success-item__heading {
                align-items: stretch;
                gap: 10px;
            }

            .shop-success-item__thumb,
            .shop-success-item__icon {
                width: 40px;
                height: 40px;
                border-radius: 12px;
            }

            .shop-success-item__title {
                font-size: 14px;
            }

            .shop-success-item__submeta {
                min-width: 0;
            }

            .shop-success-item__order-id,
            .shop-success-item__reveal-code,
            .shop-success-item__submeta-label,
            .shop-success-item__submeta-value {
                font-size: 10px;
            }

            .shop-success-item__surface {
                padding-right: 0;
            }

            .shop-success-item__actions {
                gap: 8px;
                margin-left: 10px;
            }

            .shop-success-item__toolbar {
                --shop-success-toolbar-height: 26px;
                gap: 6px;
                max-width: 220px;
            }

            .shop-success-item__action-tags {
                gap: 5px;
            }

            .shop-success-item__time {
                padding-top: 10px;
                transform: translateY(10px);
                font-size: 9px;
            }

            .shop-success-item__meta {
                gap: 3px;
            }

            .shop-success-item__tag {
                font-size: 10px;
                min-height: 24px;
                padding: 4px 7px;
            }

            #shopSuccessModal .shop-success-item__tag--notice,
            #shopSuccessModal .shop-success-item__tag--usage,
            #guestCashPurchaseModal .shop-success-item__tag--notice,
            #guestCashPurchaseModal .shop-success-item__tag--usage {
                min-height: var(--shop-success-toolbar-height, 26px);
                height: var(--shop-success-toolbar-height, 26px);
                padding: 0 9px;
                font-size: var(--shop-success-pill-font-size, 10px);
            }

            #shopSuccessModal .shop-success-item__tag-label,
            #guestCashPurchaseModal .shop-success-item__tag-label {
                font-size: var(--shop-success-pill-font-size, 10px);
            }

            .shop-success-warning {
                grid-template-columns: 1fr;
                gap: 8px;
                padding: 11px 12px;
            }

            .shop-success-warning__icon {
                width: 26px;
                height: 26px;
                border-radius: 9px;
            }

            .shop-success-warning__title {
                font-size: 12px;
            }

            .shop-success-warning__summary {
                font-size: 11px;
            }

            .shop-purchase-actions {
                flex-direction: column;
            }

            #shopPurchaseModal [data-purchase-step="configure"] .shop-purchase-actions--single {
                flex-direction: row;
                flex-wrap: nowrap;
                align-items: stretch;
                gap: 10px;
            }

            #purchaseAddToCartBtn,
            #purchaseBackBtn,
            #nextPurchaseStepBtn,
            #confirmPurchaseBtn {
                min-height: 38px;
                padding: 8px 12px;
            }

            #purchaseAddToCartBtn i,
            #purchaseBackBtn i,
            #nextPurchaseStepBtn i,
            #confirmPurchaseBtn i {
                font-size: 12px;
            }

            #purchaseAddToCartBtn span,
            #purchaseBackBtn span,
            #nextPurchaseStepBtn span,
            #confirmPurchaseBtn span {
                font-size: 12px;
            }

            #purchaseAddToCartBtn,
            #purchaseBackBtn {
                flex-basis: auto;
            }

            #shopPurchaseModal [data-purchase-step="configure"] #purchaseAddToCartBtn,
            #shopPurchaseModal [data-purchase-step="configure"] #nextPurchaseStepBtn {
                flex: 1 1 0;
                min-width: 0;
                justify-content: center;
                border-radius: 18px;
            }

            #shopPurchaseModal [data-purchase-step="configure"] #purchaseAddToCartBtn span,
            #shopPurchaseModal [data-purchase-step="configure"] #nextPurchaseStepBtn span {
                white-space: nowrap;
            }

            .shop-purchase-confirm-card {
                padding: 16px;
            }

            .shop-purchase-discount {
                margin: 14px 8px 14px;
            }

            .shop-purchase-discount__field {
                display: block;
            }

            .shop-purchase-discount__input-wrap,
            .shop-purchase-discount__action {
                border-radius: 12px;
            }

            .shop-purchase-discount__input-wrap {
                min-height: 50px;
                padding: 4px;
                gap: 4px;
            }

            .shop-purchase-discount__input {
                font-size: 14px;
                height: 40px;
                padding: 0 12px;
            }

            .shop-purchase-discount__action {
                min-width: 82px;
                min-height: 40px;
                padding: 0 12px;
                font-size: 12px;
            }
        }

        @media (max-width: 600px) {
            #shopPurchaseModal .modal-content {
                width: min(calc(100% - 24px), 700px) !important;
            }
        }

        #shopSuccessModal.has-usage-instructions {
            --shop-success-action-bottom: auto;
            --shop-success-action-width: auto;
            --shop-success-action-clearance: 0px;
            --shop-success-usage-gap: clamp(10px, calc(-6px + 2vw), 24px);
            --shop-success-usage-max-height: clamp(300px, calc(360px - 4vw), 336px);
        }

        #shopSuccessModal.has-usage-instructions .modal-content.shop-success-modal {
            display: flex;
            flex-direction: column;
            position: relative;
            height: min(840px, calc(100dvh - 40px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))) !important;
            max-height: calc(100dvh - 40px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) !important;
            overflow: hidden;
        }

        #shopSuccessModal.has-usage-instructions .shop-success-scroll {
            flex: 1;
            overflow-y: auto;
            overflow-x: hidden;
            min-height: 0;
            padding-right: 6px;
            margin-right: -6px;
            padding-bottom: 0;
            overscroll-behavior: contain;
            overscroll-behavior-x: none;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-y;
        }

        #shopSuccessModal.has-usage-instructions .shop-success-content-shell {
            max-height: none !important;
            overflow: visible !important;
        }

        #shopSuccessModal.has-usage-instructions #usageInstructionsBox {
            margin-bottom: var(--shop-success-usage-gap) !important;
        }

        .shop-order-history-item {
            padding: 12px 16px;
            margin-bottom: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 14px;
        }

        .shop-order-history-main {
            flex: 1;
            min-width: 0;
        }

        .shop-order-history-header {
            display: flex;
            align-items: center;
            margin-bottom: 4px;
            gap: 8px;
        }

        .shop-order-history-icon {
            flex-shrink: 0;
        }

        .shop-order-history-icon--image {
            width: 24px;
            height: 24px;
            border-radius: 4px;
        }

        .shop-order-history-icon--font {
            color: #6b9ece;
        }

        .shop-order-history-name {
            font-weight: 600;
            font-size: 14px;
            color: #fff;
        }

        .shop-order-history-meta {
            font-size: 12px;
            color: rgba(255, 255, 255, 0.4);
        }

        .shop-order-history-points {
            color: #fbbf24;
        }

        .shop-order-history-view {
            padding: 6px 12px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.1);
            border: none;
            color: #fff;
            cursor: pointer;
            box-shadow: none;
            transform: none;
            filter: none;
            transition: color 0.2s ease;
        }

        @media (hover: hover) {
            html body.shop-page .shop-order-history-view:hover {
                color: #9ca3af;
            }

            html[data-theme="dark"] body.shop-page .shop-order-history-view:hover {
                color: #6b7280;
            }
        }

        #shopSuccessModal.has-usage-instructions .shop-success-actions {
            position: static;
            left: auto;
            right: auto;
            bottom: auto;
            width: auto;
            max-width: none;
            margin-left: 0;
            margin-right: 0;
            z-index: auto;
            display: flex;
            gap: 8px;
            margin-top: 0;
            align-items: center;
            justify-content: flex-end;
        }

        #shopSuccessModal.has-usage-instructions .shop-success-actions .shop-btn {
            min-width: 0;
            min-height: 36px;
            padding: 7px 12px;
            border-radius: 999px;
            box-shadow:
                0 10px 18px rgba(0, 0, 0, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.18);
        }

        #shopSuccessModal.has-usage-instructions .shop-success-actions .shop-btn i {
            font-size: 12px;
        }

        #shopSuccessModal.has-usage-instructions .shop-success-actions .shop-btn span {
            font-size: var(--shop-success-action-font-size);
        }

        #shopSuccessModal.has-usage-instructions #copyContentBtn {
            box-shadow:
                0 14px 28px rgba(0, 0, 0, 0.18),
                0 4px 12px rgba(74, 222, 128, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.22);
        }

        #shopSuccessModal.has-usage-instructions #exportContentBtn {
            background: #ffffff !important;
            color: #111827 !important;
            border: 1px solid rgba(255, 255, 255, 0.95) !important;
            box-shadow:
                0 14px 28px rgba(0, 0, 0, 0.16),
                0 4px 10px rgba(255, 255, 255, 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.96);
        }

        #shopSuccessModal.has-usage-instructions #exportContentBtn i,
        #shopSuccessModal.has-usage-instructions #exportContentBtn span {
            color: inherit !important;
        }

        #shopSuccessModal.has-usage-instructions .shop-success-usage-card {
            max-height: min(42vh, var(--shop-success-usage-max-height));
            overflow-y: auto;
            overflow-x: hidden;
            overscroll-behavior: contain;
            overscroll-behavior-x: none;
            -webkit-overflow-scrolling: touch;
            touch-action: pan-y;
            scrollbar-width: thin;
            scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
            contain: layout paint;
        }

        #shopSuccessModal.has-usage-instructions .shop-success-usage-card::-webkit-scrollbar {
            width: 6px;
        }

        #shopSuccessModal.has-usage-instructions .shop-success-usage-card::-webkit-scrollbar-track {
            background: transparent;
        }

        #shopSuccessModal.has-usage-instructions .shop-success-usage-card::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.16);
            border-radius: 999px;
        }

        #shopSuccessModal.has-usage-instructions .shop-success-usage-card::-webkit-scrollbar-thumb:hover {
            background: rgba(255, 255, 255, 0.24);
        }

        @media (max-width: 768px) {
            #shopSuccessModal.has-usage-instructions {
                --shop-success-action-bottom: auto;
                --shop-success-action-clearance: 0px;
                --shop-success-usage-gap: 12px;
                --shop-success-usage-max-height: 320px;
            }

            #shopSuccessModal.has-usage-instructions .modal-content.shop-success-modal {
                height: auto !important;
                min-height: 0 !important;
                max-height: min(640px, calc(100dvh - 128px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))) !important;
            }

            #shopSuccessModal.has-usage-instructions .shop-success-scroll {
                flex: 0 1 auto;
                max-height: calc(100dvh - 244px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
            }
        }


/* shop.html inline style block 2 (from line 1235) */
#starryCanvas {
            position: fixed;
            top: -10vh;
            left: 0;
            width: 100vw;
            height: 120vh;
            z-index: -1;
            pointer-events: none;
            opacity: 1;
        }

        /* Breathing (Water Flow) Animation */
        @keyframes breathe {

            0%,
            100% {
                transform: translateY(0px);
            }

            50% {
                transform: translateY(-3px);
            }
        }

        .shop-card-breathe-frame.shop-card-breathe-frame--breathing {
            animation: breathe 4s ease-in-out infinite;
            animation-delay: var(--breathe-delay, 0s);
            will-change: transform;
        }

        .shop-card:hover .shop-card-breathe-frame.shop-card-breathe-frame--breathing {
            animation-play-state: paused;
        }

        .shop-card.flash-sale-card .shop-card-breathe-shell {
            border-color: rgba(239, 68, 68, 0.3);
        }

        @keyframes urgentPulse {

            0%,
            100% {
                color: #f87171;
                text-shadow: 0 0 8px rgba(248, 113, 113, 0.4);
                transform: scale(1);
            }

            50% {
                color: #ff3b30;
                text-shadow: 0 0 16px rgba(255, 59, 48, 0.8), 0 0 4px #ff3b30;
                transform: scale(1.05);
            }
        }

        .flash-badge-glass {
            position: absolute;
            top: 12px;
            left: 12px;
            z-index: 10;
            font-size: 12px;
            font-weight: 600;
            padding: 4px 10px;
            border-radius: 20px;
            /* Capsule shape matching stock */
            background: rgba(40, 40, 40, 0.6);
            /* Match stock background */
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(248, 113, 113, 0.3);
            /* Reddish border */
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            gap: 6px;
            color: #f87171;
            font-family: 'Outfit', 'Monaco', monospace;
            /* Tech vibe for numbers */
            overflow: hidden;
        }

        /* Cyber-like scanline effect inside badge */
        .flash-badge-glass::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 50%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transform: skewX(-20deg);
            animation: scanline 2.5s infinite;
        }

        @keyframes scanline {
            0% {
                left: -100%;
            }

            20% {
                left: 200%;
            }

            100% {
                left: 200%;
            }
        }

        .flash-badge-glass .flash-sale-badge__label {
            color: #ff3b30;
            font-family: var(--font-sans);
            font-weight: 800;
            letter-spacing: 0;
            animation: urgentPulse 0.8s ease-in-out infinite;
            filter: drop-shadow(0 0 4px rgba(255, 59, 48, 0.8));
        }

        .flash-badge-glass .countdown-timer {
            font-variant-numeric: tabular-nums;
            /* Monospaced numbers to stop jittering */
        }

        .tier-badge-glass {
            position: absolute;
            top: 12px;
            left: 12px;
            z-index: 10;
            font-size: 12px;
            font-weight: 800;
            padding: 4px 10px;
            border-radius: 20px;
            background: rgba(40, 40, 40, 0.6);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border: 1px solid rgba(125, 211, 252, 0.34);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            display: inline-flex;
            align-items: center;
            color: #7dd3fc;
            font-family: var(--font-sans);
            letter-spacing: 0;
        }

        @media (prefers-reduced-motion: reduce) {
            .shop-card-breathe-frame.shop-card-breathe-frame--breathing,
            .shop-card-filter-enter,
            .shop-card-filter-enter .shop-card-breathe-frame,
            .shop-card-filter-exit,
            .shop-card-filter-exit .shop-card-breathe-frame,
            .shop-card-filter-moving,
            .shop-card-transition-clone {
                animation: none !important;
                transition: none !important;
                opacity: 1 !important;
                transform: none !important;
                translate: 0 0 !important;
            }

            .shop-card-filter-hidden {
                opacity: 1 !important;
            }
        }

        /* Skeleton Loading Styles */
        @keyframes shopSkeletonShimmer {
            0% {
                background-position: -200% 0;
            }

            100% {
                background-position: 200% 0;
            }
        }

        @keyframes shopSkeletonSweep {
            0% {
                transform: translate3d(-160%, 0, 0) skewX(-18deg);
                opacity: 0;
            }

            14% {
                opacity: 0.14;
            }

            46% {
                opacity: 0.74;
            }

            72% {
                opacity: 0.2;
            }

            100% {
                transform: translate3d(160%, 0, 0) skewX(-18deg);
                opacity: 0;
            }
        }

        .skeleton {
            background: linear-gradient(90deg,
                    rgba(255, 255, 255, 0.03) 25%,
                    rgba(255, 255, 255, 0.08) 50%,
                    rgba(255, 255, 255, 0.03) 75%);
            background-size: 200% 100%;
            animation: shopSkeletonShimmer 1.5s infinite;
            border-radius: 8px;
        }

        body.shop-page .skeleton {
            position: relative;
            overflow: hidden;
            background:
                linear-gradient(180deg,
                    rgba(255, 255, 255, 0.05) 0%,
                    rgba(255, 255, 255, 0.025) 100%),
                linear-gradient(180deg,
                    rgba(15, 23, 42, 0.84) 0%,
                    rgba(15, 23, 42, 0.68) 100%);
            background-size: 100% 100%, 100% 100%;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
            border-radius: 10px;
        }

        body.shop-page .skeleton-card::after {
            content: '';
            position: absolute;
            inset: -8% -42%;
            pointer-events: none;
            background: linear-gradient(104deg,
                    transparent 30%,
                    rgba(255, 255, 255, 0.014) 40%,
                    rgba(255, 255, 255, 0.075) 46%,
                    rgba(255, 255, 255, 0.2) 50%,
                    rgba(255, 255, 255, 0.075) 54%,
                    rgba(255, 255, 255, 0.014) 60%,
                    transparent 70%);
            transform: translate3d(-160%, 0, 0) skewX(-18deg);
            opacity: 0;
            will-change: transform, opacity;
            animation: shopSkeletonSweep 1.72s cubic-bezier(0.38, 0, 0.22, 1) infinite;
            z-index: 2;
        }

        .skeleton-filter {
            width: 60px;
            height: 36px;
            border-radius: 20px;
        }

        body.shop-page .skeleton-filter {
            width: 112px;
            height: auto;
            padding: 8px 18px;
            min-height: 36px;
            border-radius: 999px;
            box-sizing: border-box;
            display: inline-flex;
            align-items: center;
        }

        .skeleton-card {
            border-radius: 16px;
            overflow: hidden;
            background: rgba(30, 41, 59, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        body.shop-page .skeleton-card {
            position: relative;
            display: flex;
            flex-direction: column;
            min-height: 332px;
            background: linear-gradient(180deg,
                    rgba(19, 26, 40, 0.98) 0%,
                    rgba(22, 31, 47, 0.94) 100%);
            border: 1px solid rgba(148, 163, 184, 0.14);
            box-shadow:
                0 16px 32px rgba(2, 6, 23, 0.24),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
        }

        .skeleton-image-shell {
            position: relative;
            aspect-ratio: 3 / 2;
            height: auto;
            overflow: hidden;
            border-bottom: 1px solid rgba(148, 163, 184, 0.12);
            background: var(--shop-skeleton-shell-bg);
        }

        body.shop-page .skeleton-card:nth-child(2n)::after {
            animation-delay: -0.24s;
        }

        body.shop-page .skeleton-card:nth-child(3n)::after {
            animation-delay: -0.52s;
        }

        body.shop-page .skeleton-card:nth-child(4n)::after {
            animation-delay: -0.8s;
        }

        @media (prefers-reduced-motion: reduce) {
            body.shop-page .skeleton-card::after {
                animation: none;
                opacity: 0.12;
                transform: none;
            }
        }

        .skeleton-content {
            padding: 24px;
        }

        body.shop-page .skeleton-content {
            display: flex;
            flex: 1;
            flex-direction: column;
            gap: 10px;
        }

        .skeleton-title {
            height: 20px;
            width: 68%;
            border-radius: 10px;
        }

        .skeleton-desc {
            height: 14px;
            width: 90%;
        }

        .skeleton-desc--short {
            width: 62%;
            margin-bottom: 10px;
        }

        .skeleton-footer {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            gap: 16px;
            margin-top: auto;
            padding-top: 18px;
        }

        .skeleton-price-value {
            width: 34px;
            height: 26px;
            border-radius: 10px;
        }

        .skeleton-btn {
            width: 92px;
            height: 36px;
            border-radius: 999px;
            flex: 0 0 auto;
        }


/* shop.html inline style block 3 (from line 1549) */
.category-filters {
                    display: flex;
                    gap: 10px;
                    margin: 0 auto 22px;
                    padding: 6px 0;
                    justify-content: center;
                    flex-wrap: wrap;
                    width: min(100%, 980px);
                    transition: gap 0.24s ease, margin-bottom 0.24s ease, padding 0.24s ease;
                    /* Auto wrap for mobile/narrow screens */
                }

                .shop-main .filter-tab {
                    padding: 8px 20px;
                    border-radius: 20px;
                    background: rgba(0, 0, 0, 0.05);
                    /* Light mode default */
                    border: 1px solid rgba(0, 0, 0, 0.1);
                    color: #64748b;
                    /* Slate-500 */
                    cursor: pointer;
                    font-size: 14px;
                    flex: 0 0 auto;
                    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, padding 0.24s ease, font-size 0.24s ease;
                    white-space: nowrap;
                    backdrop-filter: blur(10px);
                    -webkit-tap-highlight-color: transparent;
                    /* Prevent iOS tap highlight */
                }

                /* Only apply hover effects on devices that support hover (not touch) */
                @media (hover: hover) {
                    .shop-main .filter-tab:hover {
                        background: rgba(0, 0, 0, 0.1);
                        color: #1e293b;
                        transform: translateY(-2px);
                        box-shadow: 0 4px 12px rgba(107, 158, 206, 0.15), 0 0 20px rgba(107, 158, 206, 0.1);
                    }

                    [data-theme="dark"] .shop-main .filter-tab:hover {
                        background: rgba(255, 255, 255, 0.15);
                        color: #fff;
                        box-shadow: 0 4px 12px rgba(107, 158, 206, 0.25), 0 0 20px rgba(107, 158, 206, 0.15);
                    }
                }

                /* Dark Mode Overrides */
                [data-theme="dark"] .shop-main .filter-tab {
                    background: rgba(255, 255, 255, 0.05);
                    border: 1px solid rgba(255, 255, 255, 0.1);
                    color: rgba(255, 255, 255, 0.6);
                }

                .shop-main .filter-tab.active {
                    background: var(--shop-category-active-blue);
                    border-color: var(--shop-category-active-blue);
                    color: #fff;
                    box-shadow: 0 4px 15px rgba(var(--shop-category-active-blue-rgb), 0.3);
                }

                @media (max-width: 980px) {
                    .category-filters {
                        justify-content: center;
                        flex-wrap: wrap;
                        width: min(100%, 760px);
                        margin: 0 auto 18px;
                        padding: 4px 0 8px;
                        gap: 8px;
                    }
                }

                @media (max-width: 768px) {
                    .category-filters {
                        width: 100%;
                        margin: 0 auto 16px;
                        padding: 2px 0 6px;
                        gap: 8px;
                    }

                    .shop-main .filter-tab {
                        padding: 8px 16px;
                        font-size: 13px;
                    }

                    .shop-main .filter-tab.active {
                        box-shadow: 0 4px 12px rgba(107, 158, 206, 0.24);
                    }
                }

/* BEGIN 20260324_INLINE_STYLE_ATTRS_BATCH_1 shop.html */
/* Extracted inline style attributes from shop.html. */
.shop-inline-style-attr-1 { margin-bottom: 0; }
.shop-inline-style-attr-2 { width:50px; }
.shop-inline-style-attr-3 { width:70px; }
.shop-inline-style-attr-4 { width:55px; }
.shop-inline-style-attr-5 { text-align: center; margin-bottom: 20px; }
.shop-inline-style-attr-6 { font-size: 1.2rem; margin-bottom: 5px; }
.shop-inline-style-attr-7 { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.shop-inline-style-attr-8 { margin: 15px 10px; text-align: left; }
.shop-inline-style-attr-9 { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 5px; }
.shop-inline-style-attr-10 { display: flex; gap: 8px; }
.shop-inline-style-attr-11 { flex: 1; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.2); color: #fff; outline: none; transition: border-color 0.2s; }
.shop-inline-style-attr-12 { padding: 0 16px; border-radius: 8px; background: rgba(107, 158, 206, 0.2); color: #6b9ece; border: 1px solid rgba(107, 158, 206, 0.3); cursor: pointer; font-weight: 500; transition: all 0.2s; white-space: nowrap; }
.shop-inline-style-attr-13 { font-size: 12px; margin-top: 6px; }
.shop-inline-style-attr-14 { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 25px; padding: 0 10px; }
.shop-inline-style-attr-15 { text-align: left; }
.shop-inline-style-attr-17 { font-family: 'Outfit'; color: #fbbf24; }
.shop-inline-style-attr-17.is-flash-sale,
#modalUnitPrice.is-flash-sale { color: #ef4444 !important; }

.shop-purchase-unit-price-sub {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    margin-top: 4px;
}
.shop-purchase-unit-price-sub .shop-purchase-price-note {
    margin-top: 0 !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

#modalFlashSaleBanner[hidden],
#modalFlashSaleBanner.is-hidden,
.shop-purchase-flash-banner[hidden],
.shop-purchase-flash-countdown-inline[hidden] {
    display: none !important;
}

.shop-purchase-flash-countdown-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    line-height: 1.35;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #ef4444;
    box-sizing: border-box;
    white-space: nowrap;
    flex-shrink: 0;
}

.shop-purchase-flash-countdown-inline .shop-purchase-flash-countdown__label {
    font-weight: 500;
    color: #ef4444;
}

.shop-purchase-flash-countdown-inline .countdown-timer {
    font-family: 'Outfit', var(--font-sans);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #ef4444;
}

.shop-purchase-price-note { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 6px; font-family: var(--font-sans); font-size: 0.72rem; line-height: 1.35; color: rgba(255,255,255,0.48); }
.shop-purchase-price-note[hidden] { display: none !important; }
.shop-purchase-price-note__original span { color: rgba(255,255,255,0.54); text-decoration: line-through; text-decoration-color: #ef4444; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.shop-purchase-price-note__tier-row { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.shop-purchase-price-note__tier { color: rgba(56,189,248,0.95); font-weight: 800; }
.shop-purchase-price-note--tier .shop-purchase-price-note__original span { text-decoration-color: #0ea5e9; }
.shop-tier-rules-popover-wrap { position: relative; display: inline-flex; align-items: center; }
.shop-tier-rules-help { width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid rgba(56,189,248,0.42); background: rgba(14,165,233,0.12); color: #38bdf8; font-family: 'Outfit'; font-size: 0.75rem; font-weight: 800; line-height: 1; cursor: help; padding: 0; }
.shop-tier-rules-help:focus-visible { outline: 2px solid rgba(56,189,248,0.45); outline-offset: 2px; }
.shop-tier-rules-popover { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 50; min-width: 168px; max-width: min(260px, 68vw); padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(125,211,252,0.24); background: rgba(15,23,42,0.94); box-shadow: 0 16px 34px rgba(15,23,42,0.26); color: rgba(226,232,240,0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(4px); transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease; }
.shop-tier-rules-popover::after { content: ''; position: absolute; left: 8px; top: 100%; border-width: 6px 6px 0 6px; border-style: solid; border-color: rgba(15,23,42,0.94) transparent transparent transparent; }
.shop-tier-rules-popover-wrap:hover .shop-tier-rules-popover,
.shop-tier-rules-popover-wrap:focus-within .shop-tier-rules-popover,
.shop-tier-rules-popover-wrap.is-open .shop-tier-rules-popover { opacity: 1; visibility: visible; transform: translateY(0); }
.shop-tier-rules-popover__title { display: block; margin-bottom: 5px; color: #7dd3fc; font-weight: 800; white-space: nowrap; }
.shop-tier-rules-popover__rule { display: block; white-space: nowrap; color: rgba(226,232,240,0.88); }
.shop-inline-style-attr-18 { text-align: right; }
.shop-inline-style-attr-19 { font-family: 'Outfit'; font-size: 1.4rem; color: #4ade80; font-weight: 700; }
.shop-inline-style-attr-20 { font-size: 0.9rem; font-weight: 500; }
.shop-inline-style-attr-21 { margin: 0 10px 20px; }
.shop-inline-style-attr-22 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; color: rgba(255,255,255,0.68); font-size: 0.96rem; text-align: left; }
.shop-inline-style-attr-23 { color: #fbbf24; }
.shop-purchase-usage-icon { color: #22c55e; }
.shop-inline-style-attr-24 { white-space: pre-wrap; font-size: 13px; color: rgba(255,255,255,0.85); line-height: 1.75; }
.shop-inline-style-attr-25 { width: 100%; }
.shop-inline-style-attr-26 { z-index: 99999; }
.shop-inline-style-attr-29 { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.shop-inline-style-attr-30 { font-size: 8px; color: #60a5fa; }
.shop-inline-style-attr-31 { margin-bottom: 20px; padding: 15px; word-break: break-all; user-select: text; text-align: left; max-height: 280px; overflow-y: auto; }
.shop-inline-style-attr-32 { font-family: monospace; font-size: 14px; color: #fff; white-space: pre-wrap; overflow-x: auto; }
.shop-inline-style-attr-33 { margin-bottom: 20px; }
.shop-inline-style-attr-34 { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.shop-inline-style-attr-35 { color: #60a5fa; }
.shop-inline-style-attr-36 { font-size: 13px; color: rgba(255,255,255,0.85); white-space: pre-wrap; word-break: break-word; }
.shop-inline-style-attr-37 { margin-bottom: 20px; padding: 12px; background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.3); text-align: left; }
.shop-inline-style-attr-13[hidden],
.shop-inline-style-attr-21[hidden],
.shop-inline-style-attr-33[hidden],
.shop-inline-style-attr-37[hidden] { display: none !important; }
.shop-inline-style-attr-38 { display: flex; gap: 10px; align-items: flex-start; }
.shop-inline-style-attr-39 { color: #fbbf24; margin-top: 3px; }
.shop-inline-style-attr-40 { color: #fbbf24; font-size: 13px; line-height: 1.4; }
.shop-inline-style-attr-41 { font-weight: 600; margin-bottom: 2px; }
.shop-inline-style-attr-42 { flex: 1; }
/* END 20260324_INLINE_STYLE_ATTRS_BATCH_1 shop.html */

.shop-purchase-notes-title {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
}

.shop-purchase-guidance-actions {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    margin-left: auto;
}

.shop-guidance-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(226, 232, 240, 0.78);
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.shop-guidance-copy-btn:hover,
.shop-guidance-copy-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(107, 158, 206, 0.42);
    background: rgba(107, 158, 206, 0.16);
    color: #dbeafe;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 18px rgba(3, 7, 18, 0.18);
    outline: none;
}

.shop-guidance-copy-btn:active {
    transform: translateY(0) scale(0.98);
}

.shop-guidance-copy-btn.is-copied {
    border-color: rgba(34, 197, 94, 0.46);
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
}

.shop-guidance-copy-btn[hidden] {
    display: none !important;
}

.shop-guidance-copy-btn:disabled {
    cursor: default;
    opacity: 0.42;
    transform: none;
    box-shadow: none;
}

.shop-purchase-notes-toggle {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    justify-content: center;
    width: 38px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.72);
    font: inherit;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.shop-purchase-notes-toggle:focus-visible {
    color: rgba(255, 255, 255, 0.9);
    outline: none;
}

.shop-purchase-notes-toggle:focus-visible .shop-purchase-notes-toggle__switch {
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 0 3px rgba(107, 158, 206, 0.14);
}

.shop-purchase-notes-toggle__switch {
    position: relative;
    width: 34px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.shop-purchase-notes-toggle__knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease, background 0.2s ease;
}

.shop-purchase-notes-toggle.is-active {
    color: #dbeafe;
}

.shop-purchase-notes-toggle.is-active .shop-purchase-notes-toggle__switch {
    background: #22c55e;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.shop-purchase-notes-toggle.is-active .shop-purchase-notes-toggle__knob {
    transform: translateX(14px);
    background: #ffffff;
}

#shopPurchaseModal #purchaseNotesCard[hidden],
#shopPurchaseModal #purchaseUsageCard[hidden] {
    display: none !important;
}

.shop-purchase-discount {
    margin: 18px 10px 16px;
    text-align: left;
}

.shop-purchase-discount__label {
    margin-bottom: 8px;
    padding-left: 2px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(226, 232, 240, 0.48);
}

.shop-purchase-discount__field {
    display: block;
}

.shop-purchase-discount__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 54px;
    padding: 4px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    background: rgba(13, 18, 26, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease,
        transform 0.18s ease;
}

.shop-purchase-discount__input-wrap::before {
    display: none;
}

.shop-purchase-discount__input-wrap:hover {
    border-color: rgba(148, 163, 184, 0.15);
    background: rgba(14, 20, 29, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shop-purchase-discount__input-wrap:focus-within {
    border-color: rgba(148, 163, 184, 0.1);
    background: rgba(13, 18, 26, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.shop-purchase-discount__input {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    z-index: 1;
    height: 44px;
    padding: 0 16px 0 14px;
    border: none;
    outline: none;
    border-radius: 14px;
    background: rgba(19, 26, 36, 0.9);
    color: #f8fafc;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.shop-purchase-discount__input::placeholder {
    color: rgba(148, 163, 184, 0.58);
    font-weight: 400;
}

#shopPurchaseModal #purchaseDiscountCode.shop-purchase-discount__input:focus,
#shopPurchaseModal #purchaseDiscountCode.shop-purchase-discount__input:focus-visible {
    border: 1px solid rgba(125, 181, 234, 0.34) !important;
    box-shadow: none !important;
    outline: none !important;
}

#shopPurchaseModal .shop-purchase-discount__input[data-guest-promo-locked="1"],
#shopPurchaseModal .shop-purchase-discount__action[data-guest-promo-locked="1"] {
    pointer-events: none;
}

#shopPurchaseModal .shop-purchase-discount__input-wrap:has([data-guest-promo-locked="1"]),
#shopPurchaseModal .shop-purchase-discount__input-wrap.is-guest-promo-locked {
    cursor: pointer;
}

.shop-purchase-discount__action {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    min-width: 92px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(52, 211, 153, 0.16);
    background: rgba(52, 211, 153, 0.12);
    color: rgba(220, 252, 231, 0.9);
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition:
        border-color 0.16s ease,
        background-color 0.16s ease,
        color 0.16s ease;
}

.shop-purchase-discount__action:hover:not(:disabled) {
    border-color: rgba(52, 211, 153, 0.24);
    background: rgba(52, 211, 153, 0.16);
    color: rgba(236, 253, 245, 0.96);
}

.shop-purchase-discount__action:active:not(:disabled) {
    background: rgba(52, 211, 153, 0.13);
}

.shop-purchase-discount__action:disabled {
    cursor: wait;
    opacity: 0.62;
}

.shop-purchase-discount.is-purchase-sold-out {
    border-color: rgba(248, 113, 113, 0.18);
    background: rgba(127, 29, 29, 0.08);
}

.shop-purchase-discount.is-purchase-sold-out .shop-purchase-discount__summary-meta {
    color: rgba(252, 165, 165, 0.82);
}

.shop-purchase-discount.is-purchase-sold-out .shop-purchase-discount__input-wrap,
.shop-purchase-discount.is-purchase-sold-out .shop-purchase-discount__input {
    background: rgba(15, 23, 42, 0.58);
}

.shop-purchase-discount.is-purchase-sold-out .shop-purchase-discount__input:disabled {
    color: rgba(203, 213, 225, 0.52);
    -webkit-text-fill-color: rgba(203, 213, 225, 0.52);
    cursor: not-allowed;
}

.shop-purchase-discount.is-purchase-sold-out .shop-purchase-discount__action:disabled {
    cursor: not-allowed;
    color: rgba(203, 213, 225, 0.56);
    border-color: rgba(148, 163, 184, 0.16);
    background: rgba(148, 163, 184, 0.1);
    opacity: 1;
}

.shop-discount-assets-empty--sold-out {
    box-sizing: border-box;
    padding: 9px 11px;
    border: 1px solid rgba(248, 113, 113, 0.16);
    background: rgba(127, 29, 29, 0.1);
    color: rgba(254, 202, 202, 0.86);
}

.shop-purchase-discount__action i {
    font-size: 13px;
}

.shop-purchase-discount__feedback {
    margin-top: 10px;
    font-size: 12px;
}

/* Light theme storefront polish. Navigation is intentionally untouched. */
html:not([data-theme="dark"]),
html:not([data-theme="dark"]) body.shop-page {
    background-color: var(--site-theme-chrome-color, var(--shop-light-page-bg, #eef2f7)) !important;
}

html:not([data-theme="dark"]) body.shop-page {
    --shop-light-surface: #ffffff;
    --shop-light-soft: #f8fafc;
    --shop-light-soft-strong: #f1f5f9;
    --shop-light-border: rgba(15, 23, 42, 0.08);
    --shop-light-border-strong: rgba(15, 23, 42, 0.12);
    --shop-light-text: #172033;
    --shop-light-muted: rgba(23, 32, 51, 0.62);
    --shop-light-faint: rgba(23, 32, 51, 0.42);
    --shop-light-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    background: var(--site-theme-chrome-color, var(--shop-light-page-bg, #eef2f7));
    color: var(--shop-light-text);
}

html:not([data-theme="dark"]) body.shop-page #starryCanvas {
    opacity: 0;
    visibility: hidden;
}

html:not([data-theme="dark"]) body.shop-page .shop-main {
    color: var(--shop-light-text);
}

html:not([data-theme="dark"]) body.shop-page .shop-title {
    background: linear-gradient(135deg, #172033 0%, #4f78aa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

html:not([data-theme="dark"]) body.shop-page .shop-subtitle {
    color: var(--shop-light-muted);
}

html:not([data-theme="dark"]) body.shop-page .shop-card .shop-card-breathe-shell,
html:not([data-theme="dark"]) body.shop-page .skeleton-card {
    background: var(--shop-light-surface);
    border-color: var(--shop-light-border);
    box-shadow: var(--shop-light-shadow);
}

html:not([data-theme="dark"]) body.shop-page .shop-card:hover .shop-card-breathe-shell {
    border-color: rgba(107, 158, 206, 0.3);
    box-shadow: 0 22px 52px rgba(32, 72, 112, 0.12);
}

html:not([data-theme="dark"]) body.shop-page .shop-card--in-cart .shop-card-breathe-shell {
    border-color: rgba(245, 158, 11, 0.24);
    box-shadow:
        0 18px 44px rgba(15, 23, 42, 0.08),
        0 0 0 3px rgba(245, 158, 11, 0.08);
}

@media (max-width: 768px) {
    body.shop-page .shop-card.user-product-card .shop-card-breathe-shell {
        transition:
            box-shadow 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94),
            border-color 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94),
            background 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94),
            filter 0.42s ease;
    }

    body.shop-page .shop-card.user-product-card.shop-card-filter-enter {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }

    body.shop-page .shop-card.user-product-card.shop-card-filter-enter.is-visible {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }

    body.shop-page .shop-card.user-product-card.shop-card-filter-moving {
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

}

html:not([data-theme="dark"]) body.shop-page .shop-card-original-price {
    color: rgba(23, 32, 51, 0.38);
}

html:not([data-theme="dark"]) body.shop-page .shop-add-cart-btn,
html:not([data-theme="dark"]) body.shop-page .shop-btn-secondary,
html:not([data-theme="dark"]) body.shop-page #purchaseAddToCartBtn,
html:not([data-theme="dark"]) body.shop-page #purchaseBackBtn {
    background: #ffffff;
    color: #31506f;
    border: 1px solid rgba(49, 80, 111, 0.14);
    box-shadow:
        0 10px 22px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html:not([data-theme="dark"]) body.shop-page .shop-add-cart-btn:hover,
html:not([data-theme="dark"]) body.shop-page .shop-btn-secondary:hover,
html:not([data-theme="dark"]) body.shop-page #purchaseAddToCartBtn:hover,
html:not([data-theme="dark"]) body.shop-page #purchaseBackBtn:hover {
    background: var(--shop-light-soft);
    color: #172033;
    border-color: rgba(49, 80, 111, 0.22);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseAddToCartBtn:hover,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseBackBtn:hover {
    box-shadow:
        0 4px 10px rgba(15, 23, 42, 0.06),
        inset 0 1px 3px rgba(15, 23, 42, 0.045),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseAddToCartBtn:active,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseBackBtn:active {
    box-shadow:
        0 3px 8px rgba(15, 23, 42, 0.05),
        inset 0 1px 3px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

html:not([data-theme="dark"]) body.shop-page #purchaseAddToCartBtn.shop-sold-out-restock-btn {
    background: rgba(var(--shop-category-active-blue-rgb), 0.11);
    color: var(--shop-category-active-blue);
    border-color: rgba(var(--shop-category-active-blue-rgb), 0.36);
    box-shadow:
        0 10px 22px rgba(var(--shop-category-active-blue-rgb), 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

html:not([data-theme="dark"]) body.shop-page #purchaseAddToCartBtn.shop-sold-out-restock-btn:hover {
    background: rgba(var(--shop-category-active-blue-rgb), 0.18);
    color: #5f8fc7;
    border-color: var(--shop-category-active-blue);
}

html:not([data-theme="dark"]) body.shop-page #nextPurchaseStepBtn.shop-purchase-sold-out-btn,
html:not([data-theme="dark"]) body.shop-page #nextPurchaseStepBtn.shop-purchase-sold-out-btn:hover,
html:not([data-theme="dark"]) body.shop-page #nextPurchaseStepBtn.shop-purchase-sold-out-btn:active,
html:not([data-theme="dark"]) body.shop-page #nextPurchaseStepBtn.shop-purchase-sold-out-btn:focus-visible,
html:not([data-theme="dark"]) body.shop-page #nextPurchaseStepBtn.shop-purchase-sold-out-btn:disabled {
    background: linear-gradient(135deg, var(--shop-sold-out-soft-red) 0%, var(--shop-sold-out-soft-red-deep) 100%);
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    border-color: rgba(var(--shop-sold-out-soft-red-rgb), 0.32);
    box-shadow:
        0 10px 20px rgba(var(--shop-sold-out-soft-red-deep-rgb), 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transform: none;
    filter: none;
    transition: none;
    cursor: not-allowed;
    opacity: 1;
}

html:not([data-theme="dark"]) body.shop-page #shopSuccessModal .shop-success-actions .shop-btn {
    box-shadow:
        0 5px 12px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

html:not([data-theme="dark"]) body.shop-page #shopSuccessModal .shop-success-actions .shop-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 7px 14px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.56);
}

html:not([data-theme="dark"]) body.shop-page #shopSuccessModal #copyContentBtn {
    box-shadow:
        0 6px 14px rgba(34, 197, 94, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

html:not([data-theme="dark"]) body.shop-page #shopSuccessModal #copyContentBtn:hover {
    box-shadow:
        0 8px 16px rgba(34, 197, 94, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    filter: brightness(1.04);
}

html:not([data-theme="dark"]) body.shop-page #shopSuccessModal #exportContentBtn {
    border-color: rgba(226, 232, 240, 0.95) !important;
    box-shadow:
        0 5px 12px rgba(15, 23, 42, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html:not([data-theme="dark"]) body.shop-page #shopSuccessModal #exportContentBtn:hover {
    background: #ffffff !important;
    box-shadow:
        0 7px 14px rgba(15, 23, 42, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

html:not([data-theme="dark"]) body.shop-page .shop-status-message,
html:not([data-theme="dark"]) body.shop-page .shop-status-message--muted {
    color: var(--shop-light-muted);
}

html:not([data-theme="dark"]) body.shop-page .shop-status-message--error {
    color: #dc2626;
}

html:not([data-theme="dark"]) body.shop-page .shop-success-toast[data-shop-toast-global="1"] {
    background: rgba(255, 255, 255, 0.94);
    color: var(--shop-light-text);
    border-color: rgba(16, 185, 129, 0.26);
    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

html:not([data-theme="dark"]) body.shop-page .shop-success-toast[data-shop-toast-global="1"][data-variant="error"] {
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.24);
}

html:not([data-theme="dark"]) body.shop-page .shop-success-toast[data-shop-toast-global="1"][data-variant="info"] {
    color: #31506f;
    border-color: rgba(107, 158, 206, 0.24);
}

html:not([data-theme="dark"]) body.shop-page .shop-success-toast[data-shop-toast-global="1"][data-variant="info"]::before {
    background: rgba(107, 158, 206, 0.14);
    color: #31506f;
}

html:not([data-theme="dark"]) body.shop-page .shop-success-toast[data-shop-toast-global="1"][data-variant="sold-out"] {
    color: #111827;
    border-color: rgba(239, 68, 68, 0.72);
    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

html:not([data-theme="dark"]) body.shop-page .shop-success-toast[data-shop-toast-global="1"][data-variant="sold-out"]::before {
    border: 0;
    box-shadow: none;
}

html:not([data-theme="dark"]) body.shop-page .shop-success-toast[data-shop-toast-global="1"][data-variant="manual-delivery"] {
    color: #111827;
    border-color: rgba(245, 158, 11, 0.72);
    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

html:not([data-theme="dark"]) body.shop-page .shop-success-toast[data-shop-toast-global="1"][data-variant="manual-delivery"]::before {
    border: 0;
    box-shadow: none;
}

html:not([data-theme="dark"]) body.shop-page .shop-success-toast:not([data-shop-toast-global="1"]) {
    background: rgba(255, 255, 255, 0.94);
    color: var(--shop-light-text);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

html:not([data-theme="dark"]) body.shop-page .shop-empty-title,
html:not([data-theme="dark"]) body.shop-page .content-card .item-name,
html:not([data-theme="dark"]) body.shop-page .shop-success-summary-bar__count,
html:not([data-theme="dark"]) body.shop-page .shop-success-item__title,
html:not([data-theme="dark"]) body.shop-page .shop-cart-item__title,
html:not([data-theme="dark"]) body.shop-page .shop-cart-checkout__item-title,
html:not([data-theme="dark"]) body.shop-page .shop-cart-empty h4,
html:not([data-theme="dark"]) body.shop-page .shop-purchase-confirm-card__title {
    color: var(--shop-light-text);
}

html:not([data-theme="dark"]) body.shop-page .shop-success-summary-bar__label,
html:not([data-theme="dark"]) body.shop-page .shop-success-item__submeta,
html:not([data-theme="dark"]) body.shop-page .shop-success-item__time,
html:not([data-theme="dark"]) body.shop-page .shop-success-item__footer-meta,
html:not([data-theme="dark"]) body.shop-page .shop-cart-item__subtitle,
html:not([data-theme="dark"]) body.shop-page .shop-cart-item__price span,
html:not([data-theme="dark"]) body.shop-page .shop-cart-checkout__item-meta,
html:not([data-theme="dark"]) body.shop-page .shop-cart-empty p,
html:not([data-theme="dark"]) body.shop-page .shop-cart-checkout__hint,
html:not([data-theme="dark"]) body.shop-page .shop-purchase-confirm-row,
html:not([data-theme="dark"]) body.shop-page .shop-inline-style-attr-7,
html:not([data-theme="dark"]) body.shop-page .shop-inline-style-attr-9,
html:not([data-theme="dark"]) body.shop-page .shop-inline-style-attr-16,
html:not([data-theme="dark"]) body.shop-page .shop-inline-style-attr-22,
html:not([data-theme="dark"]) body.shop-page .shop-inline-style-attr-24,
html:not([data-theme="dark"]) body.shop-page .shop-inline-style-attr-29,
html:not([data-theme="dark"]) body.shop-page .shop-inline-style-attr-34,
html:not([data-theme="dark"]) body.shop-page .shop-inline-style-attr-36,
html:not([data-theme="dark"]) body.shop-page .shop-purchase-discount__label {
    color: var(--shop-light-muted);
}

html:not([data-theme="dark"]) body.shop-page .shop-success-item__reveal-code {
    color: var(--shop-light-muted);
}

html:not([data-theme="dark"]) body.shop-page .shop-success-item__reveal-code:hover,
html:not([data-theme="dark"]) body.shop-page .shop-success-item__reveal-code:focus-visible {
    color: var(--shop-light-text);
}

html:not([data-theme="dark"]) body.shop-page .content-card,
html:not([data-theme="dark"]) body.shop-page .shop-success-item,
html:not([data-theme="dark"]) body.shop-page .shop-purchase-confirm-card,
html:not([data-theme="dark"]) body.shop-page .shop-cart-checkout__item,
html:not([data-theme="dark"]) body.shop-page .shop-cart-summary,
html:not([data-theme="dark"]) body.shop-page .shop-cart-checkout__summary {
    background: var(--shop-light-soft);
    border-color: var(--shop-light-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

html:not([data-theme="dark"]) body.shop-page .content-card .item-content-box,
html:not([data-theme="dark"]) body.shop-page .shop-success-item__notes-panel,
html:not([data-theme="dark"]) body.shop-page .shop-success-item__usage-panel,
html:not([data-theme="dark"]) body.shop-page #shopSuccessModal .shop-success-item__notes-panel,
html:not([data-theme="dark"]) body.shop-page #shopSuccessModal .shop-success-item__usage-panel {
    background: #ffffff;
    border-color: var(--shop-light-border);
    color: var(--shop-light-text);
}

html:not([data-theme="dark"]) body.shop-page .shop-guidance-copy-btn,
html:not([data-theme="dark"]) body.shop-page .shop-guidance-panel-copy {
    border-color: rgba(49, 80, 111, 0.12);
    background: rgba(237, 244, 251, 0.82);
    color: rgba(49, 64, 88, 0.72);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 6px 14px rgba(15, 23, 42, 0.06);
}

html:not([data-theme="dark"]) body.shop-page .shop-guidance-copy-btn:hover,
html:not([data-theme="dark"]) body.shop-page .shop-guidance-copy-btn:focus-visible,
html:not([data-theme="dark"]) body.shop-page .shop-guidance-panel-copy:hover,
html:not([data-theme="dark"]) body.shop-page .shop-guidance-panel-copy:focus-visible {
    border-color: rgba(49, 80, 111, 0.24);
    background: rgba(224, 236, 248, 0.95);
    color: #31506f;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        0 8px 18px rgba(15, 23, 42, 0.1);
}

html:not([data-theme="dark"]) body.shop-page .shop-guidance-copy-btn.is-copied {
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(220, 252, 231, 0.9);
    color: #047857;
}

html:not([data-theme="dark"]) body.shop-page #shopSuccessModal .shop-success-item__content-panel {
    max-height: min(46vh, 420px);
    background: #edf4fb;
    border-color: rgba(49, 80, 111, 0.14);
    color: rgba(23, 32, 51, 0.74);
    box-shadow: none;
}

html:not([data-theme="dark"]) body.shop-page #shopSuccessModal .shop-success-item__notes-panel:not([hidden]),
html:not([data-theme="dark"]) body.shop-page #shopSuccessModal .shop-success-item__usage-panel:not([hidden]) {
    max-height: min(34vh, 260px);
    min-height: 0;
    overflow: hidden;
}

html:not([data-theme="dark"]) body.shop-page #shopSuccessModal .shop-success-item__tag--notice,
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__tag--notice {
    background: transparent;
    border-color: rgba(245, 158, 11, 0.18);
    color: #92400e;
}

html:not([data-theme="dark"]) body.shop-page #shopSuccessModal .shop-success-item__tag--usage,
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__tag--usage {
    background: transparent;
    border-color: rgba(16, 185, 129, 0.16);
    color: #047857;
}

html:not([data-theme="dark"]) body.shop-page #shopSuccessModal .shop-success-item__tag--notice:hover,
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__tag--notice:hover {
    background: transparent;
    border-color: rgba(245, 158, 11, 0.26);
}

html:not([data-theme="dark"]) body.shop-page #shopSuccessModal .shop-success-item__tag--usage:hover,
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__tag--usage:hover {
    background: transparent;
    border-color: rgba(16, 185, 129, 0.24);
}

html:not([data-theme="dark"]) body.shop-page #shopSuccessModal .shop-success-item__tag--notice.is-active,
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__tag--notice.is-active {
    background: #fff7ed;
    border-color: rgba(245, 158, 11, 0.34);
}

html:not([data-theme="dark"]) body.shop-page #shopSuccessModal .shop-success-item__tag--usage.is-active,
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__tag--usage.is-active {
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.3);
}

html:not([data-theme="dark"]) body.shop-page #shopSuccessModal .shop-success-item__content-card,
html:not([data-theme="dark"]) body.shop-page #shopSuccessModal .shop-success-item__content-card[data-shop-copy-content]:hover {
    padding: 0 !important;
    background: transparent;
    border-color: transparent;
    color: rgba(23, 32, 51, 0.74);
    box-shadow: none;
    transform: none;
}

html:not([data-theme="dark"]) body.shop-page #shopSuccessModal .shop-success-item__content-card .item-text,
html:not([data-theme="dark"]) body.shop-page #shopSuccessModal .shop-success-item__content-card .item-text * {
    font-family: inherit;
    font-size: 13px;
    line-height: 1.75;
    color: rgba(23, 32, 51, 0.74);
    -webkit-text-fill-color: rgba(23, 32, 51, 0.74);
}

[data-theme="dark"] body.shop-page #shopSuccessModal .shop-success-item__content-panel {
    background: rgba(18, 26, 36, 0.58);
    border-color: rgba(148, 163, 184, 0.14);
    box-shadow: none;
}

[data-theme="dark"] body.shop-page #shopSuccessModal .shop-success-item__content-card,
[data-theme="dark"] body.shop-page #shopSuccessModal .shop-success-item__content-card[data-shop-copy-content]:hover {
    padding: 0 !important;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

[data-theme="dark"] body.shop-page #shopSuccessModal .shop-success-item__content-card .item-text,
[data-theme="dark"] body.shop-page #shopSuccessModal .shop-success-item__content-card .item-text * {
    font-family: inherit;
    font-size: 13px;
    line-height: 1.75;
    color: rgba(226, 232, 240, 0.88);
    -webkit-text-fill-color: rgba(226, 232, 240, 0.88);
}

html:not([data-theme="dark"]) body.shop-page .shop-expand-toggle {
    background: var(--shop-light-soft);
    color: var(--shop-light-muted);
    border: 1px solid var(--shop-light-border);
}

html:not([data-theme="dark"]) body.shop-page .shop-expand-toggle:hover {
    background: var(--shop-light-soft-strong);
    color: var(--shop-light-text);
}

html:not([data-theme="dark"]) body.shop-page .skeleton,
html:not([data-theme="dark"]) body.shop-page .skeleton-title,
html:not([data-theme="dark"]) body.shop-page .skeleton-desc,
html:not([data-theme="dark"]) body.shop-page .skeleton-price-value,
html:not([data-theme="dark"]) body.shop-page .skeleton-btn {
    background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 50%, #eef2f7 75%);
    background-size: 200% 100%;
}

html:not([data-theme="dark"]) body.shop-page .skeleton-image-shell {
    background: #f8fafc;
    border-bottom-color: var(--shop-light-border);
}

html:not([data-theme="dark"]) body.shop-page .skeleton-card::after {
    background: linear-gradient(104deg,
            transparent 30%,
            rgba(255, 255, 255, 0.15) 40%,
            rgba(255, 255, 255, 0.65) 50%,
            rgba(255, 255, 255, 0.15) 60%,
            transparent 70%);
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-anchor {
    background: rgba(255, 255, 255, 0.96);
    color: var(--shop-light-text);
    border-color: var(--shop-light-border);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-anchor::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(241, 245, 249, 0.18));
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-anchor:hover,
html:not([data-theme="dark"]) body.shop-page .shop-cart-anchor.is-feedback {
    background: #ffffff;
    border-color: var(--shop-light-border);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-anchor__icon {
    background: #fff7ed;
    border-color: rgba(245, 158, 11, 0.18);
    color: #d97706;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-anchor__copy span,
html:not([data-theme="dark"]) body.shop-page .shop-cart-anchor__hint {
    color: var(--shop-light-muted);
}

@media (max-width: 1180px) {
    body.shop-page {
        --shop-mobile-floating-glass-bg: rgba(0, 0, 0, 0.48);
        --shop-mobile-floating-glass-border: rgba(255, 255, 255, 0.055);
        --shop-mobile-floating-glass-filter: var(--glass-blur-heavy, blur(20px)) saturate(150%);
        --shop-mobile-floating-glass-shadow:
            0 2px 8px rgba(0, 0, 0, 0.12),
            inset 0 0.5px 0 rgba(255, 255, 255, 0.025);
    }

    html:not([data-theme="dark"]) body.shop-page {
        --shop-mobile-floating-glass-bg: rgba(255, 255, 255, 0.76);
        --shop-mobile-floating-glass-border: rgba(15, 23, 42, 0.065);
        --shop-mobile-floating-glass-shadow:
            0 2px 8px rgba(15, 23, 42, 0.045),
            inset 0 0.5px 0 rgba(255, 255, 255, 0.34);
    }

    body.shop-page .shop-cart-anchor,
    body.shop-page .shop-cart-anchor:hover,
    body.shop-page .shop-cart-anchor:focus-visible,
    body.shop-page .shop-cart-anchor.is-feedback,
    body.shop-page .chat-widget-fab,
    body.shop-page .chat-widget-fab:hover,
    body.shop-page .chat-widget-fab:active,
    body.shop-page .chat-widget-fab:focus,
    body.shop-page .chat-widget-fab:focus-visible {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        border: 1px solid var(--shop-mobile-floating-glass-border) !important;
        border-radius: 18px !important;
        background: var(--shop-mobile-floating-glass-bg) !important;
        background-color: var(--shop-mobile-floating-glass-bg) !important;
        backdrop-filter: var(--shop-mobile-floating-glass-filter) !important;
        -webkit-backdrop-filter: var(--shop-mobile-floating-glass-filter) !important;
        box-shadow: var(--shop-mobile-floating-glass-shadow) !important;
    }

    body.shop-page .chat-widget-fab {
        top: auto !important;
        right: 16px !important;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 40px) !important;
        transform: none !important;
        display: block !important;
        box-sizing: border-box;
        overflow: visible;
        isolation: isolate;
    }

    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview),
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview):hover,
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview):active,
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview):focus,
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview):focus-visible {
        border-color: transparent !important;
        background: transparent !important;
        background-color: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        isolation: auto;
    }

    body.shop-page .shop-cart-anchor {
        left: auto;
        right: 16px;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 108px);
        padding: 0;
        justify-content: center;
        gap: 0;
        transform: none;
    }

    body.shop-page .shop-cart-anchor__pulse,
    body.shop-page .shop-cart-anchor__copy,
    body.shop-page .shop-cart-anchor__hint {
        display: none !important;
    }

    body.shop-page .shop-cart-anchor__icon {
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: inherit;
    }

    body.shop-page .shop-cart-anchor__icon i {
        font-size: 24px;
        line-height: 1;
    }

    body.shop-page .chat-widget-fab.chat-widget-fab--peek .chat-widget-fab__robot,
    body.shop-page .chat-widget-fab.chat-widget-fab--peek.chat-widget-fab--ambient-retracted .chat-widget-fab__robot {
        top: 5px !important;
        left: 0 !important;
        right: auto !important;
        width: 56px !important;
        height: 46px !important;
        transform: none !important;
        z-index: 1;
    }

    body.shop-page .chat-widget-fab.chat-widget-fab--peek:active .chat-widget-fab__robot {
        transform: scale(0.96) !important;
    }

    body.shop-page .chat-widget-fab.chat-widget-fab--peek .chat-widget-fab__glow {
        inset: 8px 8px 5px;
        opacity: 0.14;
    }

    body.shop-page .chat-widget-fab.chat-widget-fab--peek .chat-widget-fab__shadow {
        right: 12px;
        top: 42px;
        opacity: 0.1;
    }

    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview).chat-widget-fab--peek .chat-widget-fab__robot,
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview).chat-widget-fab--peek:active .chat-widget-fab__robot,
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview).chat-widget-fab--peek:focus .chat-widget-fab__robot,
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview).chat-widget-fab--peek:focus-visible .chat-widget-fab__robot,
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview).chat-widget-fab--peek.chat-widget-fab--ambient-retracted .chat-widget-fab__robot,
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview).chat-widget-fab--peek.chat-widget-fab--ambient-retracted:active .chat-widget-fab__robot,
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview).chat-widget-fab--peek.chat-widget-fab--ambient-retracted:focus .chat-widget-fab__robot,
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview).chat-widget-fab--peek.chat-widget-fab--ambient-retracted:focus-visible .chat-widget-fab__robot {
        top: 0 !important;
        height: 56px !important;
        border: 1px solid var(--shop-mobile-floating-glass-border) !important;
        border-radius: 18px !important;
        background: var(--shop-mobile-floating-glass-bg) !important;
        background-color: var(--shop-mobile-floating-glass-bg) !important;
        backdrop-filter: var(--shop-mobile-floating-glass-filter) !important;
        -webkit-backdrop-filter: var(--shop-mobile-floating-glass-filter) !important;
        box-shadow: var(--shop-mobile-floating-glass-shadow) !important;
        box-sizing: border-box;
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
    }

    body.shop-page .shop-cart-anchor::before,
    body.shop-page .shop-cart-anchor:hover::before {
        background: transparent !important;
    }

    body.shop-page .shop-cart-anchor__icon,
    body.shop-page .shop-cart-anchor:hover .shop-cart-anchor__icon,
    body.shop-page .shop-cart-anchor:focus-visible .shop-cart-anchor__icon {
        position: relative;
        background: transparent !important;
        border-color: transparent !important;
        box-shadow: none !important;
        color: #d97706;
    }

    .shop-cart-anchor__badge {
        position: absolute;
        top: 7px;
        right: 7px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        display: inline-grid;
        place-items: center;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.58);
        background: rgba(217, 119, 6, 0.94);
        color: #fffaf2;
        font-size: 10px;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0;
        box-shadow: none;
        transform: translate(20%, -20%);
    }

    .shop-cart-anchor__badge[hidden] {
        display: none !important;
    }

    html[data-theme="dark"] body.shop-page .shop-cart-anchor__icon,
    html[data-theme="dark"] body.shop-page .shop-cart-anchor:hover .shop-cart-anchor__icon,
    html[data-theme="dark"] body.shop-page .shop-cart-anchor:focus-visible .shop-cart-anchor__icon {
        color: #ffd39a;
    }

    html[data-theme="dark"] body.shop-page .shop-cart-anchor__badge {
        border-color: rgba(255, 255, 255, 0.22);
        background: rgba(255, 211, 154, 0.92);
        color: #2a1602;
    }
}

html:not([data-theme="dark"]) body.shop-page[data-shop-cart-open="true"] .shop-cart-backdrop {
    background: rgba(248, 250, 252, 0.62);
    backdrop-filter: blur(12px) saturate(1.04);
    -webkit-backdrop-filter: blur(12px) saturate(1.04);
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-drawer {
    background: rgba(255, 255, 255, 0.96);
    color: var(--shop-light-text);
    border-color: var(--shop-light-border);
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.18);
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-drawer__footer {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 20%, #ffffff 100%);
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-drawer__title {
    border-color: rgba(245, 158, 11, 0.24);
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow:
        0 16px 34px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-drawer__title::before {
    background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 58%, #d97706 100%);
    filter:
        drop-shadow(0 5px 9px rgba(245, 158, 11, 0.22))
        drop-shadow(0 0 6px rgba(251, 191, 36, 0.18));
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-drawer__title::after {
    border-color: transparent;
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-drawer__label,
html:not([data-theme="dark"]) body.shop-page .shop-cart-summary__row strong,
html:not([data-theme="dark"]) body.shop-page .shop-cart-checkout__summary-row strong {
    color: var(--shop-light-text);
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-drawer__eyebrow,
html:not([data-theme="dark"]) body.shop-page .shop-cart-checkout__eyebrow,
html:not([data-theme="dark"]) body.shop-page .shop-cart-summary__row,
html:not([data-theme="dark"]) body.shop-page .shop-cart-checkout__summary-row {
    color: var(--shop-light-muted);
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-item {
    background: #ffffff;
    border-color: var(--shop-light-border);
    box-shadow:
        0 1px 3px rgba(15, 23, 42, 0.035),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-item__thumb,
html:not([data-theme="dark"]) body.shop-page .shop-cart-item__icon,
html:not([data-theme="dark"]) body.shop-page .shop-cart-empty__icon {
    background: #fff7ed;
    border: 1px solid rgba(245, 158, 11, 0.16);
    color: #d97706;
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-item__title-btn:hover,
html:not([data-theme="dark"]) body.shop-page .shop-cart-item__title-btn:focus-visible {
    color: #31506f;
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-item__remove {
    background: transparent;
    border-color: transparent;
    color: #64748b;
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-item__remove:hover {
    background: rgba(15, 23, 42, 0.06);
    border-color: transparent;
    color: #0f172a;
    box-shadow: none;
    transform: none;
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-item__remove:focus-visible {
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-item__pill,
html:not([data-theme="dark"]) body.shop-page .shop-cart-checkout__item-pill,
html:not([data-theme="dark"]) body.shop-page .shop-cart-item__quantity,
html:not([data-theme="dark"]) body.shop-page .shop-cart-item__qty-btn {
    background: var(--shop-light-soft);
    border-color: var(--shop-light-border);
    color: var(--shop-light-muted);
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-item__pill--notice,
html:not([data-theme="dark"]) body.shop-page .shop-cart-checkout__item-pill--notice {
    background: transparent;
    border-color: rgba(245, 158, 11, 0.18);
    color: #92400e;
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-item__pill--usage,
html:not([data-theme="dark"]) body.shop-page .shop-cart-checkout__item-pill--usage {
    background: transparent;
    border-color: rgba(16, 185, 129, 0.16);
    color: #047857;
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-item__pill--toggle.is-active.shop-cart-item__pill--notice {
    background: #fff7ed;
    border-color: rgba(245, 158, 11, 0.34);
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.1);
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-item__pill--toggle.is-active.shop-cart-item__pill--usage {
    background: #ecfdf5;
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.09);
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-item__panel {
    font-family: var(--font-sans, 'Outfit'), 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.78;
    letter-spacing: 0.01em;
    color: #334155;
    -webkit-text-fill-color: currentColor;
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-item__panel--notice,
html:not([data-theme="dark"]) body.shop-page .shop-cart-item__panel--usage {
    background: #ffffff;
    border-color: var(--shop-light-border);
    color: #334155;
    -webkit-text-fill-color: currentColor;
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-item__panel--notice :not(a),
html:not([data-theme="dark"]) body.shop-page .shop-cart-item__panel--usage :not(a) {
    -webkit-text-fill-color: currentColor;
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-item__panel--notice a,
html:not([data-theme="dark"]) body.shop-page .shop-cart-item__panel--notice a *,
html:not([data-theme="dark"]) body.shop-page .shop-cart-item__panel--usage a,
html:not([data-theme="dark"]) body.shop-page .shop-cart-item__panel--usage a * {
    color: inherit;
    -webkit-text-fill-color: currentColor;
    font-weight: 650;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

html[data-theme="dark"] body.shop-page .shop-cart-item__panel--notice :not(a):not([data-shop-rich-color]),
html[data-theme="dark"] body.shop-page .shop-cart-item__panel--usage :not(a):not([data-shop-rich-color]) {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
}

html[data-theme="dark"] body.shop-page .shop-cart-item__panel--notice a:not([data-shop-rich-color]),
html[data-theme="dark"] body.shop-page .shop-cart-item__panel--usage a:not([data-shop-rich-color]) {
    color: #93c5fd !important;
    -webkit-text-fill-color: #93c5fd !important;
    font-weight: 650;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-item__qty-btn {
    color: var(--shop-light-text);
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-btn--ghost {
    background: #ffffff;
    color: #31506f;
    border-color: rgba(49, 80, 111, 0.14);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

html:not([data-theme="dark"]) body.shop-page .shop-cart-btn--ghost:hover:not([disabled]) {
    background: var(--shop-light-soft);
    border-color: rgba(49, 80, 111, 0.22);
    color: var(--shop-light-text);
}

html:not([data-theme="dark"]) body.shop-page #shopCartContinueBtn,
html:not([data-theme="dark"]) body.shop-page #shopCartCheckoutBackBtn {
    background: #ffffff;
    color: #31506f;
    -webkit-text-fill-color: #31506f;
    border: 1px solid rgba(49, 80, 111, 0.14);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    filter: none;
    transform: none;
}

html:not([data-theme="dark"]) body.shop-page #shopCartContinueBtn:hover:not([disabled]),
html:not([data-theme="dark"]) body.shop-page #shopCartCheckoutBackBtn:hover:not([disabled]) {
    background: var(--shop-light-soft);
    color: #172033;
    -webkit-text-fill-color: #172033;
    border-color: rgba(49, 80, 111, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
    filter: brightness(0.995) saturate(1.01);
    transform: none;
}

html:not([data-theme="dark"]) body.shop-page #shopCartContinueBtn:active:not([disabled]),
html:not([data-theme="dark"]) body.shop-page #shopCartCheckoutBackBtn:active:not([disabled]) {
    background: var(--shop-light-soft);
    color: #172033;
    -webkit-text-fill-color: #172033;
    border-color: rgba(49, 80, 111, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    filter: brightness(0.98);
    transform: none;
}

html:not([data-theme="dark"]) body.shop-page #shopCartCheckoutBtn,
html:not([data-theme="dark"]) body.shop-page #shopCartCheckoutConfirmBtn {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #052e16;
    -webkit-text-fill-color: #052e16;
    border: 1px solid rgba(5, 46, 22, 0.10);
    border-radius: 999px;
    box-shadow:
        0 1px 2px rgba(34, 197, 94, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    filter: none;
    transform: none;
}

html:not([data-theme="dark"]) body.shop-page #shopCartCheckoutBtn:hover:not([disabled]),
html:not([data-theme="dark"]) body.shop-page #shopCartCheckoutConfirmBtn:hover:not([disabled]) {
    background: linear-gradient(135deg, #43d675 0%, #20b957 100%);
    color: #031b0d;
    -webkit-text-fill-color: #031b0d;
    border-color: rgba(49, 80, 111, 0.22);
    box-shadow: none !important;
    filter: brightness(0.995) saturate(1.01);
    transform: none;
}

html:not([data-theme="dark"]) body.shop-page #shopCartCheckoutBtn:active:not([disabled]),
html:not([data-theme="dark"]) body.shop-page #shopCartCheckoutConfirmBtn:active:not([disabled]) {
    background: linear-gradient(135deg, #43d675 0%, #20b957 100%);
    color: #031b0d;
    -webkit-text-fill-color: #031b0d;
    border-color: rgba(49, 80, 111, 0.22);
    box-shadow: none !important;
    filter: brightness(0.98);
    transform: none;
}

html:not([data-theme="dark"]) body.shop-page .premium-modal,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .modal-content,
html:not([data-theme="dark"]) body.shop-page #shopSuccessModal .modal-content.shop-success-modal,
html:not([data-theme="dark"]) body.shop-page .shop-cart-checkout-modal {
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--shop-light-text);
    border: 1px solid var(--shop-light-border) !important;
    box-shadow:
        0 34px 80px rgba(15, 23, 42, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

/* Keep light shop modals from falling back to the global dark overlay while closing. */
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal,
html:not([data-theme="dark"]) body.shop-page #shopSuccessModal,
html:not([data-theme="dark"]) body.shop-page #shopCartCheckoutModal {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal.active,
html:not([data-theme="dark"]) body.shop-page #shopSuccessModal.active,
html:not([data-theme="dark"]) body.shop-page #shopCartCheckoutModal.active {
    background: rgba(248, 250, 252, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

html:not([data-theme="dark"]) body.shop-page .card-title,
html:not([data-theme="dark"]) body.shop-page .shop-purchase-confirm-row strong,
html:not([data-theme="dark"]) body.shop-page #purchasedContent {
    background: none !important;
    color: var(--shop-light-text) !important;
    -webkit-text-fill-color: var(--shop-light-text) !important;
}

html:not([data-theme="dark"]) body.shop-page .shop-qty-btn,
html:not([data-theme="dark"]) body.shop-page .shop-quantity-input {
    color: var(--shop-light-muted);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-stage-header {
    margin-bottom: 22px !important;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseStageTitle {
    color: #172033 !important;
    -webkit-text-fill-color: #172033 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
    letter-spacing: 0.5px !important;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #modalProductName {
    color: rgba(23, 32, 51, 0.68) !important;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #modalProductName[hidden] {
    display: none !important;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-quantity-control {
    gap: 12px;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-sku-selector__label {
    color: rgba(23, 32, 51, 0.72);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-sku-option {
    border-color: var(--shop-light-border);
    background: #ffffff;
    color: var(--shop-light-text);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.035);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-sku-option:hover:not(:disabled) {
    background: var(--shop-light-soft);
    border-color: rgba(107, 158, 206, 0.36);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-sku-option.is-selected {
    border-color: rgba(24, 128, 78, 0.48);
    background: rgba(235, 253, 244, 0.96);
    box-shadow:
        0 0 0 3px rgba(34, 197, 94, 0.12),
        0 5px 14px rgba(15, 23, 42, 0.045);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-sku-option__meta {
    color: rgba(23, 32, 51, 0.6);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-qty-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--shop-light-border);
    background: #ffffff;
    color: rgba(23, 32, 51, 0.72);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.035);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-qty-btn:hover {
    background: var(--shop-light-soft);
    color: var(--shop-light-text);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-qty-input {
    border: 1px solid var(--shop-light-border);
    background: var(--shop-light-soft);
    color: var(--shop-light-text);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseQuantity.shop-qty-input {
    width: 118px;
    min-width: 118px;
    height: 56px;
    margin: 0 10px;
    box-sizing: border-box;
    border: 1px solid rgba(107, 158, 206, 0.16) !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #172033 !important;
    -webkit-text-fill-color: #172033 !important;
    caret-color: #172033 !important;
    opacity: 1 !important;
    font-family: 'Outfit', sans-serif;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 54px;
    box-shadow:
        0 4px 10px rgba(15, 23, 42, 0.035),
        inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseQuantity.shop-qty-input:focus {
    border-color: rgba(107, 158, 206, 0.28) !important;
    background: #ffffff !important;
    box-shadow:
        0 4px 10px rgba(15, 23, 42, 0.035),
        inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseQuantity.shop-qty-input:disabled {
    color: rgba(23, 32, 51, 0.58) !important;
    -webkit-text-fill-color: rgba(23, 32, 51, 0.58) !important;
}

html:not([data-theme="dark"]) body.shop-page .shop-qty-btn:hover {
    color: var(--shop-light-text);
}

html:not([data-theme="dark"]) body.shop-page .shop-qty-input,
html:not([data-theme="dark"]) body.shop-page .shop-purchase-discount__input-wrap,
html:not([data-theme="dark"]) body.shop-page .shop-purchase-discount__input,
html:not([data-theme="dark"]) body.shop-page .shop-inline-style-attr-11 {
    background: var(--shop-light-soft);
    color: var(--shop-light-text);
    border-color: var(--shop-light-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

html:not([data-theme="dark"]) body.shop-page .shop-qty-input:focus {
    background: #ffffff;
    border-color: rgba(107, 158, 206, 0.28);
    box-shadow: 0 0 0 3px rgba(107, 158, 206, 0.12);
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-discount__input-wrap:focus-within {
    background: var(--shop-light-soft);
    border-color: var(--shop-light-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-discount__input::placeholder {
    color: rgba(23, 32, 51, 0.36);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseDiscountCode.shop-purchase-discount__input {
    color: #172033 !important;
    -webkit-text-fill-color: #172033 !important;
    caret-color: #172033 !important;
    opacity: 1 !important;
    background: #ffffff !important;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseDiscountCode.shop-purchase-discount__input:focus,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseDiscountCode.shop-purchase-discount__input:focus-visible {
    border: 1px solid rgba(107, 158, 206, 0.28) !important;
    box-shadow: none !important;
    outline: none !important;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseDiscountCode.shop-purchase-discount__input::placeholder {
    color: rgba(23, 32, 51, 0.36) !important;
    -webkit-text-fill-color: rgba(23, 32, 51, 0.36) !important;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseDiscountCode.shop-purchase-discount__input:-webkit-autofill,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseDiscountCode.shop-purchase-discount__input:-webkit-autofill:hover,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseDiscountCode.shop-purchase-discount__input:-webkit-autofill:focus {
    -webkit-text-fill-color: #172033 !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    caret-color: #172033 !important;
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-discount__action,
html:not([data-theme="dark"]) body.shop-page .shop-inline-style-attr-12 {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.18);
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-discount__action:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.16);
    color: #065f46;
    border-color: rgba(16, 185, 129, 0.26);
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-discount.is-purchase-sold-out {
    border-color: rgba(220, 38, 38, 0.14);
    background: rgba(254, 242, 242, 0.82);
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-discount.is-purchase-sold-out .shop-purchase-discount__summary-meta {
    color: rgba(185, 28, 28, 0.72);
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-discount.is-purchase-sold-out .shop-purchase-discount__input-wrap,
html:not([data-theme="dark"]) body.shop-page .shop-purchase-discount.is-purchase-sold-out .shop-purchase-discount__input,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-discount.is-purchase-sold-out #purchaseDiscountCode.shop-purchase-discount__input {
    background: rgba(248, 250, 252, 0.78) !important;
    color: rgba(23, 32, 51, 0.5) !important;
    -webkit-text-fill-color: rgba(23, 32, 51, 0.5) !important;
    border-color: rgba(220, 38, 38, 0.12);
    caret-color: transparent !important;
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-discount.is-purchase-sold-out .shop-purchase-discount__action:disabled {
    color: rgba(100, 116, 139, 0.72);
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(226, 232, 240, 0.74);
}

html:not([data-theme="dark"]) body.shop-page .shop-discount-assets-empty--sold-out {
    border-color: rgba(220, 38, 38, 0.12);
    background: rgba(254, 242, 242, 0.88);
    color: rgba(127, 29, 29, 0.72);
}

html:not([data-theme="dark"]) body.shop-page .shop-inline-style-attr-17 {
    color: #d97706;
}

html:not([data-theme="dark"]) body.shop-page .shop-inline-style-attr-17.is-flash-sale,
html:not([data-theme="dark"]) body.shop-page #modalUnitPrice.is-flash-sale {
    color: #dc2626 !important;
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-flash-countdown-inline {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #dc2626 !important;
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-flash-countdown-inline .shop-purchase-flash-countdown__label {
    color: #dc2626 !important;
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-flash-countdown-inline .countdown-timer {
    font-family: 'Outfit', var(--font-sans) !important;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: #dc2626 !important;
}

html:not([data-theme="dark"]) body.shop-page .tier-badge-glass {
    background: rgba(40, 40, 40, 0.6);
    color: #7dd3fc;
    border-color: rgba(125, 211, 252, 0.34);
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-price-note {
    color: rgba(100, 116, 139, 0.86);
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-price-note__original span {
    color: rgba(100, 116, 139, 0.78);
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-price-note__tier {
    color: #0369a1;
}

html:not([data-theme="dark"]) body.shop-page .shop-tier-rules-help {
    background: rgba(2, 132, 199, 0.1);
    border-color: rgba(2, 132, 199, 0.28);
    color: #0284c7;
}

html:not([data-theme="dark"]) body.shop-page .shop-tier-rules-popover {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(2, 132, 199, 0.18);
    color: rgba(15, 23, 42, 0.86);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
}

html:not([data-theme="dark"]) body.shop-page .shop-tier-rules-popover::after {
    border-color: rgba(255, 255, 255, 0.96) transparent transparent transparent;
}

html:not([data-theme="dark"]) body.shop-page .shop-tier-rules-popover__title {
    color: #0369a1;
}

html:not([data-theme="dark"]) body.shop-page .shop-tier-rules-popover__rule {
    color: rgba(15, 23, 42, 0.78);
}

html:not([data-theme="dark"]) body.shop-page .shop-inline-style-attr-19 {
    color: #22c55e;
}

html:not([data-theme="dark"]) body.shop-page .shop-inline-style-attr-23 {
    color: #f59e0b;
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-usage-icon {
    color: #18804e;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseNotesBox,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseUsageBox {
    margin: 0 10px 18px;
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-notes-toggle {
    color: rgba(49, 64, 88, 0.72);
    background: transparent;
    box-shadow: none;
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-notes-toggle:focus-visible {
    color: #172033;
    background: transparent;
    box-shadow: none;
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-notes-toggle:focus-visible .shop-purchase-notes-toggle__switch {
    box-shadow:
        inset 0 0 0 1px rgba(49, 80, 111, 0.08),
        0 0 0 3px rgba(49, 80, 111, 0.1);
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-notes-toggle__switch {
    background: rgba(49, 80, 111, 0.16);
    box-shadow: inset 0 0 0 1px rgba(49, 80, 111, 0.08);
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-notes-toggle__knob {
    background: #ffffff;
    box-shadow: 0 2px 7px rgba(49, 80, 111, 0.22);
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-notes-toggle.is-active {
    color: #31506f;
    background: transparent;
}

html:not([data-theme="dark"]) body.shop-page .shop-purchase-notes-toggle.is-active .shop-purchase-notes-toggle__switch {
    background: #22c55e;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseNotesCard.shop-success-usage-card,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseUsageCard.shop-success-usage-card {
    display: block;
    align-items: stretch;
    justify-content: flex-start;
    text-align: left;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--shop-light-soft) !important;
    border: 1px solid var(--shop-light-border) !important;
    border-top-color: var(--shop-light-border) !important;
    border-left-color: var(--shop-light-border) !important;
    color: rgba(23, 32, 51, 0.74) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseNotesCard.shop-success-usage-card:hover,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseUsageCard.shop-success-usage-card:hover {
    background: var(--shop-light-soft) !important;
    border-color: var(--shop-light-border) !important;
    box-shadow: none !important;
    transform: none !important;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseNotesContent,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseUsageContent {
    color: rgba(23, 32, 51, 0.74) !important;
    -webkit-text-fill-color: rgba(23, 32, 51, 0.74) !important;
}

body.shop-page #shopPurchaseModal #purchaseNotesContent :not(a):not([data-shop-rich-color]),
body.shop-page #shopPurchaseModal #purchaseUsageContent :not(a):not([data-shop-rich-color]) {
    -webkit-text-fill-color: currentColor !important;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseNotesContent a:not([data-shop-rich-color]),
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseUsageContent a:not([data-shop-rich-color]) {
    color: #31506f !important;
    -webkit-text-fill-color: #31506f !important;
}

html[data-theme="dark"] body.shop-page #shopPurchaseModal #purchaseNotesContent,
html[data-theme="dark"] body.shop-page #shopPurchaseModal #purchaseUsageContent {
    color: rgba(226, 232, 240, 0.82) !important;
    -webkit-text-fill-color: rgba(226, 232, 240, 0.82) !important;
}

html[data-theme="dark"] body.shop-page #shopPurchaseModal #purchaseNotesContent a:not([data-shop-rich-color]),
html[data-theme="dark"] body.shop-page #shopPurchaseModal #purchaseUsageContent a:not([data-shop-rich-color]) {
    color: #93c5fd !important;
    -webkit-text-fill-color: #93c5fd !important;
}

body.shop-page .shop-cart-item__panel [data-shop-rich-color],
body.shop-page .shop-guidance-panel-content [data-shop-rich-color],
body.shop-page #shopPurchaseModal #purchaseNotesContent [data-shop-rich-color],
body.shop-page #shopPurchaseModal #purchaseUsageContent [data-shop-rich-color] {
    -webkit-text-fill-color: currentColor !important;
}

body.shop-page .shop-cart-item__panel [data-shop-rich-color] *,
body.shop-page .shop-guidance-panel-content [data-shop-rich-color] *,
body.shop-page #shopPurchaseModal #purchaseNotesContent [data-shop-rich-color] *,
body.shop-page #shopPurchaseModal #purchaseUsageContent [data-shop-rich-color] * {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseNotesContent [data-shop-rich-color] a,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseUsageContent [data-shop-rich-color] a,
html[data-theme="dark"] body.shop-page #shopPurchaseModal #purchaseNotesContent [data-shop-rich-color] a,
html[data-theme="dark"] body.shop-page #shopPurchaseModal #purchaseUsageContent [data-shop-rich-color] a,
html[data-theme="dark"] body.shop-page .shop-cart-item__panel--notice [data-shop-rich-color] a,
html[data-theme="dark"] body.shop-page .shop-cart-item__panel--usage [data-shop-rich-color] a {
    color: inherit !important;
    -webkit-text-fill-color: currentColor !important;
}

html:not([data-theme="dark"]) body.shop-page .shop-discount-assets-group__title,
html:not([data-theme="dark"]) body.shop-page .shop-discount-asset-card__cta,
html:not([data-theme="dark"]) body.shop-page .shop-discount-asset-card__meta,
html:not([data-theme="dark"]) body.shop-page .shop-discount-asset-card__hint,
html:not([data-theme="dark"]) body.shop-page .shop-discount-asset-card__scope,
html:not([data-theme="dark"]) body.shop-page .shop-price-waterfall__title,
html:not([data-theme="dark"]) body.shop-page .shop-price-waterfall__footer,
html:not([data-theme="dark"]) body.shop-page .shop-price-waterfall__row-copy span {
    color: var(--shop-light-muted);
}

html:not([data-theme="dark"]) body.shop-page .shop-discount-asset-card,
html:not([data-theme="dark"]) body.shop-page .shop-discount-asset-card__target-link,
html:not([data-theme="dark"]) body.shop-page .shop-discount-assets-empty,
html:not([data-theme="dark"]) body.shop-page .shop-price-waterfall {
    background: #ffffff;
    color: var(--shop-light-text);
    border-color: var(--shop-light-border);
}

html:not([data-theme="dark"]) body.shop-page .shop-discount-asset-card__target-name,
html:not([data-theme="dark"]) body.shop-page .shop-discount-asset-card__summary-reason,
html:not([data-theme="dark"]) body.shop-page .shop-price-waterfall__row-copy strong,
html:not([data-theme="dark"]) body.shop-page .shop-price-waterfall__row-value {
    color: var(--shop-light-text);
}

html:not([data-theme="dark"]) body.shop-page .shop-discount-asset-card__target-link {
    background: #ffffff;
    border-color: var(--shop-light-border);
    box-shadow: none;
}

html:not([data-theme="dark"]) body.shop-page .shop-discount-asset-card__benefit {
    background: rgba(219, 39, 119, 0.1);
    border-color: rgba(219, 39, 119, 0.3);
    color: #be185d;
}

html:not([data-theme="dark"]) body.shop-page .shop-discount-asset-card__stacking--exclusive {
    background: rgba(217, 119, 6, 0.12);
    border-color: rgba(217, 119, 6, 0.34);
    color: #b45309;
}

html:not([data-theme="dark"]) body.shop-page .shop-discount-asset-card__stacking--stackable {
    background: rgba(13, 148, 136, 0.1);
    border-color: rgba(13, 148, 136, 0.28);
    color: #0f766e;
}

html:not([data-theme="dark"]) body.shop-page .shop-discount-asset-card__target-link:hover {
    background: #ffffff;
    border-color: rgba(16, 185, 129, 0.24);
    box-shadow: none;
}

html:not([data-theme="dark"]) body.shop-page .shop-discount-asset-card__target-action {
    background: transparent;
    border-color: transparent;
    color: #059669;
    box-shadow: none;
}

html:not([data-theme="dark"]) body.shop-page .shop-discount-asset-card__target-link:hover .shop-discount-asset-card__target-action {
    background: transparent;
    border-color: transparent;
    color: #047857;
    box-shadow: none;
}

html:not([data-theme="dark"]) body.shop-page .shop-discount-asset-card__chevron {
    background: rgba(23, 32, 51, 0.04);
    box-shadow: inset 0 0 0 1px rgba(23, 32, 51, 0.12);
}

html:not([data-theme="dark"]) body.shop-page .shop-discount-asset-card__chevron::before {
    border-color: rgba(23, 32, 51, 0.72);
}

html:not([data-theme="dark"]) body.shop-page .shop-discount-asset-card--collapsible[open] .shop-discount-asset-card__chevron {
    background: rgba(34, 197, 94, 0.1);
    box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.24);
}

html:not([data-theme="dark"]) body.shop-page .shop-discount-asset-card--collapsible[open] .shop-discount-asset-card__chevron::before {
    border-color: rgba(22, 163, 74, 0.9);
}

@supports (-webkit-touch-callout: none) {
    @media (max-width: 720px) {
        html:not([data-theme="dark"]) body.shop-page .framer-nav {
            background-color: rgba(255, 255, 255, 0.76) !important;
            backdrop-filter: var(--glass-blur, blur(10px)) !important;
            -webkit-backdrop-filter: var(--glass-blur, blur(10px)) !important;
            border-bottom-color: rgba(15, 23, 42, 0.08) !important;
            box-shadow: 0 1px 0 rgba(15, 23, 42, 0.035) !important;
            transition: none !important;
        }

        html:not([data-theme="dark"]) body.shop-page .framer-nav.scrolled {
            background-color: rgba(255, 255, 255, 0.9) !important;
            backdrop-filter: blur(20px) !important;
            -webkit-backdrop-filter: blur(20px) !important;
            border-bottom-color: rgba(15, 23, 42, 0.08) !important;
            box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035) !important;
            transition: none !important;
        }

        html:not([data-theme="dark"]).mobile-menu-open body.shop-page .framer-nav,
        html:not([data-theme="dark"]) body.shop-page.mobile-menu-open .framer-nav,
        html:not([data-theme="dark"]) body.shop-page .framer-nav:has(.nav-hamburger.active) {
            background-color: rgba(255, 255, 255, 0.92) !important;
            backdrop-filter: blur(20px) !important;
            -webkit-backdrop-filter: blur(20px) !important;
            border-bottom-color: rgba(15, 23, 42, 0.08) !important;
            box-shadow: 0 4px 16px rgba(15, 23, 42, 0.035) !important;
            transition: none !important;
        }

        body.shop-page .shop-cart-anchor {
            bottom: calc(env(safe-area-inset-bottom, 0px) + 108px);
            backdrop-filter: var(--shop-mobile-floating-glass-filter) !important;
            -webkit-backdrop-filter: var(--shop-mobile-floating-glass-filter) !important;
        }

        body.shop-page .shop-cart-anchor::before {
            background: transparent !important;
        }

        body.shop-page .chat-widget-fab {
            bottom: calc(env(safe-area-inset-bottom, 0px) + 40px) !important;
        }

        html:not([data-theme="dark"]) body.shop-page .shop-cart-anchor,
        html:not([data-theme="dark"]) body.shop-page .chat-widget-fab {
            background: var(--shop-mobile-floating-glass-bg) !important;
            background-color: var(--shop-mobile-floating-glass-bg) !important;
            border-color: var(--shop-mobile-floating-glass-border) !important;
            box-shadow: var(--shop-mobile-floating-glass-shadow) !important;
        }

        html[data-theme="dark"] body.shop-page .shop-cart-anchor,
        html[data-theme="dark"] body.shop-page .chat-widget-fab {
            background: var(--shop-mobile-floating-glass-bg) !important;
            background-color: var(--shop-mobile-floating-glass-bg) !important;
            border-color: var(--shop-mobile-floating-glass-border) !important;
            box-shadow: var(--shop-mobile-floating-glass-shadow) !important;
        }
    }
}

@media (max-width: 1180px) and (hover: hover) and (pointer: fine) {
    body.shop-page .chat-widget-fab,
    body.shop-page .chat-widget-fab:hover,
    body.shop-page .chat-widget-fab:active,
    body.shop-page .chat-widget-fab:focus,
    body.shop-page .chat-widget-fab:focus-visible {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        border: 1px solid var(--shop-mobile-floating-glass-border) !important;
        border-radius: 18px !important;
        background: var(--shop-mobile-floating-glass-bg) !important;
        background-color: var(--shop-mobile-floating-glass-bg) !important;
        backdrop-filter: var(--shop-mobile-floating-glass-filter) !important;
        -webkit-backdrop-filter: var(--shop-mobile-floating-glass-filter) !important;
        box-shadow: var(--shop-mobile-floating-glass-shadow) !important;
    }

    body.shop-page .chat-widget-fab {
        top: auto !important;
        right: 16px !important;
        bottom: calc(env(safe-area-inset-bottom, 0px) + 40px) !important;
        transform: none !important;
        display: block !important;
        box-sizing: border-box;
        overflow: visible;
        isolation: isolate;
    }

    body.shop-page .chat-widget-fab:hover {
        transform: none !important;
    }

    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview),
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview):hover,
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview):active,
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview):focus,
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview):focus-visible {
        border-color: transparent !important;
        background: transparent !important;
        background-color: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        isolation: auto;
    }

    body.shop-page .chat-widget-fab.chat-widget-fab--peek .chat-widget-fab__robot,
    body.shop-page .chat-widget-fab.chat-widget-fab--peek.chat-widget-fab--ambient-retracted .chat-widget-fab__robot {
        top: 5px !important;
        left: 0 !important;
        right: auto !important;
        width: 56px !important;
        height: 46px !important;
        transform: none !important;
        z-index: 1;
    }

    body.shop-page .chat-widget-fab.chat-widget-fab--peek:hover .chat-widget-fab__robot {
        transform: none !important;
    }

    body.shop-page .chat-widget-fab.chat-widget-fab--peek:active .chat-widget-fab__robot {
        transform: scale(0.96) !important;
    }

    body.shop-page .chat-widget-fab.chat-widget-fab--peek .chat-widget-fab__glow {
        inset: 8px 8px 5px;
        opacity: 0.14;
    }

    body.shop-page .chat-widget-fab.chat-widget-fab--peek:hover .chat-widget-fab__glow {
        opacity: 0.14;
        transform: none;
    }

    body.shop-page .chat-widget-fab.chat-widget-fab--peek .chat-widget-fab__shadow {
        right: 12px;
        top: 42px;
        opacity: 0.1;
        transform: scaleX(0.82);
    }

    body.shop-page .chat-widget-fab.chat-widget-fab--peek:hover .chat-widget-fab__shadow {
        opacity: 0.1;
        transform: scaleX(0.82);
    }

    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview).chat-widget-fab--peek .chat-widget-fab__robot,
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview).chat-widget-fab--peek:active .chat-widget-fab__robot,
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview).chat-widget-fab--peek:focus .chat-widget-fab__robot,
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview).chat-widget-fab--peek:focus-visible .chat-widget-fab__robot,
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview).chat-widget-fab--peek.chat-widget-fab--ambient-retracted .chat-widget-fab__robot,
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview).chat-widget-fab--peek.chat-widget-fab--ambient-retracted:active .chat-widget-fab__robot,
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview).chat-widget-fab--peek.chat-widget-fab--ambient-retracted:focus .chat-widget-fab__robot,
    body.shop-page .chat-widget-fab:has(.message-preview.engagement-preview).chat-widget-fab--peek.chat-widget-fab--ambient-retracted:focus-visible .chat-widget-fab__robot {
        top: 0 !important;
        height: 56px !important;
        border: 1px solid var(--shop-mobile-floating-glass-border) !important;
        border-radius: 18px !important;
        background: var(--shop-mobile-floating-glass-bg) !important;
        background-color: var(--shop-mobile-floating-glass-bg) !important;
        backdrop-filter: var(--shop-mobile-floating-glass-filter) !important;
        -webkit-backdrop-filter: var(--shop-mobile-floating-glass-filter) !important;
        box-shadow: var(--shop-mobile-floating-glass-shadow) !important;
        box-sizing: border-box;
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
    }
}

/* 20260424_PUBLIC_LIGHT_MODAL_BACKDROP_1 */
html:not([data-theme="dark"]) body.shop-page {
    --shop-light-modal-backdrop: var(--app-modal-backdrop, rgba(31, 76, 118, 0.20));
    --shop-light-modal-backdrop-filter: var(--app-modal-backdrop-filter, blur(8px) saturate(108%));
}

html:not([data-theme="dark"]) body.shop-page[data-shop-cart-open="true"] .shop-cart-backdrop,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal.active,
html:not([data-theme="dark"]) body.shop-page #shopSuccessModal.active,
html:not([data-theme="dark"]) body.shop-page #shopCartCheckoutModal.active {
    background: var(--shop-light-modal-backdrop) !important;
    backdrop-filter: var(--shop-light-modal-backdrop-filter) !important;
    -webkit-backdrop-filter: var(--shop-light-modal-backdrop-filter) !important;
    overscroll-behavior: contain !important;
    overscroll-behavior-y: contain !important;
}

/* 20260523_SHOP_PURCHASE_MODAL_ROOMIER_1 */
@media (min-width: 769px) {
    #shopPurchaseModal .modal-content {
        width: min(calc(100% - 72px), 820px) !important;
        max-width: 820px !important;
        padding: clamp(38px, 3.4vw, 50px) clamp(42px, 4.2vw, 60px) clamp(34px, 3.6vw, 46px) !important;
    }

    #shopPurchaseModal .shop-purchase-stage-header {
        max-width: 560px;
        margin: 0 auto 28px !important;
    }

    #shopPurchaseModal .shop-purchase-stage-sku {
        margin-bottom: 24px;
    }

    #shopPurchaseModal .shop-sku-selector__label {
        margin-bottom: 12px;
    }

    #shopPurchaseModal .shop-sku-selector__options {
        grid-template-columns: repeat(auto-fit, minmax(184px, 1fr));
        gap: 14px;
    }

    #shopPurchaseModal .shop-sku-option {
        min-height: 76px;
        padding: 14px 16px;
        border-radius: 16px;
    }

    #shopPurchaseModal .shop-quantity-wrapper {
        margin-bottom: 30px;
    }

    #shopPurchaseModal .shop-purchase-discount {
        margin: 18px 0 20px;
    }

    #shopPurchaseModal .shop-purchase-discount__input-wrap {
        min-height: 58px;
    }

    #shopPurchaseModal .shop-inline-style-attr-14 {
        margin-bottom: 30px;
        padding: 0;
    }

    #shopPurchaseModal #purchaseNotesBox,
    #shopPurchaseModal #purchaseUsageBox {
        margin: 0 0 24px;
    }

    #shopPurchaseModal .shop-purchase-actions {
        gap: 16px;
    }

    #shopPurchaseModal [data-purchase-step="configure"] #purchaseAddToCartBtn,
    #shopPurchaseModal [data-purchase-step="configure"] #nextPurchaseStepBtn {
        flex: 0 0 172px;
        min-height: 48px;
    }
}

/* 20260523_SHOP_PURCHASE_MODAL_NARROW_1 */
@media (min-width: 769px) and (max-width: 980px) {
    #shopPurchaseModal .modal-content {
        width: min(calc(100% - 48px), 720px) !important;
        max-width: 720px !important;
        padding: 30px 34px 32px !important;
        border-radius: 30px !important;
    }

    #shopPurchaseModal .shop-purchase-stage-header {
        margin-bottom: 22px !important;
    }

    #shopPurchaseModal .shop-purchase-stage-sku {
        margin-bottom: 18px;
    }

    #shopPurchaseModal .shop-sku-selector__options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    #shopPurchaseModal .shop-sku-option {
        min-height: 66px;
        padding: 11px 12px;
        border-radius: 14px;
    }

    #shopPurchaseModal .shop-sku-option__name {
        font-size: 13px;
        line-height: 1.18;
    }

    #shopPurchaseModal .shop-sku-option__meta {
        font-size: 11px;
        line-height: 1.22;
    }

    #shopPurchaseModal .shop-quantity-wrapper {
        margin-bottom: 22px;
    }

    #shopPurchaseModal .shop-purchase-discount {
        margin: 12px 0 16px;
    }

    #shopPurchaseModal .shop-purchase-discount__input-wrap {
        min-height: 52px;
    }

    #shopPurchaseModal .shop-inline-style-attr-14 {
        margin-bottom: 22px;
    }

    #shopPurchaseModal #purchaseNotesBox,
    #shopPurchaseModal #purchaseUsageBox {
        margin-bottom: 18px;
    }

    #shopPurchaseModal .shop-purchase-actions {
        gap: 12px;
    }

    #shopPurchaseModal [data-purchase-step="configure"] #purchaseAddToCartBtn,
    #shopPurchaseModal [data-purchase-step="configure"] #nextPurchaseStepBtn {
        flex: 1 1 0;
        min-width: 0;
        min-height: 46px;
    }
}

/* 20260523_SHOP_PURCHASE_MODAL_COMPACT_NARROW_1 */
@media (max-width: 768px) {
    #shopPurchaseModal .modal-content {
        width: min(calc(100% - 32px), 600px) !important;
        padding: 22px 18px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
        border-radius: 28px !important;
    }

    #shopPurchaseModal .shop-purchase-stage-header {
        margin-bottom: 18px !important;
    }

    #shopPurchaseModal #purchaseStageTitle {
        font-size: 1.08rem !important;
        margin-bottom: 4px !important;
    }

    #shopPurchaseModal #modalProductName {
        font-size: 0.88rem !important;
    }

    #shopPurchaseModal .shop-purchase-stage-sku {
        gap: 8px;
        margin-bottom: 16px;
    }

    #shopPurchaseModal .shop-sku-selector__label {
        margin-bottom: 8px;
        font-size: 12px;
    }

    #shopPurchaseModal .shop-sku-selector__options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    #shopPurchaseModal .shop-sku-option {
        min-height: 60px;
        padding: 10px;
        border-radius: 14px;
    }

    #shopPurchaseModal .shop-sku-option__name {
        font-size: 12px;
        line-height: 1.18;
    }

    #shopPurchaseModal .shop-sku-option__meta {
        font-size: 10px;
        line-height: 1.2;
    }

    #shopPurchaseModal .shop-quantity-wrapper {
        margin-bottom: 18px;
    }

    #shopPurchaseModal .shop-qty-btn {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseQuantity.shop-qty-input {
        width: 94px;
        min-width: 94px;
        height: 48px;
        margin: 0 6px;
        font-size: 1.08rem;
        line-height: 46px;
    }

    #shopPurchaseModal .shop-purchase-discount {
        margin: 10px 0 14px;
    }

    #shopPurchaseModal .shop-purchase-discount__input-wrap {
        min-height: 48px;
    }

    #shopPurchaseModal .shop-purchase-discount__input {
        height: 38px;
        padding: 0 10px;
        font-size: 13px;
    }

    #shopPurchaseModal .shop-purchase-discount__action {
        min-width: 76px;
        min-height: 38px;
        padding: 0 10px;
        font-size: 12px;
    }

    #shopPurchaseModal .shop-inline-style-attr-14 {
        margin-bottom: 20px;
        padding: 0;
    }

    #shopPurchaseModal #purchaseNotesBox,
    #shopPurchaseModal #purchaseUsageBox {
        margin: 0 0 16px;
    }
}

@media (max-width: 460px) {
    #shopPurchaseModal .shop-sku-selector__options {
        grid-template-columns: 1fr;
    }
}

/* 20260524_SHOP_PURCHASE_SKU_COMBO_1 */
#shopPurchaseModal .modal-content {
    display: flex !important;
    flex-direction: column;
    width: min(calc(100% - 56px), 760px) !important;
    max-width: 760px !important;
    max-height: min(840px, calc(100dvh - 96px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))) !important;
    overflow: hidden !important;
    padding: clamp(26px, 3vw, 36px) clamp(28px, 4vw, 46px) 0 !important;
}

/* Guest cash checkout: reuse the shop modal chrome while keeping the cash
   flow visually and behaviorally separate from points redemption. */
.guest-shop-modal {
    padding: 20px;
}

.guest-shop-modal__content {
    width: min(calc(100% - 40px), 620px) !important;
    max-width: 620px !important;
    max-height: min(760px, calc(100dvh - 40px)) !important;
    box-sizing: border-box;
    background:
        linear-gradient(180deg, rgba(14, 20, 29, 0.96) 0%, rgba(8, 12, 18, 0.98) 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow:
        0 34px 80px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
    padding: 24px !important;
    text-align: left;
    overflow-y: auto;
    scroll-padding-bottom: 88px;
}

.guest-shop-modal__summary-row,
.guest-shop-modal__actions,
.guest-shop-modal__address-row {
    display: flex;
    align-items: center;
}

.guest-shop-modal__summary-row {
    justify-content: space-between;
    gap: 16px;
}
.guest-shop-modal__title-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Dujiao alignment (Payment.vue header): one muted subtitle line under the
   title, swapped per phase by js/guest-shop-client.js. Deliberately not
   uppercase - this modal's __eyebrow is contractually not uppercase, and the
   subtitle is a full Chinese sentence rather than a label. */
.guest-shop-modal__subtitle { margin: 6px 0 0; color: rgba(226,232,240,.62); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }

/* Dujiao alignment (CheckoutSteps.vue): clean phase dots and a connector bar
   before every step except the first. Dujiao drives status from a Vue computed; here js sets
   is-done / is-current / is-upcoming plus aria-current="step" on the live step.
   Dujiao's keys are cart/checkout/payment; a guest single-product flow has no
   cart, so the rail is 确认订单 -> 支付 -> 发货. */
.guest-shop-modal__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    background: rgba(255,255,255,.045);
    list-style: none;
}
.guest-shop-modal__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; }
.guest-shop-modal__step + .guest-shop-modal__step::before {
    content: "";
    position: absolute;
    top: 7px;
    right: 50%;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    transition: background-color .2s ease;
    z-index: 0;
}
.guest-shop-modal__step.is-done::before,
.guest-shop-modal__step.is-current::before { background: #53c7df; }
.guest-shop-modal__step-index {
    flex: 0 0 auto;
    display: block;
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 50%;
    background: #94a3b8;
    position: relative;
    z-index: 1;
    transition: background-color .2s ease;
}
.guest-shop-modal__step.is-done .guest-shop-modal__step-index,
.guest-shop-modal__step.is-current .guest-shop-modal__step-index {
    background: rgb(var(--guest-step-rgb));
    box-shadow: none;
}
.guest-shop-modal__step-label { color: rgba(226,232,240,.58); font-size: 12px; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.guest-shop-modal__step.is-done .guest-shop-modal__step-label,
.guest-shop-modal__step.is-current .guest-shop-modal__step-label { color: rgba(248,250,252,.94); font-weight: 600; }
/* Each checkout phase has its own accent. */
.guest-shop-modal__step[data-step-key="configure"] .guest-shop-modal__step-index { --guest-step-rgb: 83,199,223; }
.guest-shop-modal__step[data-step-key="payment"] .guest-shop-modal__step-index { --guest-step-rgb: 169,151,231; }
.guest-shop-modal__step[data-step-key="delivery"] .guest-shop-modal__step-index { --guest-step-rgb: 101,207,172; }
.guest-shop-modal__step[data-step-key="payment"].is-done::before,
.guest-shop-modal__step[data-step-key="payment"].is-current::before { background: #a997e7; }
.guest-shop-modal__step[data-step-key="delivery"].is-done::before,
.guest-shop-modal__step[data-step-key="delivery"].is-current::before { background: #65cfac; }
.guest-shop-modal__eyebrow { margin: 0 0 4px; color: #93c5fd; font-size: 12px; letter-spacing: .02em; }
.guest-shop-modal__state { margin-bottom: 16px; padding: 10px 12px; border: 1px solid rgba(147,197,253,.16); border-radius: 10px; color: rgba(226,232,240,.78); font-size: 13px; }
.guest-shop-modal__state-countdown { display: inline; white-space: nowrap; }
.guest-shop-modal__state-countdown[hidden] { display: none !important; }
.guest-shop-modal__state-countdown strong { color: #e2e8f0; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; font-size: 13px; font-weight: 800; letter-spacing: 0; }
.guest-shop-modal__state-countdown.is-warning strong { color: #fde68a; }
.guest-shop-modal__state-countdown.is-expired strong { color: #fecaca; }
.guest-shop-modal__state[data-state="error"], .guest-shop-modal__state[data-state="manual_review"] { color: #fecaca; border-color: rgba(248,113,113,.35); }
.guest-shop-modal__summary, .guest-shop-modal__panel { margin-top: 14px; padding: 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(255,255,255,.045); }
.guest-shop-modal__summary { min-height: 124px; box-sizing: border-box; }
.guest-shop-modal__order-overview { display: grid; gap: 14px; margin-top: 14px; }
.guest-shop-modal__order-overview > .guest-shop-modal__summary,
.guest-shop-modal__order-overview > .guest-shop-modal__amount { margin-top: 0; }
@media (min-width: 769px) {
    .guest-shop-modal__order-overview {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: stretch;
        min-height: 124px;
    }
}
.guest-shop-modal__summary-row + .guest-shop-modal__summary-row { margin-top: 9px; }
.guest-shop-modal__summary-row[hidden] { display: none !important; }
.guest-shop-modal__summary-row span { color: rgba(226,232,240,.58); font-size: 13px; }
.guest-shop-modal__summary-row strong { max-width: 72%; overflow-wrap: anywhere; text-align: right; font-size: 12px; font-weight: 600; letter-spacing: .015em; line-height: 1.35; font-variant-numeric: tabular-nums; }
#guestCashOrderNo { font-size: 12px; font-weight: 600; letter-spacing: .015em; line-height: 1.35; font-variant-numeric: tabular-nums; }

/* Dujiao alignment (PaymentAmountBreakdown.vue): the payable figure is promoted
   to a hero number under an uppercase muted label, the line items sit below it
   as a compact 12px list, discounts read destructive, and the polling hint
   stays in the phase status line so the payment deadline is visible without
   competing with the QR code. */
.guest-shop-modal__amount {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 12px;
    background: rgba(255,255,255,.045);
    min-height: 124px;
    box-sizing: border-box;
}
.guest-shop-modal__amount-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}
.guest-shop-modal__amount-label { color: rgba(226,232,240,.58); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.guest-shop-modal__amount-value {
    margin: 0;
    max-width: 70%;
    color: #f8fafc;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
    text-align: right;
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
}
.guest-shop-modal__amount-value,
.guest-shop-modal__amount-rows .guest-shop-modal__summary-row strong {
    font-variant-numeric: tabular-nums;
}
.guest-shop-modal__amount-rows .guest-shop-modal__summary-row strong {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
}
.guest-amount-currency {
    display: inline-block;
    flex: 0 0 auto;
    margin-right: 0.12em;
}
.guest-shop-modal__amount-value.is-amount-placeholder,
.guest-shop-modal__amount-rows .guest-shop-modal__summary-row strong.is-amount-placeholder {
    color: rgba(226,232,240,.46);
}
.is-amount-placeholder .guest-amount-currency {
    color: inherit;
    opacity: 0.85;
}
.guest-amount-digits { display: inline-block; }
.is-amount-placeholder .guest-amount-digits {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4ch;
    box-sizing: content-box;
}
.guest-amount-value-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.guest-amount-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.18em;
    vertical-align: middle;
}
.guest-amount-dots span {
    display: inline-block;
    width: 0.22em;
    height: 0.22em;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0.35;
    animation: guestAmountDotBounce 0.9s ease-in-out infinite;
}
.guest-amount-dots span:nth-child(2) {
    animation-delay: 0.16s;
}
.guest-amount-dots span:nth-child(3) {
    animation-delay: 0.32s;
}
@keyframes guestAmountDotBounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    40% {
        transform: translateY(-0.2em);
        opacity: 0.95;
    }
}
/* Keep the zero-value placeholder in view during the overlay's 300ms entrance.
   The real quote then cross-fades at exactly the same position, so currency
   symbols and digits do not slide as the amount becomes available. */
#guestCashPurchaseModal.active .guest-shop-modal__amount-value.is-amount-revealing .guest-amount-digits,
#guestCashPurchaseModal.active .guest-shop-modal__amount-rows .guest-shop-modal__summary-row strong.is-amount-revealing .guest-amount-digits {
    position: relative;
    display: inline-block;
    animation: guest-amount-reveal .2s ease-out .3s both;
    will-change: opacity;
}
#guestCashPurchaseModal.active .guest-shop-modal__amount-value.is-amount-revealing .guest-amount-digits::before,
#guestCashPurchaseModal.active .guest-shop-modal__amount-rows .guest-shop-modal__summary-row strong.is-amount-revealing .guest-amount-digits::before {
    content: attr(data-loading-amount);
    position: absolute;
    inset: 0;
    color: rgba(226,232,240,.46);
    pointer-events: none;
    text-align: inherit;
    animation: guest-amount-placeholder-fade .18s ease-out .3s both;
}
@keyframes guest-amount-reveal {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes guest-amount-placeholder-fade {
    from { opacity: 1; }
    to { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .guest-amount-dots span {
        animation: none;
        opacity: 0.7;
        transform: none;
    }
    #guestCashPurchaseModal.active .guest-shop-modal__amount-value.is-amount-revealing .guest-amount-digits,
    #guestCashPurchaseModal.active .guest-shop-modal__amount-rows .guest-shop-modal__summary-row strong.is-amount-revealing .guest-amount-digits {
        animation: none;
    }
    #guestCashPurchaseModal.active .guest-shop-modal__amount-value.is-amount-revealing .guest-amount-digits::before,
    #guestCashPurchaseModal.active .guest-shop-modal__amount-rows .guest-shop-modal__summary-row strong.is-amount-revealing .guest-amount-digits::before {
        display: none;
    }
}
.guest-shop-modal__amount-rows { display: grid; gap: 8px; margin-top: 14px; min-height: 42px; }
/* Rows keep the modal's shared __summary-row idiom, but inside the breakdown
   card the stack is driven by grid gap, not by the sibling margin. */
.guest-shop-modal__amount-rows .guest-shop-modal__summary-row + .guest-shop-modal__summary-row { margin-top: 0; }
.guest-shop-modal__amount-rows .guest-shop-modal__summary-row span { font-size: 12px; }
.guest-shop-modal__amount-rows .guest-shop-modal__summary-row strong { font-size: 12px; font-weight: 600; }
.guest-shop-modal__row--discount strong { color: #f87171; }
.guest-shop-modal__amount-footer { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.09); }
.guest-shop-modal__amount-footer .guest-shop-modal__hint { margin-top: 0; }
.guest-shop-modal__amount-footer[hidden] { display: none !important; }
.guest-shop-modal__panel[hidden],
.guest-shop-modal__configure-panel[hidden],
#guestCashConfigurePanel[hidden] {
    display: none !important;
}
/* Keep the required guest checkout credentials side by side on wide
   confirmation dialogs. The compact layout remains stacked for narrow views. */
@media (min-width: 900px) {
    .guest-shop-modal__configure-panel {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 14px;
        align-items: start;
    }
    .guest-shop-modal__configure-panel[hidden] {
        display: none !important;
    }
    .guest-shop-modal__configure-panel > .guest-shop-modal__credential-field {
        min-width: 0;
    }
    .guest-shop-modal__configure-panel > .guest-shop-modal__payment-field {
        grid-column: 1 / -1;
    }
    .guest-shop-modal__configure-panel > #guestCashDiscountCode {
        grid-column: 1 / -1;
    }
}

.guest-shop-modal__field { display: grid; gap: 7px; margin-bottom: 13px; color: rgba(226,232,240,.82); font-size: 13px; }
.guest-shop-modal__field input, .guest-shop-modal__field select { width: 100%; min-height: 42px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; background: rgba(15,23,42,.55); color: inherit; }

.guest-shop-modal__payment-field { margin-bottom: 16px; }
.guest-shop-modal__payment-field > span { font-weight: 600; }
.guest-shop-modal__payment-options {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    gap: 8px;
    width: max-content;
    max-width: 100%;
}
.guest-shop-modal__payment-option {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    min-height: 42px;
    padding: 6px 11px;
    border: 1px solid rgba(148,163,184,.26);
    border-radius: 999px;
    background: rgba(30,41,59,.88);
    color: #e2e8f0;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.guest-shop-modal__payment-option:hover { border-color: rgba(148,163,184,.5); transform: translateY(-1px); }
.guest-shop-modal__payment-option[aria-checked="true"] {
    border-color: #7eb8ef;
    background: rgba(126,184,239,.12);
    box-shadow: none;
}
.guest-shop-modal__payment-option:focus-visible { outline: 3px solid rgba(125,211,252,.5); outline-offset: 2px; }
.guest-shop-modal__payment-option:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.guest-shop-modal__payment-icon {
    display: inline-flex;
    flex: 0 0 22px;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(96,165,250,.18);
    color: #bfdbfe;
    font-size: 16px;
}
.guest-shop-modal__payment-icon img { width: 16px; height: 16px; display: block; }
.guest-shop-modal__payment-option[data-channel="alipay"] .guest-shop-modal__payment-icon { background: rgba(22,119,255,.16); color: #1677ff; }
.guest-shop-modal__payment-option[data-channel="wxpay"] .guest-shop-modal__payment-icon { background: rgba(74,222,128,.16); color: #86efac; }
.guest-shop-modal__payment-option[data-channel="qqpay"] .guest-shop-modal__payment-icon { background: rgba(129,140,248,.18); color: #c7d2fe; }
.guest-shop-modal__payment-option[data-provider="nowpayments"] .guest-shop-modal__payment-icon { background: rgba(52,211,153,.16); color: #a7f3d0; }
.guest-shop-modal__payment-name { min-width: 0; overflow-wrap: anywhere; font-size: 13px; font-weight: 600; line-height: 1.35; }
.guest-shop-modal__payment-option { position: relative; }
.guest-shop-modal__payment-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 auto;
    width: 0;
    height: 16px;
    margin-left: 0;
    transition: opacity .16s ease;
}
.guest-shop-modal__payment-option.is-loading .guest-shop-modal__payment-loading {
    display: inline-flex;
    flex: 0 0 22px;
    width: 22px;
    opacity: 1;
    visibility: visible;
}
.guest-shop-modal__payment-loading i {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: guest-payment-dot-bounce .92s cubic-bezier(.33, .1, .28, 1) infinite;
}
.guest-shop-modal__payment-loading i:nth-child(2) { animation-delay: .14s; }
.guest-shop-modal__payment-loading i:nth-child(3) { animation-delay: .28s; }
@keyframes guest-payment-dot-bounce {
    0%, 62%, 100% { transform: translateY(1px); opacity: .72; }
    31% { transform: translateY(-3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .guest-shop-modal__payment-loading i { animation: none; opacity: 1; transform: none; }
}
.guest-shop-modal__state:empty,
.guest-shop-modal__state[hidden] { display: none !important; }
.guest-shop-modal__hint { margin: 10px 0 0; color: rgba(226,232,240,.58); font-size: 12px; line-height: 1.6; }
.guest-shop-modal__checkout-link { display: inline-flex; margin-top: 10px; color: #93c5fd; overflow-wrap: anywhere; }
.guest-shop-modal__address-row { gap: 8px; margin-top: 10px; }
.guest-shop-modal__address-row code { min-width: 0; flex: 1; padding: 9px; border-radius: 8px; background: rgba(0,0,0,.22); overflow-wrap: anywhere; font-size: 12px; }
.guest-shop-modal__copy-btn { flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: rgba(255,255,255,.06); color: inherit; cursor: pointer; }

/* Dujiao alignment (Payment.vue cryptoPaymentDetails): the crypto facts become
   one bordered list of label/value rows separated by hairlines (none after the
   last row), stacked on narrow screens and split label-left / value-right from
   the 600px house breakpoint up. The copy affordance is its own right-aligned
   row with a separate success text, so the confirmation can never be written
   into the address node itself. */
.guest-shop-modal__crypto-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    background: rgba(255,255,255,.05);
}
.guest-shop-modal__crypto-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.guest-shop-modal__crypto-row:last-child { padding-bottom: 0; border-bottom: 0; }
.guest-shop-modal__crypto-label { flex: 0 0 auto; color: rgba(226,232,240,.58); font-size: 12px; }
.guest-shop-modal__crypto-value {
    min-width: 0;
    color: rgba(248,250,252,.94);
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.guest-shop-modal__crypto-address {
    padding: 9px;
    border-radius: 8px;
    background: rgba(0,0,0,.22);
    font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
    font-weight: 500;
}
.guest-shop-modal__crypto-address-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    position: relative;
}
.guest-shop-modal__crypto-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(226, 232, 240, 0.85);
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.guest-shop-modal__crypto-copy:hover,
.guest-shop-modal__crypto-copy:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.45);
    background: rgba(96, 165, 250, 0.18);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    outline: none;
}
.guest-shop-modal__crypto-copy:active {
    transform: translateY(0) scale(0.96);
}
.guest-shop-modal__crypto-copy:has(.fa-check),
.guest-shop-modal__crypto-copy.is-copied {
    border-color: rgba(34, 197, 94, 0.46) !important;
    background: rgba(34, 197, 94, 0.2) !important;
    color: #86efac !important;
}
.guest-shop-modal__crypto-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}
.guest-shop-modal__copy-feedback { color: #86efac; font-size: 12px; }
.guest-shop-modal__crypto-address-wrap .guest-shop-modal__copy-feedback {
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    background: rgba(15, 23, 42, 0.92);
    color: #86efac;
    border: 1px solid rgba(134, 239, 172, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 10;
}
.guest-shop-modal__copy-feedback[hidden] { display: none !important; }
@media (min-width: 600px) {
    .guest-shop-modal__crypto-row { flex-direction: row; align-items: flex-start; justify-content: space-between; gap: 16px; }
    .guest-shop-modal__crypto-value { text-align: right; }
    .guest-shop-modal__crypto-address { text-align: left; }
    .guest-shop-modal__crypto-address-wrap { justify-content: flex-end; }
}
/* Order Access 2.0 (A2): reveal / generate buttons beside the query-password
   input, and the additive entry link into /guest-orders.html. Both live in
   markup that stays hidden while the buyer-credential switch is off. */
.guest-shop-modal__password-input-wrap { position: relative; display: block; }
.guest-shop-modal__password-input-wrap > input { padding-right: 154px !important; }
.guest-shop-modal__password-inline-actions {
    position: absolute; inset: 0 7px 0 auto; display: inline-flex; align-items: center; gap: 5px;
}
.guest-shop-modal__pw-btn { flex: 0 0 auto; width: auto; min-width: 36px; height: 30px; padding: 0 9px; font-size: 12px; line-height: 1; }
.guest-shop-modal__pw-eye-btn { width: 30px; min-width: 30px; padding: 0; }
.guest-shop-modal__password-inline-actions .guest-shop-modal__pw-btn {
    border-color: rgba(148,163,184,.3); background: rgba(148,163,184,.08);
}
.guest-shop-modal__password-inline-actions .guest-shop-modal__pw-btn:hover {
    border-color: rgba(96,165,250,.65);
}

/* §11.3 live checklist: the four-class rule is only usable if the buyer can see
   which class is still missing, so each item flips to a tick as it is met. */
.guest-shop-modal__pw-checks { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 11px; color: rgba(226,232,240,.6); }
.guest-shop-modal__pw-checks li::before { content: "\25CB"; margin-right: 4px; }
.guest-shop-modal__pw-checks li.is-pass { color: #86efac; }
.guest-shop-modal__pw-checks li.is-pass::before { content: "\2713"; }
.guest-shop-modal__pw-note { margin-top: 8px; color: #fcd34d; overflow-wrap: anywhere; }
.guest-shop-modal__orders-link { display: inline-flex; margin-top: 10px; color: #93c5fd; text-decoration: underline; overflow-wrap: anywhere; }
/* Promo L1/L2 (plan §11.1): the quantity stepper and the discount code field.
   Both ship hidden and are revealed only from GET /guest/preview, so while the
   promo switches are off none of this markup is ever displayed.

   `.guest-shop-modal__field` sets display:grid, and an author declaration beats
   the UA `[hidden] { display: none }` rule regardless of specificity - so every
   switch-gated field in this modal (the A2 query password and these two) needs
   the hidden attribute restored explicitly. Without it a field renders even
   while its server switch is off. */
.guest-shop-modal__field[hidden] { display: none !important; }
/* minus / input / plus instead of <input type="number">: no browser spinner, no
   exponent notation, and one step per press keeps the debounced re-quote bounded
   by the buyer's own taps rather than by a drag on a native spinner. */
.guest-shop-modal__qty-control { display: flex; align-items: center; gap: 8px; }
.guest-shop-modal__qty-btn {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 9px;
    background: rgba(255,255,255,.06);
    color: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}
.guest-shop-modal__qty-btn:disabled { opacity: .4; cursor: not-allowed; }
.guest-shop-modal__qty-control input {
    flex: 1 1 60px;
    width: auto;
    min-width: 0;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.guest-shop-modal__qty-control input:disabled { opacity: .6; }
/* A rejected discount code is flagged in place (the value stays so the buyer can
   fix a typo) instead of only in the status line, which a screen reader user may
   have already left behind. */
.guest-shop-modal__field.is-invalid input { border-color: #f87171; }
.guest-shop-modal__hint.is-error { color: #fca5a5; }
/* Dujiao alignment (GuestOrderDetail.vue fulfillment card): fact lines first,
   followed by a compact copy action and the payload box. The copy button flips
   to an emerald treatment while copied. Dujiao's 使用说明 block is deliberately not ported - guest
   preview never returns product guidance, and exposing it to an
   unauthenticated buyer is a backend disclosure decision, not a styling one. */
.guest-shop-modal__delivery-actions { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin: 10px 0 12px; }
.guest-shop-modal__delivery-copy { min-width: 0; }
.guest-shop-modal__delivery-copy-label { position: static; width: auto; height: auto; padding: 0; margin: 0; overflow: visible; clip: auto; white-space: nowrap; border: 0; }
.guest-shop-modal__delivery-copy.is-copied { border-color: rgba(16,185,129,.5); background: rgba(16,185,129,.22); color: #bbf7d0; }
.guest-shop-modal__delivery-fact { display: flex; align-items: baseline; gap: 2px; color: rgba(226,232,240,.58); font-size: 12px; line-height: 1.35; }
.guest-shop-modal__delivery-fact + .guest-shop-modal__delivery-fact { margin-top: 4px; }
.guest-shop-modal__delivery-fact span::after { content: "\FF1A"; }
.guest-shop-modal__delivery-fact strong { color: rgba(226,232,240,.82); font-size: 12px; font-weight: 600; letter-spacing: .015em; font-variant-numeric: tabular-nums; }
/* Keep delivery headers the same width when expanded cards add a scrollbar. */
.guest-shop-modal__content[data-phase="delivery"] { scrollbar-gutter: stable; }
.guest-shop-modal__delivery-content { display: grid; gap: 8px; max-height: 260px; margin: 12px 0; padding: 10px; border-radius: 10px; background: rgba(15,23,42,.12); color: rgba(248,250,252,.92); overflow: auto; scrollbar-gutter: stable; }
.guest-shop-modal__delivery-group { display: grid; gap: 8px; }
.guest-shop-modal__delivery-group + .guest-shop-modal__delivery-group { margin-top: 6px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.12); }
.guest-shop-modal__delivery-group-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 2px 2px 0; }
.guest-shop-modal__delivery-group-product { color: rgba(248,250,252,.96); font-size: 13px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.guest-shop-modal__delivery-group-sku { color: rgba(186,230,253,.78); font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.guest-shop-modal__delivery-group-items { display: grid; gap: 8px; }
.guest-shop-modal__delivery-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 10px 10px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: rgba(0,0,0,.14); }
.guest-shop-modal__delivery-item-content { min-width: 0; flex: 1 1 auto; overflow-wrap: anywhere; white-space: pre-wrap; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.guest-shop-modal__delivery-item-copy { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; min-height: 30px; padding: 5px 9px; border: 1px solid rgba(148,163,184,.28); border-radius: 8px; background: rgba(255,255,255,.08); color: inherit; cursor: pointer; font: inherit; font-size: 11px; }
.guest-shop-modal__delivery-item-copy:hover,
.guest-shop-modal__delivery-item-copy:focus-visible { border-color: rgba(52,211,153,.55); background: rgba(52,211,153,.14); color: #a7f3d0; }
.guest-shop-modal__delivery-item-copy.is-copied { border-color: rgba(52,211,153,.55); background: rgba(52,211,153,.18); color: #a7f3d0; }
.guest-shop-modal__actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
    padding-top: 4px;
    border-top: 0;
    background: transparent;
    box-shadow: none;
}
.guest-shop-modal__actions .shop-btn { min-height: 42px; }
.guest-shop-modal__actions[hidden] { display: none !important; }
.guest-shop-modal__actions > .shop-btn[hidden] { display: none !important; }
.guest-shop-modal__actions #guestCashCheckStatusBtn,
.guest-shop-modal__actions #guestCashDiscardIntentBtn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #252d3d;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}
.guest-shop-modal__actions #guestCashCheckStatusBtn:hover:not(:disabled),
.guest-shop-modal__actions #guestCashCheckStatusBtn:focus-visible,
.guest-shop-modal__actions #guestCashDiscardIntentBtn:hover:not(:disabled),
.guest-shop-modal__actions #guestCashDiscardIntentBtn:focus-visible {
    border-color: rgba(255, 255, 255, 0.28);
    background: #323d50;
    color: #ffffff;
    transform: translateY(-1px);
}
.guest-shop-modal__actions #guestCashCheckStatusBtn:active:not(:disabled),
.guest-shop-modal__actions #guestCashDiscardIntentBtn:active:not(:disabled) {
    transform: translateY(0);
    background: #1c2330;
}
.guest-shop-modal__actions #guestCashAbandonOrderBtn:disabled { opacity: 0.6; }
.guest-shop-modal__actions #guestCashAbandonOrderBtn {
    border-color: rgba(239,68,68, 1);
    background: rgba(239,68,68, 1);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.guest-shop-modal__actions #guestCashAbandonOrderBtn:hover:not(:disabled),
.guest-shop-modal__actions #guestCashAbandonOrderBtn:focus-visible {
    border-color: #dc2626;
    background: #dc2626;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.guest-shop-modal__actions #guestCashAbandonOrderBtn:active:not(:disabled) {
    transform: translateY(0);
    background: #b91c1c;
}


.guest-shop-modal__qr {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}
.guest-shop-modal__qr-status {
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(226, 232, 240, 0.82);
}
.guest-shop-modal__qr-status[hidden] { display: none; }
.guest-shop-modal__qr-status.is-success {
    border-color: rgba(34, 197, 94, 0.28);
    background: rgba(34, 197, 94, 0.12);
    color: #bbf7d0;
}
.guest-shop-modal__qr-status.is-error {
    border-color: rgba(248, 113, 113, 0.28);
    background: rgba(248, 113, 113, 0.12);
    color: #fecaca;
}
.guest-shop-modal__qr-card {
    position: relative;
    width: 100%;
    min-height: 286px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 16px 40px rgba(0, 0, 0, 0.22);
}
.guest-shop-modal__qr-card.is-timeout {
    border-color: rgba(248, 113, 113, 0.26);
    background:
        radial-gradient(circle at 30% 22%, rgba(96, 165, 250, 0.16), transparent 34%),
        linear-gradient(180deg, rgba(30, 41, 59, 0.74), rgba(15, 23, 42, 0.9));
}
.guest-shop-modal__qr-card.is-success {
    min-height: 220px;
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}
.guest-shop-modal__qr-image {
    display: block;
    width: min(100%, 260px);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    border-radius: 16px;
    padding: 10px;
}
.guest-shop-modal__qr-image[hidden],
.guest-shop-modal__qr-fallback[hidden],
.guest-shop-modal__qr-success[hidden],
.guest-shop-modal__qr-timeout[hidden],
.guest-shop-modal__qr-open[hidden] {
    display: none;
}
.guest-shop-modal__qr-fallback {
    max-width: 320px;
    padding: 18px;
    text-align: center;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(226, 232, 240, 0.72);
}
.guest-shop-modal__qr-success,
.guest-shop-modal__qr-timeout {
    width: 100%;
    min-height: 220px;
    display: grid;
    align-content: center;
    justify-items: center;
    text-align: center;
    gap: 12px;
    padding: 24px 20px;
}
.guest-shop-modal__qr-success-mark {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #dcffe3;
    background: linear-gradient(135deg, rgba(89, 195, 106, 0.2), rgba(63, 185, 86, 0.28));
    box-shadow:
        0 0 0 10px rgba(89, 195, 106, 0.08),
        0 18px 36px rgba(18, 90, 31, 0.18);
}
.guest-shop-modal__qr-success-mark svg {
    width: 42px;
    height: 42px;
}
.guest-shop-modal__qr-success-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
}
.guest-shop-modal__qr-timeout-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #fecaca;
}
.guest-shop-modal__qr-timeout p {
    margin: 0;
    max-width: 280px;
    color: rgba(226, 232, 240, 0.72);
    font-size: 13px;
    line-height: 1.7;
}
.guest-shop-modal__qr-open {
    width: 100%;
    min-height: 46px;
}


html[data-theme="dark"] body.shop-page .guest-shop-modal__field input:focus,
html[data-theme="dark"] body.shop-page .guest-shop-modal__field input:focus-visible,
html[data-theme="dark"] body.shop-page .guest-shop-modal__field select:focus,
html[data-theme="dark"] body.shop-page .guest-shop-modal__field select:focus-visible {
    border-color: #7eb8ef !important;
    outline: none;
    box-shadow: none !important;
}

html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__content {
    background: rgba(255, 255, 255, 0.96) !important;
    color: var(--shop-light-text);
    border: 1px solid var(--shop-light-border) !important;
    box-shadow:
        0 34px 80px rgba(15, 23, 42, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__summary,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__panel { border-color: rgba(148,163,184,.2); background: rgba(248,250,252,.82); }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__state {
    border-color: rgba(148,163,184,.22);
    background: rgba(248,250,252,.86);
    color: #475569;
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__field { color: #334155; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__field input,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__field select {
    background: #fff !important;
    border-color: rgba(148,163,184,.45) !important;
    color: #172033 !important;
    -webkit-text-fill-color: #172033 !important;
    caret-color: #172033 !important;
    opacity: 1 !important;
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__field input:-webkit-autofill,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__field input:-webkit-autofill:hover,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__field input:-webkit-autofill:focus,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__field input:-webkit-autofill:active {
    -webkit-text-fill-color: #172033 !important;
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    background-color: #fff !important;
    transition: background-color 9999s ease-out 0s !important;
}

html[data-theme="dark"] body.shop-page .guest-shop-modal__field input:-webkit-autofill,
html[data-theme="dark"] body.shop-page .guest-shop-modal__field input:-webkit-autofill:hover,
html[data-theme="dark"] body.shop-page .guest-shop-modal__field input:-webkit-autofill:focus,
html[data-theme="dark"] body.shop-page .guest-shop-modal__field input:-webkit-autofill:active {
    -webkit-text-fill-color: rgba(226,232,240,.92) !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(15,23,42,.55) inset !important;
    box-shadow: 0 0 0 1000px rgba(15,23,42,.55) inset !important;
    background-color: rgba(15,23,42,.55) !important;
    transition: background-color 9999s ease-out 0s !important;
}

html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__field input::placeholder {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
    opacity: 1;
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__field input:focus,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__field input:focus-visible,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__field select:focus,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__field select:focus-visible {
    border-color: #6b9ece !important;
    outline: none;
    box-shadow: none !important;
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__field input:disabled,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__field select:disabled {
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__payment-option {
    border-color: rgba(148,163,184,.32);
    background: #fff;
    color: #1e293b;
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__payment-option:hover:not(:disabled) {
    border-color: rgba(100,116,139,.56);
    background: #f8fafc;
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__payment-option[aria-checked="true"] {
    border-color: #6b9ece;
    background: rgba(107,158,206,.08);
    box-shadow: none;
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__payment-option:focus-visible {
    outline-color: rgba(37,99,235,.62);
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__payment-option:disabled {
    background: #f1f5f9;
    color: #64748b;
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__payment-icon { background: #dbeafe; color: #2563eb; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__payment-option[data-channel="alipay"] .guest-shop-modal__payment-icon { background: #e8f1ff; color: #1677ff; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__payment-option[data-channel="wxpay"] .guest-shop-modal__payment-icon { background: #dcfce7; color: #16a34a; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__payment-option[data-channel="qqpay"] .guest-shop-modal__payment-icon { background: #e0e7ff; color: #4f46e5; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__payment-option[data-provider="nowpayments"] .guest-shop-modal__payment-icon { background: #e1f5ed; color: #158f68; }

/* Keep payment choices readable on the dark modal. The light-theme rules above
   intentionally keep their paper-white treatment; this explicit selector also
   wins over any shared button styles loaded later on the shop page. */
html[data-theme="dark"] body.shop-page .guest-shop-modal__payment-option {
    border-color: rgba(148,163,184,.28);
    background: rgba(30,41,59,.88);
    color: #e2e8f0;
}
html[data-theme="dark"] body.shop-page .guest-shop-modal__payment-option:hover:not(:disabled) {
    border-color: rgba(148,163,184,.5);
    background: rgba(51,65,85,.96);
}
html[data-theme="dark"] body.shop-page .guest-shop-modal__payment-option[aria-checked="true"] {
    border-color: #7eb8ef;
    background: rgba(126,184,239,.12);
    box-shadow: none;
}
html[data-theme="dark"] body.shop-page .guest-shop-modal__payment-option:focus-visible { outline-color: rgba(125,211,252,.5); }
html[data-theme="dark"] body.shop-page .guest-shop-modal__payment-option:disabled {
    background: rgba(30,41,59,.55);
    color: #94a3b8;
}
html[data-theme="dark"] body.shop-page .guest-shop-modal__payment-icon { background: rgba(96,165,250,.18); color: #bfdbfe; }
/* Keep the Alipay mark identical across themes. A translucent blue surface
   blends into the dark modal and shifts the official mark toward navy. */
html[data-theme="dark"] body.shop-page .guest-shop-modal__payment-option[data-channel="alipay"] .guest-shop-modal__payment-icon {
    background: #e8f1ff;
    color: #1677ff;
    filter: none;
    -webkit-text-fill-color: #1677ff;
}
html[data-theme="dark"] body.shop-page .guest-shop-modal__payment-option[data-channel="alipay"] .guest-shop-modal__payment-icon > i {
    color: #1677ff;
    filter: none;
    -webkit-text-fill-color: #1677ff;
}
html[data-theme="dark"] body.shop-page .guest-shop-modal__payment-option[data-channel="wxpay"] .guest-shop-modal__payment-icon { background: rgba(74,222,128,.16); color: #86efac; }
html[data-theme="dark"] body.shop-page .guest-shop-modal__payment-option[data-channel="qqpay"] .guest-shop-modal__payment-icon { background: rgba(129,140,248,.18); color: #c7d2fe; }
html[data-theme="dark"] body.shop-page .guest-shop-modal__payment-option[data-provider="nowpayments"] .guest-shop-modal__payment-icon { background: rgba(52,211,153,.16); color: #a7f3d0; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__state[data-state="error"],
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__state[data-state="manual_review"] {
    border-color: rgba(220,38,38,.24);
    background: #fef2f2;
    color: #b91c1c;
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__password-actions .guest-shop-modal__copy-btn { border-color: rgba(148,163,184,.35); background: #fff; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__pw-checks { color: rgba(51,65,85,.66); }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__pw-checks li.is-pass { color: #15803d; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__pw-note { color: #b45309; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__orders-link { color: #2563eb; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__qty-btn { border-color: rgba(148,163,184,.35); background: #fff; color: var(--shop-light-text); }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__qty-control input:disabled { background: rgba(241,245,249,.9); }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__field.is-invalid input { border-color: #dc2626; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__hint.is-error { color: #b91c1c; }

/* Dujiao alignment, light theme: the new rail / breakdown / crypto / fulfillment
   nodes need the same paper treatment the existing guest modal cards already get,
   otherwise they stay dark-on-white. */
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__subtitle,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__amount-label,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__crypto-label,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__delivery-fact { color: rgba(51,65,85,.72); }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__steps,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__amount { border-color: rgba(148,163,184,.2); background: rgba(248,250,252,.82); }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__amount-value { color: #0f172a; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__amount-rows .guest-shop-modal__summary-row strong { color: #334155; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__amount-value.is-amount-placeholder,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__amount-rows .guest-shop-modal__summary-row strong.is-amount-placeholder,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__amount-value.is-amount-revealing .guest-amount-digits::before,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__amount-rows .guest-shop-modal__summary-row strong.is-amount-revealing .guest-amount-digits::before { color: rgba(71,85,105,.56); }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__row--discount strong { color: #dc2626; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__amount-footer { border-top-color: rgba(148,163,184,.24); }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__step-index { border: 0; color: transparent; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__step.is-upcoming .guest-shop-modal__step-index { background: #cbd5e1; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__step-label { color: #64748b; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__step.is-done .guest-shop-modal__step-label,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__step.is-current .guest-shop-modal__step-label { color: #0f172a; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__step + .guest-shop-modal__step::before { background: rgba(148,163,184,.4); }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__step.is-done::before,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__step.is-current::before { background: #53c7df; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__crypto-list { border-color: rgba(148,163,184,.24); background: rgba(255,255,255,.9); }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__crypto-row { border-bottom-color: rgba(148,163,184,.22); }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__crypto-value { color: #0f172a; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__crypto-address { background: rgba(241,245,249,.9); }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__crypto-copy {
    border-color: rgba(148,163,184,.3);
    background: rgba(0,0,0,.04);
    color: #475569;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__crypto-copy:hover,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__crypto-copy:focus-visible {
    border-color: rgba(59,130,246,.5);
    background: rgba(59,130,246,.1);
    color: #1d4ed8;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__crypto-copy:has(.fa-check),
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__crypto-copy.is-copied {
    border-color: rgba(34,197,94,.5) !important;
    background: rgba(34,197,94,.14) !important;
    color: #16a34a !important;
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__copy-feedback { color: #047857; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__crypto-address-wrap .guest-shop-modal__copy-feedback {
    background: #ffffff;
    color: #047857;
    border-color: rgba(16,185,129,.35);
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__delivery-fact strong { color: #334155; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__delivery-copy.is-copied {
    border-color: rgba(16,185,129,.4);
    background: rgba(209,250,229,.7);
    color: #047857;
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__delivery-content {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(125,169,215,.24);
    color: #172b4d;
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__delivery-item {
    border-color: rgba(148,163,184,.22);
    background: rgba(255,255,255,.82);
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__delivery-group + .guest-shop-modal__delivery-group { border-top-color: rgba(148,163,184,.24); }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__delivery-group-product { color: #172b4d; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__delivery-group-sku { color: #52708f; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__delivery-item-copy {
    border-color: rgba(49,80,111,.18);
    background: #fff;
    color: #31506f;
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__delivery-item-copy:hover,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__delivery-item-copy:focus-visible,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__delivery-item-copy.is-copied {
    border-color: rgba(5,150,105,.35);
    background: #ecfdf5;
    color: #047857;
}

/* The guest delivery panel reuses the wallet success-item markup. Its base
   rules are dark-first, so explicitly restyle the shared cards and controls in
   the light modal to keep labels, copy icons, guidance pills, and card content
   readable against the paper background. */
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item {
    background: #ffffff;
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__surface:hover,
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item.is-content-expanded .shop-success-item__surface { background: rgba(241, 245, 249, 0.72); }
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__title { color: #172033; }
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__thumb { background: #f1f5f9; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(148, 163, 184, 0.12); }
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__icon { background: #fff7ed; border-color: rgba(245, 158, 11, 0.24); color: #d97706; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9); }
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__reveal-code,
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__submeta,
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__time { color: #64748b; }
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__reveal-code:hover,
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__reveal-code:focus-visible { color: #172033; text-shadow: none; }
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__copy-btn {
    border-color: rgba(49, 80, 111, 0.18);
    background: #f8fafc;
    color: #31506f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__copy-btn:hover,
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__copy-btn:focus-visible { border-color: rgba(49, 80, 111, 0.32); background: #eef5fb; color: #1e3a5f; box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08); }
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__tag { color: #475569; border-color: rgba(148, 163, 184, 0.3); background: #f8fafc; }
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__tag--notice,
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__tag--usage {
    height: var(--shop-success-toolbar-height, 30px);
    min-height: var(--shop-success-toolbar-height, 30px);
    flex: 0 0 auto;
    align-self: center;
    padding: 0 11px;
    border-radius: 999px;
    font-size: var(--shop-success-pill-font-size, 10px);
    line-height: 1;
    font-weight: 500;
    letter-spacing: -0.02em;
    white-space: nowrap;
    background: transparent;
}
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__tag-label {
    display: inline-block;
    font-size: var(--shop-success-pill-font-size, 10px);
    line-height: 1;
    font-weight: inherit;
    letter-spacing: 0;
    transform: none;
    white-space: nowrap;
}
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__tag--notice { border-color: rgba(245, 158, 11, 0.3); color: #92400e; }
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__tag--usage { border-color: rgba(16, 185, 129, 0.28); color: #047857; }
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__tag--notice:hover,
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__tag--notice.is-active { border-color: rgba(245, 158, 11, 0.42); background: #fff7ed; }
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__tag--usage:hover,
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__tag--usage.is-active { border-color: rgba(16, 185, 129, 0.38); background: #ecfdf5; }
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__content-panel { background: #f8fbff; border-color: rgba(125, 169, 215, 0.24); color: #1e293b; }
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__content-card,
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__content-card[data-shop-copy-content]:hover { background: #ffffff; border-color: rgba(148, 163, 184, 0.28); color: #1e293b; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 3px 10px rgba(15, 23, 42, 0.04); }
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__content-card .item-text,
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__content-card .item-text * { color: #1e293b; -webkit-text-fill-color: #1e293b; }
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__notes-panel,
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-success-item__usage-panel { background: #ffffff; border-color: rgba(148, 163, 184, 0.28); color: #1e293b; }
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-guidance-panel-copy { border-color: rgba(49, 80, 111, 0.16); background: #f8fafc; color: #31506f; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9); }
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-guidance-panel-copy:hover,
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-guidance-panel-copy:focus-visible { border-color: rgba(49, 80, 111, 0.3); background: #eef5fb; color: #1e3a5f; box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08); }
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .shop-guidance-panel-content { color: #1e293b; }

/* Guest delivery cards lift on hover/expand without a pressed-looking shadow.
   The shared wallet success card keeps its richer treatment elsewhere. */
#guestCashPurchaseModal .shop-success-item,
#guestCashPurchaseModal .shop-success-item:hover,
#guestCashPurchaseModal .shop-success-item.is-content-expanded {
    box-shadow: none;
}
#guestCashPurchaseModal .shop-success-item__surface:hover,
#guestCashPurchaseModal .shop-success-item__surface:active,
#guestCashPurchaseModal .shop-success-item.is-content-expanded .shop-success-item__surface {
    transform: translateY(-1px);
    box-shadow: none;
}

/* The expanded card is already the affordance; hide the collapsed-state helper
   so "点击查看卡密" is not repeated after the content is visible. */
#guestCashPurchaseModal .shop-success-item.is-content-expanded .shop-success-item__reveal-code .shop-success-item__submeta-label {
    display: none;
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__summary-row span,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__hint { color: rgba(51,65,85,.72); }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__actions {
    border-top-color: transparent;
    background: transparent;
    box-shadow: none;
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__actions #guestCashCheckStatusBtn,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__actions #guestCashDiscardIntentBtn {
    border-color: rgba(148, 163, 184, 0.35);
    background: #ffffff;
    color: #334155;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__actions #guestCashCheckStatusBtn:hover:not(:disabled),
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__actions #guestCashCheckStatusBtn:focus-visible,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__actions #guestCashDiscardIntentBtn:hover:not(:disabled),
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__actions #guestCashDiscardIntentBtn:focus-visible {
    border-color: rgba(100, 116, 139, 0.5);
    background: #f8fafc;
    color: #0f172a;
    transform: translateY(-1px);
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__actions #guestCashAbandonOrderBtn {
    border-color: rgba(220,38,38,.28);
    background: #fef2f2;
    color: #b91c1c;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__actions #guestCashAbandonOrderBtn:hover:not(:disabled),
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__actions #guestCashAbandonOrderBtn:focus-visible {
    border-color: rgba(220,38,38,.5);
    background: #fee2e2;
    color: #991b1b;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.1);
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__qr-status {
    background: rgba(248, 250, 252, 0.94);
    border-color: rgba(148, 163, 184, 0.2);
    color: #334155;
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__qr-status.is-success {
    background: rgba(236, 253, 245, 0.9);
    border-color: rgba(16, 185, 129, 0.22);
    color: #047857;
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__qr-status.is-error {
    background: rgba(254, 242, 242, 0.9);
    border-color: rgba(248, 113, 113, 0.22);
    color: #dc2626;
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__state-countdown strong { color: #334155; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__state-countdown.is-warning strong { color: #b45309; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__state-countdown.is-expired strong { color: #dc2626; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__qr-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(243, 247, 252, 0.96) 100%);
    border-color: rgba(148, 163, 184, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        0 14px 30px rgba(148, 163, 184, 0.12);
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__qr-card.is-timeout {
    background:
        radial-gradient(circle at 30% 22%, rgba(147, 197, 253, 0.24), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
    border-color: rgba(251, 113, 133, 0.2);
}
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__qr-fallback,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__qr-timeout p { color: rgba(51, 65, 85, 0.72); }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__qr-success-title { color: #0f172a; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__qr-timeout-title { color: #dc2626; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__qr-success-mark {
    color: #047857;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(5, 150, 105, 0.22));
    box-shadow:
        0 0 0 10px rgba(16, 185, 129, 0.08),
        0 18px 36px rgba(15, 118, 110, 0.12);
}


@media (max-width: 600px) {
    .guest-shop-modal { align-items: flex-end; padding: 0; }
    .guest-shop-modal__content {
        width: calc(100% - 40px) !important;
        max-width: 620px !important;
        max-height: min(760px, calc(100dvh - 112px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))) !important;
        border-radius: 30px !important;
        padding: 24px 20px calc(20px + env(safe-area-inset-bottom)) !important;
        scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
    .guest-shop-modal__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .guest-shop-modal__actions .shop-btn { width: 100%; }
    .guest-shop-modal__actions .shop-btn { min-width: 0; padding-inline: 10px; font-size: 13px; white-space: nowrap; }
    .guest-shop-modal__qr-card { min-height: 240px; }
    .guest-shop-modal__qr-image { width: min(100%, 220px); }
    .guest-shop-modal__state-countdown strong { font-size: 13px; }
    .guest-shop-modal__qr-success-title { font-size: 22px; }
    /* Keep the phase labels visible on mobile so each colored dot remains
       self-explanatory without relying on color alone. */
    .guest-shop-modal__steps { padding: 10px 12px; }
    .guest-shop-modal__step { gap: 8px; }
    .guest-shop-modal__step-label { display: block; font-size: 11px; }
    .guest-shop-modal__step-index { width: 14px; height: 14px; }
    .guest-shop-modal__amount-value { font-size: 24px; }
    .guest-shop-modal__delivery-actions { margin-top: 10px; }
}

/* Light theme phase connector accents mirror the colored phase circles. */
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__step[data-step-key="configure"] .guest-shop-modal__step-index,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__step[data-step-key="payment"] .guest-shop-modal__step-index,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__step[data-step-key="delivery"] .guest-shop-modal__step-index { border: 0; color: transparent; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__step[data-step-key="configure"].is-done::before,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__step[data-step-key="configure"].is-current::before { background: #53c7df; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__step[data-step-key="payment"].is-done::before,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__step[data-step-key="payment"].is-current::before { background: #a997e7; }
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__step[data-step-key="delivery"].is-done::before,
html:not([data-theme="dark"]) body.shop-page .guest-shop-modal__step[data-step-key="delivery"].is-current::before { background: #65cfac; }

#shopPurchaseModal .shop-purchase-stage-header {
    flex: 0 0 auto;
    margin-bottom: 18px !important;
}

#shopPurchaseModal .shop-purchase-scroll {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 16px;
    margin: 0 calc(clamp(28px, 4vw, 46px) * -1);
    padding: 0 clamp(28px, 4vw, 46px) 18px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

#shopPurchaseModal .shop-purchase-scroll::-webkit-scrollbar {
    width: 6px;
}

#shopPurchaseModal .shop-purchase-scroll::-webkit-scrollbar-track {
    background: transparent;
}

#shopPurchaseModal .shop-purchase-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.28);
}

#shopPurchaseModal .shop-purchase-dock {
    flex: 0 0 auto;
    display: grid;
    gap: 14px;
    margin: 0 calc(clamp(28px, 4vw, 46px) * -1);
    padding: 16px clamp(28px, 4vw, 46px) calc(22px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    background:
        linear-gradient(180deg, rgba(8, 12, 18, 0.84), rgba(8, 12, 18, 0.98));
    box-shadow: 0 -18px 34px rgba(8, 12, 18, 0.18);
}

#shopPurchaseModal .shop-purchase-stage-summary {
    margin: 0 !important;
    padding: 0 !important;
}

#shopPurchaseModal .shop-purchase-stage-action {
    margin: 0 !important;
    padding: 0 !important;
}

#shopPurchaseModal #purchaseStageTitle {
    max-width: min(100%, 660px);
    margin-inline: auto;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.5px;
    text-align: center;
    overflow-wrap: anywhere;
}

#shopPurchaseModal #modalProductName[hidden] {
    display: none !important;
}

#shopPurchaseModal .shop-purchase-stage-sku {
    gap: 10px;
    margin: 0 !important;
}

#shopPurchaseModal .shop-sku-selector__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

#shopPurchaseModal .shop-sku-selector__label {
    margin: 0 !important;
    font-size: 13px;
    font-weight: 800;
}

#shopPurchaseModal .shop-sku-selector__current {
    min-width: 0;
    color: rgba(203, 213, 225, 0.72);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#shopPurchaseModal .shop-sku-selector__current-value {
    color: #22c55e;
    font-weight: 900;
}

#shopPurchaseModal .shop-sku-selector__current.is-low-stock .shop-sku-selector__current-value {
    color: #ef4444;
}

#shopPurchaseModal .shop-sku-selector__current.is-normal-stock .shop-sku-selector__current-value {
    color: #22c55e;
}

#shopPurchaseModal .shop-sku-selector__options--pills,
#shopPurchaseModal .shop-sku-spec-group__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    isolation: isolate;
}

#shopPurchaseModal .shop-sku-selector__options--pills {
    max-height: 148px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
}

#shopPurchaseModal .shop-sku-option--pill,
#shopPurchaseModal .shop-sku-spec-option {
    min-width: 0;
    min-height: 38px;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(248, 250, 252, 0.9);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    cursor: pointer;
    box-shadow: none;
    transform: translateZ(0);
    transform-origin: center;
    touch-action: manipulation;
    transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

#shopPurchaseModal .shop-sku-option--pill {
    flex-direction: row;
    text-align: center;
}

#shopPurchaseModal .shop-sku-option--pill .shop-sku-option__name {
    font-size: inherit;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#shopPurchaseModal .shop-sku-option--pill:hover:not(:disabled),
#shopPurchaseModal .shop-sku-spec-option:hover:not(:disabled) {
    border-color: rgba(134, 239, 172, 0.4);
    background: rgba(34, 197, 94, 0.12);
}

#shopPurchaseModal .shop-sku-option--pill.is-selected,
#shopPurchaseModal .shop-sku-spec-option.is-selected {
    border-color: rgba(134, 239, 172, 0.72);
    background: rgba(34, 197, 94, 0.16);
    color: #ecfdf5;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

#shopPurchaseModal .shop-sku-option--pill.is-sold-out:not(.is-disabled):not(:disabled),
#shopPurchaseModal .shop-sku-spec-option.is-sold-out:not(.is-disabled):not(:disabled) {
    border-color: rgba(var(--shop-sold-out-soft-red-rgb), 0.42);
    background: rgba(var(--shop-sold-out-soft-red-rgb), 0.1);
    color: #fecaca;
    cursor: pointer;
    opacity: 1;
}

#shopPurchaseModal .shop-sku-option--pill.is-sold-out.is-selected:not(.is-disabled):not(:disabled),
#shopPurchaseModal .shop-sku-spec-option.is-sold-out.is-selected:not(.is-disabled):not(:disabled) {
    border-color: rgba(var(--shop-sold-out-soft-red-rgb), 0.72);
    background: rgba(var(--shop-sold-out-soft-red-rgb), 0.16);
    color: #fff1f2;
    box-shadow: 0 0 0 3px rgba(var(--shop-sold-out-soft-red-rgb), 0.12);
}

#shopPurchaseModal .shop-sku-option--pill.is-disabled,
#shopPurchaseModal .shop-sku-option--pill:disabled,
#shopPurchaseModal .shop-sku-spec-option.is-disabled,
#shopPurchaseModal .shop-sku-spec-option:disabled {
    cursor: not-allowed;
    opacity: 0.42;
    transform: none;
}

#shopPurchaseModal .shop-sku-selector__groups {
    display: grid;
    gap: 12px;
}

#shopPurchaseModal .shop-sku-spec-group {
    display: grid;
    grid-template-columns: minmax(56px, max-content) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

#shopPurchaseModal .shop-sku-spec-group__label {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    color: rgba(203, 213, 225, 0.76);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

#shopPurchaseModal .shop-quantity-wrapper,
#shopPurchaseModal .shop-purchase-discount,
#shopPurchaseModal #purchaseNotesBox,
#shopPurchaseModal #purchaseUsageBox {
    margin: 0 !important;
}

#shopPurchaseModal .shop-quantity-control {
    justify-content: center;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock {
    border-top-color: rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.98));
    box-shadow: 0 -18px 34px rgba(15, 23, 42, 0.06);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-sku-selector__current,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-sku-spec-group__label {
    color: rgba(23, 32, 51, 0.6);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-sku-option--pill,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-sku-spec-option {
    border-color: var(--shop-light-border);
    background: #ffffff;
    color: var(--shop-light-text);
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.035);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-sku-option--pill:hover:not(:disabled),
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-sku-spec-option:hover:not(:disabled) {
    background: rgba(235, 253, 244, 0.9);
    border-color: rgba(24, 128, 78, 0.28);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-sku-option--pill.is-selected,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-sku-spec-option.is-selected {
    border-color: rgba(24, 128, 78, 0.48);
    background: rgba(235, 253, 244, 0.96);
    color: #064e3b;
    box-shadow:
        0 0 0 3px rgba(34, 197, 94, 0.12),
        0 5px 14px rgba(15, 23, 42, 0.045);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-sku-option--pill.is-sold-out:not(.is-disabled):not(:disabled),
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-sku-spec-option.is-sold-out:not(.is-disabled):not(:disabled) {
    border-color: rgba(var(--shop-sold-out-soft-red-rgb), 0.32);
    background: rgba(var(--shop-sold-out-soft-red-rgb), 0.08);
    color: var(--shop-sold-out-soft-red-deep);
    box-shadow: 0 3px 8px rgba(var(--shop-sold-out-soft-red-deep-rgb), 0.035);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-sku-option--pill.is-sold-out.is-selected:not(.is-disabled):not(:disabled),
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-sku-spec-option.is-sold-out.is-selected:not(.is-disabled):not(:disabled) {
    border-color: rgba(var(--shop-sold-out-soft-red-rgb), 0.48);
    background: rgba(var(--shop-sold-out-soft-red-rgb), 0.12);
    color: var(--shop-sold-out-soft-red-deep);
    box-shadow:
        0 0 0 3px rgba(var(--shop-sold-out-soft-red-rgb), 0.12),
        0 5px 14px rgba(var(--shop-sold-out-soft-red-deep-rgb), 0.045);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-sku-option--pill.is-disabled,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-sku-option--pill:disabled,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-sku-spec-option.is-disabled,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-sku-spec-option:disabled {
    border-color: rgba(148, 163, 184, 0.2);
    background: rgba(241, 245, 249, 0.72);
    color: rgba(71, 85, 105, 0.62);
    box-shadow: none;
}

@media (min-width: 769px) {
    #shopPurchaseModal .shop-purchase-actions {
        justify-content: space-between;
    }

    #shopPurchaseModal [data-purchase-step="configure"] #purchaseAddToCartBtn,
    #shopPurchaseModal [data-purchase-step="configure"] #nextPurchaseStepBtn {
        flex: 0 0 min(220px, 32%);
        min-height: 48px;
    }
}

@media (max-width: 768px) {
    #shopPurchaseModal .modal-content {
        width: min(calc(100% - 28px), 620px) !important;
        max-height: min(760px, calc(100dvh - 96px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))) !important;
        overflow: hidden !important;
        padding: 20px 16px 0 !important;
    }

    #shopPurchaseModal .shop-purchase-scroll {
        gap: 13px;
        margin: 0 -16px;
        padding: 0 16px 14px;
    }

    #shopPurchaseModal .shop-purchase-dock {
        gap: 12px;
        margin: 0 -16px;
        padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    }

    #shopPurchaseModal .shop-sku-selector__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    #shopPurchaseModal .shop-sku-selector__current {
        max-width: 100%;
        text-align: left;
    }

    #shopPurchaseModal .shop-sku-selector__options--pills {
        max-height: 124px;
        gap: 7px;
    }

    #shopPurchaseModal .shop-sku-option--pill,
    #shopPurchaseModal .shop-sku-spec-option {
        min-height: 34px;
        padding: 7px 10px;
        font-size: 12px;
    }

    #shopPurchaseModal .shop-sku-spec-group {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    #shopPurchaseModal .shop-sku-spec-group__label {
        min-height: auto;
    }
}

/* 20260524_SHOP_PURCHASE_SKU_COMPACT_2 */
#shopPurchaseModal .shop-sku-selector__options--pills {
    margin-top: 0;
    padding: 6px 6px 8px;
    scroll-padding-top: 8px;
    scroll-padding-inline: 6px;
}

#shopPurchaseModal .shop-sku-spec-group__options {
    padding: 6px 6px 7px;
}

#shopPurchaseModal .shop-purchase-stage-quantity {
    margin-top: -2px !important;
}

#shopPurchaseModal .shop-quantity-control {
    gap: 8px;
}

#shopPurchaseModal .shop-qty-btn {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
}

#shopPurchaseModal #purchaseQuantity.shop-qty-input {
    width: 88px;
    min-width: 88px;
    height: 42px;
    margin: 0 6px;
    font-size: 1.08rem;
    line-height: 40px;
}

#shopPurchaseModal .shop-purchase-discount__label {
    margin-bottom: 6px;
}

#shopPurchaseModal .shop-purchase-discount__input-wrap {
    min-height: 46px;
    padding: 3px;
    border-radius: 14px;
}

#shopPurchaseModal .shop-purchase-discount__input {
    height: 38px;
    padding: 0 13px;
    border-radius: 12px;
    font-size: 14px;
}

#shopPurchaseModal .shop-purchase-discount__action {
    min-width: 78px;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 11px;
}

#shopPurchaseModal .shop-purchase-discount__feedback {
    margin-top: 8px;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-quantity-control {
    gap: 8px;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-qty-btn {
    width: 38px;
    height: 38px;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseQuantity.shop-qty-input {
    width: 88px;
    min-width: 88px;
    height: 42px;
    margin: 0 6px;
    font-size: 1.08rem;
    line-height: 40px;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseDiscountCode.shop-purchase-discount__input {
    height: 38px;
    padding: 0 13px;
    border-radius: 12px;
    font-size: 14px;
}

@media (max-width: 768px) {
    #shopPurchaseModal .shop-purchase-scroll {
        gap: 10px;
        padding-bottom: 12px;
    }

    #shopPurchaseModal .shop-sku-selector__header {
        align-items: baseline;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    #shopPurchaseModal .shop-sku-selector__label {
        flex: 1 1 auto;
        min-width: 0;
        text-align: left;
    }

    #shopPurchaseModal .shop-sku-selector__current {
        flex: 0 0 auto;
        max-width: 50%;
        margin-left: auto;
        text-align: right;
    }

    #shopPurchaseModal .shop-sku-selector__options--pills {
        max-height: 116px;
    }

    #shopPurchaseModal .shop-purchase-stage-quantity {
        margin-top: -4px !important;
    }

    #shopPurchaseModal .shop-purchase-dock .shop-purchase-stage-quantity {
        margin-top: 0 !important;
    }

    #shopPurchaseModal .shop-qty-btn,
    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-qty-btn {
        width: 36px;
        height: 36px;
        font-size: 1.14rem;
    }

    #shopPurchaseModal #purchaseQuantity.shop-qty-input,
    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseQuantity.shop-qty-input {
        width: 78px;
        min-width: 78px;
        height: 40px;
        margin: 0 5px;
        font-size: 1.04rem;
        line-height: 38px;
    }

    #shopPurchaseModal .shop-purchase-discount__label {
        margin-bottom: 5px;
    }

    #shopPurchaseModal .shop-purchase-discount__input-wrap {
        min-height: 44px;
        padding: 3px;
    }

    #shopPurchaseModal .shop-purchase-discount__input,
    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal #purchaseDiscountCode.shop-purchase-discount__input {
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
    }

    #shopPurchaseModal .shop-purchase-discount__action {
        min-width: 72px;
        min-height: 36px;
        padding: 0 12px;
        font-size: 12px;
    }
}

/* 20260524_SHOP_PURCHASE_SPLIT_2 */
#shopPurchaseModal .shop-purchase-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#shopPurchaseModal .shop-purchase-config-panel {
    display: grid;
    align-content: start;
    gap: 12px;
}

#shopPurchaseModal .shop-purchase-discount {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    overflow: hidden;
    contain: paint;
}

#shopPurchaseModal .shop-purchase-discount.is-animating {
    overflow: hidden;
}

#shopPurchaseModal .shop-purchase-discount__summary {
    box-sizing: border-box;
    height: 42px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    cursor: pointer;
    line-height: 1;
    list-style: none;
}

#shopPurchaseModal .shop-purchase-discount__summary::-webkit-details-marker {
    display: none;
}

#shopPurchaseModal .shop-purchase-discount__summary::after {
    content: "";
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: rgba(220, 252, 231, 0.92);
    background-color: rgba(52, 211, 153, 0.12);
    background-image:
        linear-gradient(currentColor, currentColor),
        linear-gradient(currentColor, currentColor);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 10px 2px, 2px 10px;
    transform: translateY(5px);
    transition:
        transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
        background-color 180ms ease,
        color 180ms ease;
}

#shopPurchaseModal .shop-purchase-discount.is-expanded .shop-purchase-discount__summary::after {
    transform: translateY(5px) rotate(45deg);
}

#shopPurchaseModal .shop-purchase-discount__label {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    margin: 0 !important;
    padding: 0 !important;
    color: rgba(203, 213, 225, 0.82);
    font-size: 12px;
    font-weight: 800;
    line-height: 20px;
    letter-spacing: 0;
    transform: translateY(3.5px);
}

#shopPurchaseModal .shop-purchase-discount__summary-meta {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    margin-left: auto;
    color: rgba(203, 213, 225, 0.48);
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    transform: translateY(3.5px);
}

#shopPurchaseModal .shop-purchase-discount__fold {
    display: grid;
    grid-template-rows: 0fr;
    padding: 0 10px;
    opacity: 0;
    transform-origin: top;
    pointer-events: none;
    visibility: hidden;
    transition:
        grid-template-rows 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 140ms ease,
        visibility 0s linear 260ms;
    will-change: grid-template-rows, opacity;
}

#shopPurchaseModal .shop-purchase-discount.is-expanded .shop-purchase-discount__fold {
    grid-template-rows: 1fr;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition:
        grid-template-rows 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 140ms ease 35ms,
        visibility 0s linear;
}

#shopPurchaseModal .shop-purchase-discount__fold-inner {
    min-height: 0;
    overflow: hidden;
    display: grid;
    gap: 8px;
    padding-bottom: 10px;
    transform: translateY(-6px);
    transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

#shopPurchaseModal .shop-purchase-discount.is-expanded .shop-purchase-discount__fold-inner {
    transform: translateY(0);
}

#shopPurchaseModal .shop-purchase-stage-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: start;
}

#shopPurchaseModal .shop-purchase-dock .shop-purchase-stage-quantity {
    display: flex;
    justify-content: center;
    margin: 0 !important;
}

/* Author display:flex beats the UA [hidden] rule, so a logged-out guest
   checkout kept showing the points quantity stepper. Guest orders stay at
   one unit; the hidden attribute must actually remove the control. */
#shopPurchaseModal .shop-purchase-stage-quantity[hidden],
#shopPurchaseModal .shop-purchase-dock .shop-purchase-stage-quantity[hidden] {
    display: none !important;
}

#shopPurchaseModal .shop-purchase-dock .shop-quantity-control {
    justify-content: center;
}

#shopPurchaseModal .shop-purchase-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-discount {
    border-color: rgba(15, 23, 42, 0.08);
    background: rgba(248, 250, 252, 0.78);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-discount__label {
    color: rgba(23, 32, 51, 0.68);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-discount__summary-meta {
    color: rgba(23, 32, 51, 0.42);
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-discount__summary::after {
    background-color: rgba(16, 185, 129, 0.1);
    color: #047857;
}

@media (min-width: 901px) {
    #shopPurchaseModal {
        --shop-purchase-guidance-card-max: min(48vh, 360px);
        --shop-purchase-guidance-card-bottom-inset: 30px;
    }

    #shopPurchaseModal.has-purchase-notes.has-purchase-usage #purchaseNotesBox,
    #shopPurchaseModal.has-purchase-notes.has-purchase-usage #purchaseUsageBox {
        display: contents;
    }

    #shopPurchaseModal.has-purchase-notes.has-purchase-usage #purchaseNotesBox > .shop-inline-style-attr-22,
    #shopPurchaseModal.has-purchase-notes.has-purchase-usage #purchaseUsageBox > .shop-inline-style-attr-22 {
        width: 100%;
        min-height: 40px;
        margin-bottom: 0;
    }

    #shopPurchaseModal.has-purchase-notes.has-purchase-usage #purchaseNotesBox > .shop-inline-style-attr-22 {
        order: 10;
    }

    #shopPurchaseModal.has-purchase-notes.has-purchase-usage #purchaseUsageBox > .shop-inline-style-attr-22 {
        order: 20;
    }

    #shopPurchaseModal #purchaseNotesBox:not(.is-expanded) > .shop-inline-style-attr-22,
    #shopPurchaseModal #purchaseUsageBox:not(.is-expanded) > .shop-inline-style-attr-22 {
        min-height: 40px;
        margin-bottom: 0;
    }

    #shopPurchaseModal.has-purchase-notes.has-purchase-usage #purchaseNotesCard.shop-success-usage-card,
    #shopPurchaseModal.has-purchase-notes.has-purchase-usage #purchaseUsageCard.shop-success-usage-card {
        order: 30;
        width: 100%;
    }

    #shopPurchaseModal .modal-content {
        width: min(calc(100% - 64px), 1040px) !important;
        max-width: 1040px !important;
        max-height: min(720px, calc(100dvh - 72px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))) !important;
        padding: clamp(26px, 2.7vw, 34px) clamp(28px, 3.4vw, 42px) clamp(24px, 2.8vw, 34px) !important;
    }

    #shopPurchaseModal .shop-purchase-stage-header {
        margin-bottom: 22px !important;
    }

    #shopPurchaseModal #purchaseStageTitle {
        max-width: 720px;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.6;
        letter-spacing: 0.5px;
    }

    #shopPurchaseModal .shop-purchase-body {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
        gap: clamp(22px, 3vw, 34px);
        align-items: start;
    }

    #shopPurchaseModal .shop-purchase-scroll {
        min-height: 0;
        max-height: min(500px, calc(100dvh - 210px));
        margin: 0;
        padding: 6px 2px 0 0;
        border: 0;
    }

    #shopPurchaseModal .shop-purchase-config-panel {
        gap: 12px;
    }

    #shopPurchaseModal .shop-sku-selector__options--pills {
        max-height: 112px;
    }

    #shopPurchaseModal .shop-purchase-dock {
        position: sticky;
        top: 0;
        align-self: start;
        min-height: 0;
        height: fit-content;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 14px;
        margin: 0;
        padding: 18px;
        border: 1px solid rgba(148, 163, 184, 0.16);
        border-radius: 24px;
        background:
            linear-gradient(180deg, rgba(15, 23, 42, 0.5), rgba(8, 12, 18, 0.86));
        box-shadow: none;
    }

    #shopPurchaseModal .shop-purchase-stage-summary {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 14px;
        align-items: end;
        padding-top: 16px !important;
        border-top: 1px solid rgba(148, 163, 184, 0.16);
    }

    #shopPurchaseModal .shop-purchase-dock .shop-purchase-discount {
        width: 100%;
        border-radius: 16px;
        background: rgba(148, 163, 184, 0.08);
    }

    #shopPurchaseModal .shop-purchase-dock .shop-purchase-discount__summary {
        height: 38px;
        min-height: 38px;
        padding: 0 12px;
        cursor: default;
        pointer-events: none !important;
    }

    #shopPurchaseModal .shop-purchase-dock .shop-purchase-discount__summary::after {
        content: none;
        display: none;
    }

    #shopPurchaseModal .shop-purchase-dock .shop-purchase-discount__fold,
    #shopPurchaseModal .shop-purchase-dock .shop-purchase-discount.is-expanded .shop-purchase-discount__fold {
        grid-template-rows: 1fr;
        padding: 0 8px;
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transition: none;
    }

    #shopPurchaseModal .shop-purchase-dock .shop-purchase-discount__fold-inner,
    #shopPurchaseModal .shop-purchase-dock .shop-purchase-discount.is-expanded .shop-purchase-discount__fold-inner {
        padding-bottom: 8px;
        transform: none;
        transition: none;
    }

    #shopPurchaseModal .shop-inline-style-attr-15 {
        text-align: left;
    }

    #shopPurchaseModal .shop-inline-style-attr-18 {
        padding-top: 0;
        border-top: 0;
        text-align: right;
    }

    #shopPurchaseModal .shop-purchase-dock .shop-purchase-stage-quantity {
        min-height: 58px;
        align-items: center;
        padding: 6px 0;
        border-radius: 18px;
        background: rgba(148, 163, 184, 0.08);
    }

    #shopPurchaseModal .shop-purchase-dock .shop-quantity-control {
        width: 100%;
        justify-content: center;
    }

    #shopPurchaseModal .shop-purchase-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 10px;
    }

    #shopPurchaseModal .shop-purchase-stage-action {
        margin-top: auto !important;
    }

    #shopPurchaseModal [data-purchase-step="configure"] #purchaseAddToCartBtn,
    #shopPurchaseModal [data-purchase-step="configure"] #nextPurchaseStepBtn {
        flex: none;
        width: 100%;
        min-height: 46px;
        min-width: 0;
    }

    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock {
        border-color: rgba(15, 23, 42, 0.08);
        background:
            linear-gradient(180deg, rgba(248, 250, 252, 0.88), rgba(255, 255, 255, 0.98));
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    }

    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock .shop-purchase-stage-quantity,
    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock .shop-purchase-discount {
        border: 1px solid rgba(15, 23, 42, 0.07);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    }

    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-stage-summary {
        border-top-color: rgba(15, 23, 42, 0.08);
    }

    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock .shop-purchase-stage-quantity {
        background: rgba(248, 250, 252, 0.86);
    }

    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock .shop-purchase-discount {
        background: rgba(248, 250, 252, 0.86);
    }

    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock .shop-qty-btn,
    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock #purchaseQuantity.shop-qty-input,
    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock .shop-purchase-discount__input-wrap,
    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock .shop-purchase-discount__action,
    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock #purchaseAddToCartBtn,
    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock #nextPurchaseStepBtn {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
        transform: none;
    }

    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock .shop-qty-btn:hover,
    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock #purchaseAddToCartBtn:hover,
    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock #nextPurchaseStepBtn:hover {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
        transform: none;
    }

    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock #nextPurchaseStepBtn {
        box-sizing: border-box;
        border: 1px solid rgba(5, 46, 22, 0.10);
        box-shadow:
            0 1px 2px rgba(34, 197, 94, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
    }

    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock #nextPurchaseStepBtn:hover:not(.shop-purchase-sold-out-btn) {
        background: linear-gradient(135deg, #43d675 0%, #20b957 100%);
        color: #031b0d;
        -webkit-text-fill-color: #031b0d;
        border-color: rgba(49, 80, 111, 0.22);
        box-shadow: none !important;
    }

}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock #nextPurchaseStepBtn.shop-purchase-sold-out-btn,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock #nextPurchaseStepBtn.shop-purchase-sold-out-btn:hover,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock #nextPurchaseStepBtn.shop-purchase-sold-out-btn:active,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock #nextPurchaseStepBtn.shop-purchase-sold-out-btn:focus-visible,
html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock #nextPurchaseStepBtn.shop-purchase-sold-out-btn:disabled,
body.shop-page #shopPurchaseModal #nextPurchaseStepBtn.shop-purchase-sold-out-btn,
body.shop-page #shopPurchaseModal #nextPurchaseStepBtn.shop-purchase-sold-out-btn:hover,
body.shop-page #shopPurchaseModal #nextPurchaseStepBtn.shop-purchase-sold-out-btn:active,
body.shop-page #shopPurchaseModal #nextPurchaseStepBtn.shop-purchase-sold-out-btn:focus-visible,
body.shop-page #shopPurchaseModal #nextPurchaseStepBtn.shop-purchase-sold-out-btn:disabled {
    background: linear-gradient(135deg, var(--shop-sold-out-soft-red) 0%, var(--shop-sold-out-soft-red-deep) 100%) !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: rgba(var(--shop-sold-out-soft-red-rgb), 0.32) !important;
    box-shadow:
        0 10px 20px rgba(var(--shop-sold-out-soft-red-deep-rgb), 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
    cursor: not-allowed !important;
    opacity: 1;
}

html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock #nextPurchaseStepBtn.shop-purchase-sold-out-btn *,
body.shop-page #shopPurchaseModal #nextPurchaseStepBtn.shop-purchase-sold-out-btn,
body.shop-page #shopPurchaseModal #nextPurchaseStepBtn.shop-purchase-sold-out-btn:hover,
body.shop-page #shopPurchaseModal #nextPurchaseStepBtn.shop-purchase-sold-out-btn:disabled,
body.shop-page #shopPurchaseModal #nextPurchaseStepBtn.shop-purchase-sold-out-btn * {
    cursor: not-allowed !important;
}

@media (max-width: 900px) {
    #shopPurchaseModal {
        --shop-purchase-guidance-bottom-reserve: clamp(124px, 18dvh, 158px);
        --shop-purchase-guidance-dock-gap: 16px;
        --shop-purchase-guidance-card-max: clamp(132px, 18dvh, 168px);
        --shop-purchase-guidance-card-bottom-inset: 32px;
    }

    #shopPurchaseModal .modal-content {
        padding-bottom: clamp(18px, 4vw, 24px) !important;
    }

    #shopPurchaseModal .shop-purchase-body {
        min-height: 0;
    }

    #shopPurchaseModal .shop-purchase-scroll {
        flex: 1 1 auto;
        margin: 0;
        padding: 0 0 22px;
        scroll-padding-bottom: var(--shop-purchase-guidance-bottom-reserve);
    }

    #shopPurchaseModal .shop-purchase-dock {
        margin: 0;
        padding: 0 0 calc(2px + env(safe-area-inset-bottom, 0px));
        border-top: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    html:not([data-theme="dark"]) body.shop-page #shopPurchaseModal .shop-purchase-dock {
        border-top-color: transparent;
        background: transparent !important;
        box-shadow: none !important;
    }

    #shopPurchaseModal #purchaseNotesBox.is-expanded,
    #shopPurchaseModal #purchaseUsageBox.is-expanded {
        margin-bottom: 0 !important;
    }

    #shopPurchaseModal .shop-purchase-body:has(#purchaseNotesBox.is-expanded) .shop-purchase-scroll,
    #shopPurchaseModal .shop-purchase-body:has(#purchaseUsageBox.is-expanded) .shop-purchase-scroll {
        flex: 1 1 auto;
        padding-bottom: var(--shop-purchase-guidance-dock-gap);
    }

    #shopPurchaseModal .shop-purchase-body:has(#purchaseNotesBox.is-expanded) .shop-purchase-config-panel,
    #shopPurchaseModal .shop-purchase-body:has(#purchaseUsageBox.is-expanded) .shop-purchase-config-panel {
        gap: 6px;
    }

    #shopPurchaseModal #purchaseNotesCard.shop-success-usage-card,
    #shopPurchaseModal #purchaseUsageCard.shop-success-usage-card {
        box-sizing: border-box;
        max-height: var(--shop-purchase-guidance-card-max);
        overflow: hidden;
        padding-bottom: 15px !important;
    }

    #shopPurchaseModal #purchaseNotesContent,
    #shopPurchaseModal #purchaseUsageContent {
        max-height: calc(var(--shop-purchase-guidance-card-max) - 30px);
        padding-bottom: var(--shop-purchase-guidance-card-bottom-inset) !important;
        scroll-padding-bottom: var(--shop-purchase-guidance-card-bottom-inset);
    }

    #shopPurchaseModal .shop-purchase-body:has(#purchaseNotesBox.is-expanded) .shop-purchase-dock,
    #shopPurchaseModal .shop-purchase-body:has(#purchaseUsageBox.is-expanded) .shop-purchase-dock {
        gap: 8px;
        padding-top: 2px;
    }

    #shopPurchaseModal .shop-purchase-body:has(#purchaseNotesBox.is-expanded) .shop-purchase-dock .shop-purchase-stage-quantity,
    #shopPurchaseModal .shop-purchase-body:has(#purchaseUsageBox.is-expanded) .shop-purchase-dock .shop-purchase-stage-quantity {
        min-height: 0;
        margin-top: 0 !important;
        padding-block: 0;
    }
}

/* 20260608_SHOP_PURCHASE_MOBILE_OPEN_VIEWPORT_STABLE_1 */
#shopPurchaseModal .modal-content {
    max-height: min(840px, calc(var(--shop-purchase-overlay-height, 100dvh) - 96px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))) !important;
}

@media (max-width: 768px) {
    #shopPurchaseModal .modal-content {
        max-height: min(760px, calc(var(--shop-purchase-overlay-height, 100dvh) - 96px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))) !important;
    }
}

/* 20260926_GUEST_MODAL_WIDTH_PARITY_4
   Keep the guest confirmation, payment, and delivery stages on the same
   responsive width tracks as the points purchase detail modal. These rules
   intentionally live after the historical modal overrides so the final
   computed width stays identical at every viewport breakpoint. */
@media (max-width: 768px) {
    .guest-shop-modal {
        padding: 0;
    }

    #shopPurchaseModal .modal-content,
    #guestCashPurchaseModal #guestCashPurchaseDialog.premium-modal {
        width: min(calc(100% - 28px), 620px) !important;
        max-width: 620px !important;
        box-sizing: border-box;
    }
}

@media (min-width: 769px) and (max-width: 900px) {
    #shopPurchaseModal .modal-content,
    #guestCashPurchaseModal #guestCashPurchaseDialog.premium-modal {
        width: min(calc(100% - 56px), 760px) !important;
        max-width: 760px !important;
        box-sizing: border-box;
    }
}

@media (min-width: 901px) {
    #shopPurchaseModal .modal-content,
    #guestCashPurchaseModal #guestCashPurchaseDialog.premium-modal {
        width: min(calc(100% - 64px), 1040px) !important;
        max-width: 1040px !important;
        box-sizing: border-box;
    }
}

/* Guest checkout stability and delivery interaction polish. Keep the
   confirmation shell from resizing while its preview/payment controls settle,
   then let the established modal scroll once the viewport is shorter. */
#guestCashPurchaseModal #guestCashPurchaseDialog[data-phase="configure"] {
    min-height: 560px;
}

@media (max-width: 600px) {
    #guestCashPurchaseModal #guestCashPurchaseDialog[data-phase="configure"] {
        min-height: min(560px, calc(100dvh - 112px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    }
}

/* Selecting a payment method is an in-place request. Preserve the pill's
   footprint, but replace its copy and logo with the animated progress dots. */
#guestCashPurchaseModal .guest-shop-modal__payment-option {
    min-width: 0;
}
#guestCashPurchaseModal .guest-shop-modal__payment-option.is-loading {
    justify-content: flex-start;
}
#guestCashPurchaseModal .guest-shop-modal__payment-option.is-loading .guest-shop-modal__payment-icon,
#guestCashPurchaseModal .guest-shop-modal__payment-option.is-loading .guest-shop-modal__payment-name {
    visibility: hidden;
}
#guestCashPurchaseModal .guest-shop-modal__payment-option.is-loading .guest-shop-modal__payment-loading {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    margin: 0;
    color: #f8fafc;
}
html:not([data-theme="dark"]) body.shop-page #guestCashPurchaseModal .guest-shop-modal__payment-option.is-loading .guest-shop-modal__payment-loading {
    color: #1e293b;
}
#guestCashPurchaseModal .guest-shop-modal__payment-option.is-loading:disabled {
    opacity: 1;
}

/* The guest delivery list is deliberately flat: no card shadow, lift, inset
   highlight, or nested scroll trap should appear while a product is hovered or
   expanded. The outer delivery list owns vertical scrolling for the whole
   stack, including when the pointer is over guidance text. */
#guestCashPurchaseModal .shop-success-item,
#guestCashPurchaseModal .shop-success-item:hover,
#guestCashPurchaseModal .shop-success-item.is-content-expanded,
#guestCashPurchaseModal .shop-success-item *,
#guestCashPurchaseModal .shop-success-item *:hover,
#guestCashPurchaseModal .shop-success-item *:active,
#guestCashPurchaseModal .shop-success-item *:focus-visible {
    box-shadow: none !important;
    filter: none !important;
}
#guestCashPurchaseModal .shop-success-item__surface,
#guestCashPurchaseModal .shop-success-item__surface:hover,
#guestCashPurchaseModal .shop-success-item__surface:active,
#guestCashPurchaseModal .shop-success-item.is-content-expanded .shop-success-item__surface,
#guestCashPurchaseModal .shop-success-item__copy-btn:hover,
#guestCashPurchaseModal .shop-success-item__copy-btn:active,
#guestCashPurchaseModal .shop-success-item__copy-btn:focus-visible {
    transform: none !important;
    background: transparent !important;
}
#guestCashPurchaseModal .shop-success-item__content-grid,
#guestCashPurchaseModal .shop-success-item__content-panel,
#guestCashPurchaseModal .shop-success-item__notes-panel,
#guestCashPurchaseModal .shop-success-item__usage-panel,
#guestCashPurchaseModal .shop-guidance-panel-content {
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
}
#guestCashPurchaseModal .shop-success-item__content-panel {
    overflow: visible !important;
}

@media (min-width: 901px) {
    #shopPurchaseModal .modal-content {
        max-height: min(720px, calc(var(--shop-purchase-overlay-height, 100dvh) - 72px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px))) !important;
    }
}

/* 20260609_SHOP_PURCHASE_NARROW_DESKTOP_TITLE_STAGGER_1 */
@media (max-width: 980px) and (hover: hover) and (pointer: fine) {
    #shopPurchaseModal:not(.active) .modal-content > .shop-purchase-stage-header.shop-purchase-stage--opening-stagger,
    #shopPurchaseModal.active .modal-content > .shop-purchase-stage-header.shop-purchase-stage--opening-stagger,
    #shopPurchaseModal .shop-purchase-stage-header.shop-purchase-stage--opening-stagger {
        opacity: 1 !important;
        transform: translate3d(0, 0, 0) !important;
        animation: none !important;
    }

    #shopPurchaseModal .shop-purchase-stage-header.shop-purchase-stage--opening-stagger > #purchaseStageTitle,
    #shopPurchaseModal .shop-purchase-stage-header.shop-purchase-stage--opening-stagger > #modalProductName {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
    }

    #shopPurchaseModal.active .shop-purchase-stage-header.shop-purchase-stage--opening-stagger > #purchaseStageTitle {
        animation: shopPurchaseStaggeredRise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: 0.03s !important;
    }

    #shopPurchaseModal.active .shop-purchase-stage-header.shop-purchase-stage--opening-stagger > #modalProductName {
        animation: shopPurchaseStaggeredRise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
        animation-delay: 0.09s !important;
    }

    #shopPurchaseModal.active.shop-purchase-stages-settled .shop-purchase-stage-header > #purchaseStageTitle,
    #shopPurchaseModal.active.shop-purchase-stages-settled .shop-purchase-stage-header > #modalProductName {
        animation: none !important;
        opacity: 1 !important;
        transform: translate3d(0, 0, 0) !important;
    }
}

/* Keep the confirmation modal's first frame dimensionally stable while the
   preview quote is resolving. Async amount/credential updates replace content
   inside these reserved areas instead of moving the modal vertically. */
#guestCashPurchaseModal[data-confirmation-loading] .guest-shop-modal__order-overview,
#guestCashPurchaseModal[data-confirmation-loading="true"] .guest-shop-modal__order-overview {
    min-height: 124px;
}
#guestCashPurchaseModal[data-confirmation-loading] .guest-shop-modal__amount,
#guestCashPurchaseModal[data-confirmation-loading="true"] .guest-shop-modal__amount {
    min-height: 124px;
}
#guestCashPurchaseModal[data-confirmation-loading] .guest-shop-modal__configure-panel,
#guestCashPurchaseModal[data-confirmation-loading="true"] .guest-shop-modal__configure-panel {
    min-height: 196px;
}
#guestCashPurchaseModal[data-confirmation-loading] .guest-shop-modal__amount-rows,
#guestCashPurchaseModal[data-confirmation-loading="true"] .guest-shop-modal__amount-rows {
    min-height: 42px;
}

/* Purchase Modal Flash Sale Countdown Banner */
.shop-purchase-flash-banner[hidden] {
    display: none !important;
}

.shop-purchase-flash-banner {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: none;
    box-sizing: border-box;
    white-space: nowrap !important;
}

[data-theme="light"] .shop-purchase-flash-banner,
html:not([data-theme="dark"]) body.shop-page .shop-purchase-flash-banner {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.shop-purchase-flash-banner__left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: 0;
}

.shop-purchase-flash-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
    white-space: nowrap;
    flex-shrink: 0;
}

.shop-purchase-flash-banner__icon {
    font-size: 10px;
    animation: flashBannerIconGlow 1.4s ease-in-out infinite alternate;
}

@keyframes flashBannerIconGlow {
    from {
        transform: scale(0.92);
        opacity: 0.85;
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
    }
    to {
        transform: scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 6px rgba(255, 230, 0, 0.9));
    }
}

.shop-purchase-flash-banner__hint {
    font-size: 11.5px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="light"] .shop-purchase-flash-banner__hint,
html:not([data-theme="dark"]) body.shop-page .shop-purchase-flash-banner__hint {
    color: #78716c;
}

.shop-purchase-flash-banner__countdown {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.shop-purchase-flash-banner__timer-label {
    font-size: 11px;
    font-weight: 600;
    color: #f87171;
    white-space: nowrap;
}

[data-theme="light"] .shop-purchase-flash-banner__timer-label,
html:not([data-theme="dark"]) body.shop-page .shop-purchase-flash-banner__timer-label {
    color: #dc2626;
}

.shop-purchase-flash-banner__timer-box {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

[data-theme="light"] .shop-purchase-flash-banner__timer-box,
html:not([data-theme="dark"]) body.shop-page .shop-purchase-flash-banner__timer-box {
    background: #ffffff;
    border-color: rgba(239, 68, 68, 0.22);
    box-shadow: 0 1px 4px rgba(239, 68, 68, 0.08);
}

.shop-purchase-flash-banner__timer {
    font-family: 'Outfit', 'Monaco', monospace, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #fca5a5;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

[data-theme="light"] .shop-purchase-flash-banner__timer,
html:not([data-theme="dark"]) body.shop-page .shop-purchase-flash-banner__timer {
    color: #b91c1c;
}

@media (max-width: 540px) {
    .shop-purchase-flash-banner {
        padding: 0 !important;
        margin: 0 !important;
    }
    .shop-purchase-flash-banner__hint {
        display: none !important;
    }
}

