/* Checkout clarity: use recognisable payment marks and an explicit order total. */
#buyModal{--checkout-ink:#202635;--checkout-muted:#677186;--checkout-line:#e0e5ed;--checkout-surface:#fff;--checkout-soft:#f6f8fb;--checkout-accent:#5864dc}
.marketplace-page #buyModal{--checkout-ink:var(--market-ink);--checkout-muted:var(--market-muted);--checkout-line:var(--market-line);--checkout-surface:var(--market-panel);--checkout-soft:var(--market-panel-soft);--checkout-accent:#a78bfa}
.marketplace-page[data-market-theme=light] #buyModal{--checkout-accent:#6956d8}
#buyModal .pay-types{display:grid;grid-template-columns:1fr;gap:9px}
#buyModal .pay-type{display:block;min-width:0;position:relative;margin:0}
#buyModal .pay-type-card,.inner-checkout-mode #buyModal .pay-type-card{display:grid;grid-template-columns:1fr;gap:2px;min-height:76px;padding:13px 44px 13px 134px;border:1px solid var(--checkout-line);border-radius:13px;color:var(--checkout-ink);background:var(--checkout-soft);box-shadow:none;transition:border-color .15s,background .15s}
#buyModal .ptc-top{display:block;white-space:normal;min-width:0}
#buyModal .ptc-logo{position:absolute;left:13px;top:50%;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;width:106px;height:47px;padding:6px;border-radius:8px;background:#fff;border:1px solid #e7eaf1}
#buyModal .ptc-logo img{display:block;width:100%;height:100%;object-fit:contain;max-width:none}
#buyModal .ptc-name{font-size:15px;line-height:1.5;font-weight:700;color:var(--checkout-ink)}
#buyModal .ptc-sub{font-size:12px;line-height:1.55;color:var(--checkout-muted);font-weight:400;display:block;margin:0}
#buyModal .pay-type-card::after{content:'';position:absolute;width:18px;height:18px;right:15px;top:50%;transform:translateY(-50%);border-radius:50%;border:1.5px solid #949bad;background:transparent;box-shadow:none}
#buyModal .pay-type input:checked+.pay-type-card,.inner-checkout-mode #buyModal .pay-type input:checked+.pay-type-card{border-color:var(--checkout-accent);background:color-mix(in srgb,var(--checkout-accent) 9%,var(--checkout-surface));box-shadow:0 0 0 1px var(--checkout-accent)}
#buyModal .pay-type input:checked+.pay-type-card::after,.inner-checkout-mode #buyModal .pay-type input:checked+.pay-type-card::after{content:'✓';display:grid;place-items:center;border:1.5px solid var(--checkout-accent);background:var(--checkout-accent);color:#fff;font-size:11px;line-height:1;box-shadow:none;width:18px;height:18px;right:15px;top:50%}
#buyModal .pay-type input:focus-visible+.pay-type-card{outline:3px solid var(--checkout-accent);outline-offset:3px}
#buyModal .pay-type input:disabled+.pay-type-card{opacity:.5;cursor:not-allowed}
#buyModal .pay-balance .pay-type-card,#buyModal .pay-usdt .pay-type-card{padding-left:134px}
#buyModal .pay-balance .ptc-top::before,#buyModal .pay-usdt:not(:has(img)) .ptc-top::before{content:'¥';position:absolute;left:13px;top:50%;transform:translateY(-50%);width:106px;height:47px;display:grid;place-items:center;border-radius:8px;background:#eff2ff;color:#5a62b9;font-size:24px;font-weight:750}
#buyModal .pay-usdt:not(:has(img)) .ptc-top::before{content:'₮';background:#eaf9f3;color:#169b76}
#buyModal .pay-usdt .ptc-sub{color:#168765}
.marketplace-page:not([data-market-theme=light]) #buyModal .pay-usdt .ptc-sub{color:#70dab5}
#buyModal .buy-price-summary{margin:17px 0 20px;padding:17px 18px;border:1px solid var(--checkout-line);border-radius:13px;background:var(--checkout-soft);font-size:13px;color:var(--checkout-muted)}
#buyModal .buy-price-summary>div{display:flex;align-items:baseline;justify-content:space-between;gap:15px;margin:8px 0;line-height:1.6}
#buyModal .buy-price-summary dd{margin:0;text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-weight:600;color:var(--checkout-ink)}
#buyModal .buy-price-summary .buy-price-total{border-top:1px solid var(--checkout-line);margin-top:14px;padding-top:14px;color:var(--checkout-ink);font-weight:650}
#buyModal .buy-price-total dd{font-size:27px;letter-spacing:-.7px;font-weight:750}
#buyModal #buyDiscount{color:#10a37f}
#buyModal .buy-promo>label{display:flex;align-items:baseline;justify-content:space-between;font-size:14px;font-weight:650;margin-bottom:9px;color:var(--checkout-ink)}
#buyModal .buy-promo>label small{font-weight:400;color:var(--checkout-muted);margin:0;font-size:12px}
#buyModal .buy-promo-entry{display:flex;gap:8px;align-items:stretch}
#buyModal .buy-promo-entry input{min-width:0;flex:1;text-transform:uppercase}
#buyModal .buy-promo-entry button{flex:0 0 auto;border-radius:9px;border:1px solid var(--checkout-line);background:var(--checkout-soft);color:var(--checkout-ink);padding:0 18px;font-size:13px;font-weight:650;cursor:pointer;min-height:44px}
#buyModal .buy-promo-status{margin-top:8px;font-size:12px;line-height:1.6;color:var(--checkout-muted)}
#buyModal .buy-promo-status:empty{display:none}
#buyModal .buy-promo-actions{margin:18px 0;padding:18px;border:1px solid #d9ceff;border-radius:14px;background:#f6f2ff;color:#33264f;line-height:1.6}
#buyModal .buy-promo-actions[hidden]{display:none}
#buyModal .buy-promo-actions strong{display:block;font-size:16px}
#buyModal .buy-promo-actions p{margin:6px 0 14px;font-size:14px}
#buyModal .buy-promo-actions-buttons{display:flex;flex-wrap:wrap;gap:10px}
#buyModal .buy-promo-actions-buttons a,#buyModal .buy-promo-actions-buttons button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:46px;flex:1 1 190px;padding:10px 14px;border:1px solid #d9ceff;border-radius:10px;background:#fff;color:#49386d;font:inherit;font-size:14px;font-weight:650;text-align:center;text-decoration:none;cursor:pointer}
#buyModal .buy-promo-actions-buttons .buy-promo-login{background:#7048d7;border-color:#7048d7;color:#fff}
#buyModal .buy-promo-actions-buttons a:focus-visible,#buyModal .buy-promo-actions-buttons button:focus-visible{outline:3px solid #ad91ff;outline-offset:3px}
#buyModal .buy-promo-actions-buttons button:disabled{opacity:.55;cursor:wait}
#buyModal #buyPromoActionReason{overflow-wrap:anywhere}
#buyModal .buy-promo-actions small{display:block;margin-top:12px;font-size:12px;color:#6b5c82}
body[data-market-theme="dark"] #buyModal .buy-promo-actions{background:#28203b;border-color:#594776;color:#f3edff}
body[data-market-theme="dark"] #buyModal .buy-promo-actions small{color:#d0c2e8}
#buyModal .pay-fee-breakdown{padding:12px 14px;margin:12px 0;font-size:13px;line-height:1.8;border-radius:10px;background:var(--checkout-soft);color:var(--checkout-muted);text-align:left;overflow-wrap:anywhere}
#buyModal .pay-corp-note{font-size:12px;text-align:left;color:var(--checkout-muted);margin:10px 0}
#buyModal .pay-corp-note a,#buyModal .buy-tip a{color:inherit}
#buyModal [hidden]{display:none!important}
.checkout-page-heading{max-width:1220px;margin:10px auto 28px;display:flex;align-items:center;justify-content:space-between;gap:28px}
.checkout-page-heading h1{font-size:clamp(26px,2.5vw,35px);line-height:1.35;letter-spacing:-1px;margin:9px 0 10px;color:var(--market-ink)}
.checkout-page-heading p:not(.inner-kicker){font-size:14px;color:var(--market-muted);line-height:1.7;margin:0}
.checkout-progress{display:flex;align-items:center;list-style:none;margin:0;padding:0;gap:24px;flex-shrink:0}
.checkout-progress li{display:flex;align-items:center;gap:7px;white-space:nowrap;color:var(--market-muted);font-size:12px}
.checkout-progress span{display:grid;place-items:center;border:1px solid var(--market-line);width:24px;height:24px;border-radius:50%;font-size:11px;font-weight:650}
.checkout-progress .current{color:var(--market-ink);font-weight:650}.checkout-progress .current span{background:var(--market-purple);color:#fff;border-color:transparent}
.inner-checkout-mode .inner-checkout-grid{grid-template-columns:minmax(0,1.14fr) minmax(0,.86fr);gap:28px;align-items:start}
.inner-checkout-mode .inner-checkout-card{position:static;padding:30px;border-radius:20px;border:1px solid var(--market-line);background:var(--market-panel)}
.inner-checkout-mode .inner-checkout-card>h2{font-size:23px;line-height:1.4;margin:6px 0 7px;color:var(--market-ink)}
.inner-checkout-mode .checkout-form-intro{font-size:13px;line-height:1.7;color:var(--market-muted);margin:0 0 22px}
.inner-checkout-mode .inner-checkout-product{position:static;padding:27px;border-radius:20px}
.inner-checkout-mode .inner-checkout-preview{align-items:flex-start;gap:17px;padding-bottom:22px;margin-bottom:22px}
.inner-checkout-mode .inner-checkout-preview .inner-artwork{flex:0 0 80px;min-height:88px;border-radius:12px}
.inner-checkout-mode .inner-checkout-preview .inner-art-fallback{padding:9px;justify-content:center}
.inner-checkout-mode .inner-checkout-preview .inner-art-fallback strong{display:none}
.inner-checkout-mode .inner-checkout-preview .inner-art-symbol{font-size:36px}
.inner-checkout-mode .inner-checkout-preview h2{font-size:18px;line-height:1.6;margin:4px 0 8px;color:var(--market-ink);overflow-wrap:anywhere}
.inner-checkout-mode .inner-checkout-preview .inner-kicker{font-size:10px}
.inner-checkout-mode .checkout-unit-price{margin-top:14px;display:flex;align-items:baseline;gap:4px}
.inner-checkout-mode .checkout-unit-price strong{font-size:30px;letter-spacing:-.7px;color:var(--market-ink)}
.inner-checkout-mode .checkout-unit-price span{font-size:12px;color:var(--market-muted)}
.inner-checkout-mode .checkout-delivery-note>span{font-size:12px;color:var(--market-muted);display:block;margin-bottom:7px}
.inner-checkout-mode .checkout-delivery-note>strong{font-size:14px;color:var(--market-ink)}
.inner-checkout-mode .checkout-delivery-note p{font-size:13px;line-height:1.8;margin:7px 0 20px;color:var(--market-muted)}
.inner-checkout-mode .checkout-product-notes{border-top:1px solid var(--market-line);margin:0}
.inner-checkout-mode .checkout-product-notes>summary{display:flex;justify-content:space-between;cursor:pointer;font-size:14px;padding:16px 0;color:var(--market-ink);font-weight:650;list-style:none}
.inner-checkout-mode .checkout-product-notes[open]>summary>span{transform:rotate(45deg)}
.inner-checkout-mode .checkout-product-notes .inner-rich-details{max-height:none;overflow:visible;margin:0 0 20px}
.inner-checkout-mode .checkout-product-notes .inner-detail-block{border-radius:10px}
.inner-checkout-mode .checkout-product-notes h2{font-size:16px}
.inner-checkout-mode .checkout-support-link{display:block;font-size:12px;color:var(--market-muted);text-decoration:none;line-height:1.7;margin:7px 0}
.inner-checkout-mode .inner-checkout-product .inner-actions{gap:12px;align-items:center;margin-top:13px}
.inner-checkout-mode .inner-checkout-product .inner-button{font-size:12px;padding:10px 13px;border-radius:10px}
.inner-checkout-mode #buyModal .buy-plan-box{display:none}
.inner-checkout-mode #buyModal #buyForm .field,.inner-checkout-mode #buyModal #buyForm .contact-group,.inner-checkout-mode #buyModal #buyForm .inner-field{margin:0 0 21px}
.inner-checkout-mode #buyModal #buyForm .field>span,.inner-checkout-mode #buyModal #buyForm .inner-field>span{color:var(--checkout-ink);font-size:14px;font-weight:650;margin-bottom:9px;line-height:1.5}
.inner-checkout-mode #buyModal #buyForm input:not([type=radio]){font-size:14px;min-height:46px;background:var(--market-input);color:var(--checkout-ink);border-color:var(--checkout-line);border-radius:10px;padding:11px 13px;box-shadow:none}
.inner-checkout-mode #buyModal #buyForm input:not([type=radio]):focus-visible{outline:2px solid var(--checkout-accent);outline-offset:2px}
.inner-checkout-mode #buyModal #buyForm input::placeholder{color:var(--checkout-muted);opacity:.8}
.inner-checkout-mode #buyModal #buyForm small{color:var(--checkout-muted);font-size:12px;line-height:1.7}
.inner-checkout-mode #buyModal .inner-quantity-row>span{color:var(--market-ink);font-size:14px}
.inner-checkout-mode #buyModal .inner-quantity-stepper{background:var(--market-input);border-color:var(--checkout-line);border-radius:9px}
.inner-checkout-mode #buyModal #buyForm .inner-quantity-stepper input{width:58px;padding:7px;border:0;border-radius:0;min-height:38px}
.inner-checkout-mode #buyModal .inner-quantity-stepper button{background:transparent;color:var(--checkout-ink);height:38px;width:34px}
.inner-checkout-mode #buyModal .inner-captcha-row{gap:10px}.inner-checkout-mode #buyModal .inner-captcha-row>button{background:#fff;border:1px solid var(--checkout-line);border-radius:9px;width:130px;height:46px;min-width:130px;padding:3px}
.inner-checkout-mode #buyModal .inner-captcha-row img{max-width:100%;max-height:38px;object-fit:contain;display:block;margin:auto}
.inner-checkout-mode #buyModal #buyForm .invoice-toggle{background:transparent;border:1px solid var(--checkout-line);border-radius:10px;padding:12px 13px;font-size:12px;min-height:46px;color:var(--checkout-muted);text-align:left;line-height:1.6}
.inner-checkout-mode #buyModal #buyForm .invoice-toggle.active{background:var(--checkout-soft);border-color:var(--checkout-accent);color:var(--checkout-ink)}
.inner-checkout-mode #buyModal #buySubmit{min-height:52px;border-radius:12px;font-size:16px;background:var(--market-purple);color:#fff;border:1px solid transparent;box-shadow:0 5px 18px #0000000c;margin-top:4px}
.inner-checkout-mode #buyModal #buyForm .buy-assure{font-size:12px;color:var(--checkout-muted);margin:12px 0;text-align:center;font-weight:400}
.inner-checkout-mode #buyModal #buyForm .buy-tip{font-size:11px;color:var(--checkout-muted);margin:13px 0 0;text-align:center}
@media(max-width:900px){.checkout-page-heading{align-items:flex-start;flex-direction:column;gap:18px}.checkout-progress{gap:25px}.inner-checkout-mode .inner-checkout-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:18px}.inner-checkout-mode .inner-checkout-card,.inner-checkout-mode .inner-checkout-product{padding:23px}.inner-checkout-mode .inner-checkout-preview{display:block}.inner-checkout-mode .inner-checkout-preview .inner-artwork{display:none}}
@media(max-width:760px){.checkout-page-heading{margin:2px 0 24px;gap:19px}.checkout-page-heading h1{font-size:27px}.checkout-page-heading p:not(.inner-kicker){font-size:13px}.inner-checkout-mode .inner-checkout-grid{display:flex;flex-direction:column;gap:17px}.inner-checkout-mode .inner-checkout-product{position:static;padding:21px}.inner-checkout-mode .inner-checkout-preview{display:block;padding-bottom:17px;margin-bottom:16px}.inner-checkout-mode .inner-checkout-preview h2{font-size:17px}.inner-checkout-mode .checkout-unit-price{margin-top:8px}.inner-checkout-mode .checkout-unit-price strong{font-size:26px}.inner-checkout-mode .inner-checkout-product .inner-actions{display:none}.inner-checkout-mode .checkout-delivery-note p{margin-bottom:15px}.inner-checkout-mode .inner-checkout-card{padding:22px}.inner-checkout-mode .checkout-product-notes>summary{padding-bottom:0}.inner-checkout-mode .checkout-product-notes[open]>summary{padding-bottom:16px}.inner-checkout-mode #buyModal .pay-type-card{min-height:73px;padding-left:112px;padding-right:34px}.inner-checkout-mode #buyModal .ptc-logo,.inner-checkout-mode #buyModal .pay-balance .ptc-top::before,.inner-checkout-mode #buyModal .pay-usdt:not(:has(img)) .ptc-top::before{left:10px;width:88px;height:41px}.inner-checkout-mode #buyModal .ptc-name{font-size:14px}.inner-checkout-mode #buyModal .ptc-sub{font-size:11px}.inner-checkout-mode #buyModal .pay-type-card::after,.inner-checkout-mode #buyModal .pay-type input:checked+.pay-type-card::after,.inner-checkout-mode #buyModal .pay-type input:checked+.pay-type-card::after{right:11px}.inner-checkout-mode #buyModal #buyForm .inner-captcha-row>button{width:112px;min-width:112px}.checkout-progress{gap:19px;font-size:11px}}
@media(prefers-reduced-motion:reduce){#buyModal *{transition:none!important}}

#buyModal .pay-usdt .ptc-logo img{width:35px;height:35px}

.inner-checkout-mode .inner-checkout-product .inner-button.secondary{background:var(--market-panel-soft);color:var(--market-ink);border-color:var(--market-line)}
.inner-checkout-mode[data-market-theme=light] .inner-stock{color:#07845c}

#buyModal .buy-promo-status[data-state=valid],#buyModal .buy-promo-status.is-valid{color:#10a37f}
#buyModal .buy-promo-status[data-state=invalid],#buyModal .buy-promo-status.is-invalid{color:#e46d7a}
 .usdt-checkout-options{padding:16px;border:1px solid var(--border,rgba(148,163,184,.25));border-radius:14px;display:grid;gap:10px;margin-block:16px;background:var(--bg-card,transparent)}
 .usdt-checkout-options[hidden]{display:none}.usdt-checkout-options select{width:100%;min-height:46px;border-radius:10px;padding:8px 12px;background:var(--bg-card,#20212a);color:inherit;border:1px solid var(--border,#666)}
 .usdt-checkout-options p,.usdt-checkout-options small{margin:0;line-height:1.6;overflow-wrap:anywhere}.usdt-checkout-options button{justify-self:start;border-radius:8px;padding:7px 12px;border:1px solid var(--border,#666);background:transparent;color:inherit}

/* The USDT network selector inherits the checkout palette in both themes. */
.marketplace-page .usdt-checkout-options{background:var(--market-panel-soft);border-color:var(--market-line);color:var(--market-ink);padding:16px;gap:10px}
.marketplace-page .usdt-checkout-options select{background:var(--market-panel);border-color:var(--market-line);color:var(--market-ink);font-size:14px}
.marketplace-page .usdt-checkout-options label{font-size:13px;font-weight:600}
.marketplace-page .usdt-checkout-options p{font-size:13px;color:var(--market-ink);line-height:1.75}
.marketplace-page .usdt-checkout-options small{color:var(--market-muted);font-size:12px;line-height:1.75}
.marketplace-page .usdt-checkout-options button{border-color:var(--market-line);background:var(--market-panel);color:var(--market-ink);font-size:12px;min-height:36px}
.inner-checkout-mode .checkout-page-heading{margin:0 auto 18px;gap:16px}
.inner-checkout-mode .checkout-page-heading h1{font-size:27px;margin:5px 0}
.inner-checkout-mode .inner-checkout-product{position:static}
.inner-checkout-mode .inner-checkout-card{padding:24px}
.inner-checkout-mode #buyModal #buyForm .field,.inner-checkout-mode #buyModal #buyForm .inner-field{margin-bottom:16px}
.inner-checkout-mode .checkout-optional{border-top:1px solid var(--market-line);padding:10px 0;margin:0}
.inner-checkout-mode .checkout-optional summary{cursor:pointer;font-size:13px;color:var(--market-muted);padding:5px 0}
.inner-checkout-mode .checkout-optional[open] summary{margin-bottom:10px;color:var(--market-ink)}
.inner-checkout-mode #buyModal .checkout-optional .field{margin:0 0 4px}
.inner-checkout-mode #buyModal .checkout-pay-bar{position:sticky;bottom:12px;z-index:6;display:flex;gap:16px;align-items:center;justify-content:space-between;padding:14px 16px;margin-top:12px;border:1px solid var(--market-line);border-radius:14px;background:var(--market-panel);box-shadow:0 -5px 24px #0002}
.inner-checkout-mode .checkout-pay-bar>div{display:grid;gap:3px;flex:0 0 auto}.inner-checkout-mode .checkout-pay-bar>div>span{font-size:11px;color:var(--market-muted)}
.inner-checkout-mode .checkout-pay-total{font-size:24px;line-height:1.3;color:var(--market-ink);font-variant-numeric:tabular-nums}
.inner-checkout-mode #buyModal .checkout-pay-bar #buySubmit{width:auto;flex:1;max-width:280px;margin:0;min-height:46px}
@media(max-width:760px){.inner-checkout-mode .inner-checkout-product{position:static}.inner-checkout-mode .checkout-page-heading{gap:12px;margin-bottom:16px}.inner-checkout-mode .checkout-page-heading h1{font-size:24px}.inner-checkout-mode .inner-checkout-card,.inner-checkout-mode .inner-checkout-product{padding:18px}.inner-checkout-mode #buyModal .checkout-pay-bar{bottom:max(8px,env(safe-area-inset-bottom));padding:12px;gap:10px}.inner-checkout-mode .checkout-pay-total{font-size:22px}}

.inner-checkout-mode #buyModal .checkout-pay-bar{background:#1b1821}.inner-checkout-mode[data-market-theme=light] #buyModal .checkout-pay-bar{background:#fff}
@media(min-width:701px){.inner-checkout-mode #buyModal .checkout-pay-bar{position:static}}

@media(max-width:700px){.inner-checkout-mode .fcw-trigger,.inner-checkout-mode .fcw-panel{display:none}}

/* New storefront only. Keep the shared buy form and every payment-state hook. */
body[data-storefront-design="clear"] #buyModal{--checkout-accent:#6355e8;--checkout-ink:var(--market-ink,#242733);--checkout-muted:var(--market-muted,#697080);--checkout-line:var(--market-line,#e5e7ef);--checkout-surface:var(--market-panel,#fff);--checkout-soft:var(--market-panel-soft,#f8f9fc)}
body[data-storefront-design="clear"][data-market-theme="dark"] #buyModal{--checkout-accent:#b5a5ff}
body[data-storefront-design="clear"] .checkout-page-heading{max-width:none;margin:0 0 22px;gap:20px}
body[data-storefront-design="clear"] .checkout-page-heading h1{font-size:26px;letter-spacing:-.025em;margin:0 0 5px}
body[data-storefront-design="clear"] .checkout-page-heading p{font-size:13px}
body[data-storefront-design="clear"] .checkout-progress{gap:20px}
body[data-storefront-design="clear"] .checkout-progress li{font-size:12px;gap:6px}
body[data-storefront-design="clear"] .checkout-progress span{width:23px;height:23px}
body[data-storefront-design="clear"] .checkout-progress .current span{background:#6355e8}
body[data-storefront-design="clear"] .inner-checkout-grid{max-width:none;grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr);gap:22px}
body[data-storefront-design="clear"] .inner-checkout-product,
body[data-storefront-design="clear"] .inner-checkout-card{padding:24px;border-radius:14px}
body[data-storefront-design="clear"] .inner-checkout-product{top:88px}
body[data-storefront-design="clear"] .inner-checkout-card>h2{font-size:20px;margin:0 0 4px}
body[data-storefront-design="clear"] .checkout-form-intro{font-size:12px;margin-bottom:20px}
body[data-storefront-design="clear"] .inner-checkout-preview{gap:14px;margin-bottom:18px;padding-bottom:18px}
body[data-storefront-design="clear"] .inner-checkout-preview .inner-artwork{flex-basis:60px;min-height:64px;height:64px;aspect-ratio:1;border-radius:10px}
body[data-storefront-design="clear"] .inner-checkout-preview h2{font-size:17px;line-height:1.65;margin:3px 0 6px}
body[data-storefront-design="clear"] .inner-checkout-preview .inner-kicker{font-size:11px}
body[data-storefront-design="clear"] .checkout-unit-price{margin-top:12px}
body[data-storefront-design="clear"] .checkout-unit-price strong{font-size:28px;color:var(--clear-accent-ink,#6355e8)}
body[data-storefront-design="clear"] .checkout-delivery-note p{font-size:12px;line-height:1.8;margin:7px 0 16px}
body[data-storefront-design="clear"] .checkout-product-notes>summary{font-size:13px;padding:14px 0}
body[data-storefront-design="clear"] .checkout-product-notes .inner-rich-details{max-height:none;overflow:visible}
body[data-storefront-design="clear"] .inner-checkout-product .inner-actions{margin-top:8px;gap:10px}
body[data-storefront-design="clear"] .checkout-support-link{color:var(--clear-accent-ink,#6355e8);font-size:12px}
body[data-storefront-design="clear"] #buyModal #buyForm .field,
body[data-storefront-design="clear"] #buyModal #buyForm .contact-group,
body[data-storefront-design="clear"] #buyModal #buyForm .inner-field{margin-bottom:16px}
body[data-storefront-design="clear"] #buyModal #buyForm .field>span,
body[data-storefront-design="clear"] #buyModal #buyForm .inner-field>span{font-size:13px;margin-bottom:7px}
body[data-storefront-design="clear"] #buyModal #buyForm input:not([type=radio]){min-height:44px;border-radius:8px;padding:10px 12px;font-size:14px}
body[data-storefront-design="clear"] #buyModal #buyForm .inner-password input{padding-right:62px}
body[data-storefront-design="clear"] #buyModal #buyForm small{font-size:12px;line-height:1.65}
body[data-storefront-design="clear"] #buyModal #buyForm .inner-quantity-stepper input{min-height:36px;width:54px;border-radius:0;padding:6px}
body[data-storefront-design="clear"] #buyModal .inner-quantity-stepper button{height:36px}
body[data-storefront-design="clear"] #buyModal .pay-types{gap:8px}
body[data-storefront-design="clear"] #buyModal .pay-type-card{min-height:70px;padding:11px 38px 11px 116px;border-radius:9px;background:var(--checkout-surface)}
body[data-storefront-design="clear"] #buyModal .ptc-logo,
body[data-storefront-design="clear"] #buyModal .pay-balance .ptc-top::before,
body[data-storefront-design="clear"] #buyModal .pay-usdt:not(:has(img)) .ptc-top::before{left:12px;width:90px;height:42px;border-radius:7px}
body[data-storefront-design="clear"] #buyModal .ptc-name{font-size:14px;line-height:1.5}
body[data-storefront-design="clear"] #buyModal .ptc-sub{font-size:12px;line-height:1.5}
body[data-storefront-design="clear"] #buyModal .pay-type-card::after,
body[data-storefront-design="clear"] #buyModal .pay-type input:checked+.pay-type-card::after{right:13px;width:17px;height:17px}
body[data-storefront-design="clear"] #buyModal .pay-type input:checked+.pay-type-card{background:color-mix(in srgb,var(--checkout-accent) 5%,var(--checkout-surface));border-color:var(--checkout-accent);box-shadow:0 0 0 1px var(--checkout-accent)}
body[data-storefront-design="clear"] #buyModal .buy-price-summary{margin:16px 0;padding:13px 15px;border-radius:9px;background:var(--checkout-soft)}
body[data-storefront-design="clear"] #buyModal .buy-price-summary>div{margin:7px 0;font-size:12px}
body[data-storefront-design="clear"] #buyModal .buy-price-summary .buy-price-total{margin-top:11px;padding-top:11px}
body[data-storefront-design="clear"] #buyModal .buy-price-total dd{font-size:25px;color:var(--checkout-ink)}
body[data-storefront-design="clear"] #buyModal .buy-promo-entry button{padding:0 14px;border-radius:8px}
body[data-storefront-design="clear"] #buyModal .buy-promo-status[data-state=invalid],
body[data-storefront-design="clear"] #buyModal .buy-promo-status.is-invalid{color:#b63a4c}
body[data-storefront-design="clear"] #buyModal #buyForm .buy-error{background:#fff0f1;border:1px solid #efc4ca;color:#a62d3e;font-size:13px;line-height:1.7}
body[data-storefront-design="clear"][data-market-theme="dark"] #buyModal #buyForm .buy-error{background:#3f242d;border-color:#784351;color:#ffb2bf}
body[data-storefront-design="clear"][data-market-theme="dark"] #buyModal .buy-promo-status[data-state=invalid],
body[data-storefront-design="clear"][data-market-theme="dark"] #buyModal .buy-promo-status.is-invalid{color:#ffb2bf}
body[data-storefront-design="clear"] .usdt-checkout-options{padding:14px;border-radius:9px;gap:9px;background:var(--market-panel-soft,#f8f9fc);border-color:var(--market-line,#e5e7ef)}
body[data-storefront-design="clear"] .usdt-checkout-options select{min-height:44px;border-radius:8px}
body[data-storefront-design="clear"] .usdt-checkout-options button{border-radius:7px}
body[data-storefront-design="clear"] .checkout-optional{padding:10px 0}
body[data-storefront-design="clear"] #buyModal .checkout-pay-bar{padding:14px 0 0;margin-top:12px;border:0;border-top:1px solid var(--checkout-line);border-radius:0;background:var(--checkout-surface);box-shadow:none;gap:16px}
body[data-storefront-design="clear"] .checkout-pay-total{font-size:25px;letter-spacing:-.025em}
body[data-storefront-design="clear"] #buyModal #buySubmit{min-height:48px;border-radius:9px;font-size:14px;background:#6355e8;border-color:#6355e8;box-shadow:none}
body[data-storefront-design="clear"] #buyModal #buySubmit:disabled{opacity:.55;cursor:not-allowed}
body[data-storefront-design="clear"] #buyModal .checkout-pay-bar #buySubmit{min-height:46px;max-width:230px}
body[data-storefront-design="clear"] #buyModal #buyForm .buy-assure{margin:10px 0 0;font-size:11px}
/* Recovery actions remain legible on the light pending-order panel. */
body[data-storefront-design="clear"][data-market-theme="light"] #buyModal #buyPendingOrders a,
body[data-storefront-design="clear"][data-market-theme="light"] #buyModal #buyPendingOrders button{color:#5141bd}
@media(max-width:960px){
  body[data-storefront-design="clear"] .checkout-page-heading{align-items:flex-start;flex-direction:column;gap:14px}
  body[data-storefront-design="clear"] .inner-checkout-grid{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:16px}
  body[data-storefront-design="clear"] .inner-checkout-card,
  body[data-storefront-design="clear"] .inner-checkout-product{padding:20px}
}
@media(max-width:760px){
  body[data-storefront-design="clear"] .checkout-page-heading h1{font-size:24px}
  body[data-storefront-design="clear"] .checkout-progress{gap:18px}
  body[data-storefront-design="clear"] .inner-checkout-grid{display:flex;flex-direction:column;gap:16px}
  body[data-storefront-design="clear"] .inner-checkout-product{position:static;padding:18px}
  body[data-storefront-design="clear"] .inner-checkout-card{padding:20px 18px}
  body[data-storefront-design="clear"] .inner-checkout-preview{padding-bottom:14px;margin-bottom:14px}
  body[data-storefront-design="clear"] .inner-checkout-preview h2{font-size:16px}
  body[data-storefront-design="clear"] .inner-checkout-preview .inner-kicker{display:none}
  body[data-storefront-design="clear"] .checkout-unit-price strong{font-size:26px}
  body[data-storefront-design="clear"] .checkout-product-notes>summary{padding-bottom:0}
  body[data-storefront-design="clear"] .checkout-product-notes[open]>summary{padding-bottom:14px}
  body[data-storefront-design="clear"] .inner-checkout-product .inner-actions{display:flex;align-items:center;margin-top:14px}
  body[data-storefront-design="clear"] .inner-checkout-product .inner-actions .inner-button{font-size:11px;padding:8px 10px;min-height:36px}
  body[data-storefront-design="clear"] #buyModal .pay-type-card{padding-left:108px;padding-right:34px}
  body[data-storefront-design="clear"] #buyModal .ptc-logo,
  body[data-storefront-design="clear"] #buyModal .pay-balance .ptc-top::before,
  body[data-storefront-design="clear"] #buyModal .pay-usdt:not(:has(img)) .ptc-top::before{left:10px;width:84px;height:40px}
  body[data-storefront-design="clear"] #buyModal .ptc-sub{font-size:11px}
  body[data-storefront-design="clear"] #buyModal .checkout-pay-bar{padding:12px;margin:12px -6px 0;border:1px solid var(--checkout-line);border-radius:10px;gap:12px;bottom:max(8px,env(safe-area-inset-bottom));box-shadow:0 3px 16px #1820400a}
  body[data-storefront-design="clear"] .checkout-pay-total{font-size:23px}
}

/* Keep the mobile purchase form close to the product and price. */
.checkout-product-toggle{display:none}
@media(max-width:760px){
 body[data-storefront-design="clear"] .checkout-page-heading{gap:10px;margin-bottom:14px}
 body[data-storefront-design="clear"] .checkout-page-heading h1{font-size:23px}
 body[data-storefront-design="clear"] .checkout-page-heading>div>p{display:none}
 body[data-storefront-design="clear"] .checkout-progress{font-size:10px;gap:10px}
 body[data-storefront-design="clear"] .inner-checkout-grid{gap:12px}
 body[data-storefront-design="clear"] .inner-checkout-product{padding:14px 16px}
 body[data-storefront-design="clear"] .inner-checkout-preview{gap:12px;padding:0;margin:0;border:0;align-items:center}
 body[data-storefront-design="clear"] .inner-checkout-preview .inner-artwork{width:50px;height:50px;min-height:50px;flex:0 0 50px}
 body[data-storefront-design="clear"] .inner-checkout-preview .inner-artwork .inner-badges,body[data-storefront-design="clear"] .inner-checkout-preview .inner-artwork small,body[data-storefront-design="clear"] .inner-checkout-preview .inner-artwork strong{display:none}
 body[data-storefront-design="clear"] .inner-checkout-preview .inner-art-fallback{padding:0}
 body[data-storefront-design="clear"] .inner-checkout-preview .inner-art-symbol{font-size:22px}
 body[data-storefront-design="clear"] .inner-checkout-preview h2{font-size:15px;margin:0 0 3px;line-height:1.4}
 body[data-storefront-design="clear"] .inner-checkout-preview .inner-stock{font-size:10px}
 body[data-storefront-design="clear"] .checkout-unit-price{margin:5px 0 0}
 body[data-storefront-design="clear"] .checkout-unit-price strong{font-size:22px}
 body[data-storefront-design="clear"] .checkout-product-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;border-top:1px solid var(--checkout-line,#e5e7eb);background:transparent;padding:10px 0 0;margin-top:10px;color:var(--checkout-muted,#64748b);font:inherit;font-size:12px;cursor:pointer}
 body[data-storefront-design="clear"] .checkout-product-toggle[aria-expanded=true]>span{transform:rotate(180deg)}
 body[data-storefront-design="clear"] .checkout-product-extra{padding-top:12px}
 body[data-storefront-design="clear"] .inner-checkout-card{padding:18px 16px}
}

/* Full product information stays open beside the narrower purchase form. */
.inner-checkout-mode .checkout-product-subtitle{margin:4px 0 10px;color:var(--market-muted);font-size:14px;line-height:1.75}
.inner-checkout-mode .checkout-product-subtitle:empty{display:none}
.inner-checkout-mode .checkout-product-notes{padding-top:20px}
.inner-checkout-mode .checkout-product-notes .inner-detail-block{margin-bottom:18px}
.inner-checkout-mode .checkout-product-notes .inner-rich-details{max-height:none;overflow:visible}
@media(min-width:761px) and (max-width:960px){body[data-storefront-design="clear"] .inner-checkout-grid{grid-template-columns:minmax(0,1.18fr) minmax(320px,.82fr)}}
