/* Dedicated checkout: normal document scroll, dedicated top bar and pinned CTA. */
html:has(.checkout-screen){scroll-padding:12px 0 calc(118px + env(safe-area-inset-bottom) + var(--checkout-keyboard,0px))}
body:has(.checkout-screen){background:#fff}
body:has(.checkout-screen)>:is(.header,footer){display:none}
body .checkout-screen{
  --checkout-gutter:clamp(14px,4vw,24px);
  --checkout-width:690px;
  --checkout-ink:#1d1d20;--checkout-muted:#545459;
  width:100%;max-width:none;min-height:100vh;min-height:100dvh;
  padding:0 0 calc(118px + env(safe-area-inset-bottom) + var(--checkout-keyboard,0px));background:#fff;
}
.checkout-shell-inner{
  width:min(100%,var(--checkout-width));margin:auto;
  padding-inline:max(var(--checkout-gutter),env(safe-area-inset-left)) max(var(--checkout-gutter),env(safe-area-inset-right));
}
.checkout-shell-head{border-bottom:1px solid #e7e7e9;padding-top:env(safe-area-inset-top)}
.checkout-shell-head .checkout-shell-inner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;min-height:56px}
.checkout-screen .checkout-shell-head h1{font-size:clamp(17px,4.4vw,22px);letter-spacing:-.03em;line-height:1.2;font-weight:640}
.checkout-shell-back{
  display:grid;place-items:center;inline-size:44px;block-size:44px;margin-inline-start:-8px;
  padding:0;border-radius:5px;color:#212125;touch-action:manipulation;
}
.checkout-shell-back:is(:hover,:active){background:#f1f1f3}
.checkout-shell-demo{font-size:12px;font-weight:620;color:#545459;background:#f0f0f2;border-radius:4px;padding:3px 7px}
.checkout-order:first-of-type{margin-top:0;border-top:0;border-bottom:1px solid #e7e7e9}
.checkout-order summary{
  display:grid;grid-template-columns:54px minmax(0,1fr) 24px;align-items:center;gap:11px;
  padding-block:12px;cursor:pointer;list-style:none;
}
.checkout-order summary::-webkit-details-marker{display:none}
.checkout-order summary::after,.checkout-order[open] summary::after{content:none}
.checkout-order summary img{width:54px;height:54px;object-fit:cover;border-radius:5px;background:#f3f3f5}
.checkout-order-copy{display:grid;gap:4px;min-width:0;font-size:13px;line-height:1.35;color:var(--checkout-muted)}
.checkout-order-copy strong{display:block;font-size:15px;font-weight:650;color:var(--checkout-ink);overflow-wrap:anywhere}
.checkout-order-free,.checkout-dock-price small{color:#285643;font-weight:650}
.checkout-order-toggle{display:grid;place-items:center;transform:rotate(90deg)}
.checkout-order[open] .checkout-order-toggle{transform:rotate(-90deg)}
.checkout-screen #order-summary{padding-bottom:11px}
.checkout-screen #order-summary .mini-product{margin-top:0;gap:9px;font-size:13px}
.checkout-screen #order-summary .mini-product img{border-radius:4px}
.checkout-screen #order-summary .total-line{padding-block:4px}
.checkout-screen #order-summary .grand{padding-block:8px}
:root body .glass-checkout.checkout-screen .checkout-progress{
  gap:5px;padding:0;margin:12px 0 17px;background:transparent;border:0;border-radius:0;
  box-shadow:none;backdrop-filter:none;
}
.checkout-screen .checkout-progress :is(li>span,li>button){
  display:flex;flex-direction:column;gap:6px;align-items:center;width:100%;min-height:44px;
  padding:0;border-radius:3px;font:inherit;
}
.checkout-progress-segment{height:3px;background:#e5e5e8;width:100%;border-radius:2px}
.checkout-progress .done .checkout-progress-segment{background:#808085}
.checkout-progress [aria-current] .checkout-progress-segment{background:#242426}
.checkout-screen .checkout-progress li[aria-current]{color:#222226}
.checkout-progress-name{font-size:clamp(10px,3.25vw,13px);padding-inline:1px;line-height:1.3}
.checkout-progress button:hover .checkout-progress-name{text-decoration:underline;text-underline-offset:3px}
.checkout-screen .checkout-section-kicker{margin:0 0 5px;letter-spacing:.09em;font-size:11px}
.checkout-screen h2{font-size:clamp(25px,6.5vw,36px);line-height:1.12;letter-spacing:-.045em}
:root body .glass-checkout.checkout-screen .step-checkout form{
  border:0;border-radius:0;padding:0;background:transparent;box-shadow:none;backdrop-filter:none;
}
.checkout-screen .checkout-step-body{margin-top:13px}
.checkout-screen .checkout-field :is(input,select){font-size:16px;border-radius:5px;box-shadow:none}
.checkout-screen .checkout-field+ .checkout-field{margin-top:11px}
.checkout-screen .checkout-coupon{margin-top:22px;padding-top:6px;border-top:1px solid #e7e7e9}
.checkout-screen .coupon-controls .btn{font-size:14px;border-radius:5px}
.checkout-screen .checkout-shell-note{margin-top:14px;color:var(--checkout-muted);font-size:13px}
.checkout-dock{
  position:fixed;z-index:16;inset:auto 0 var(--checkout-keyboard,0px);
  background:#fff;border-top:1px solid #e7e7e9;
  padding:10px 0 max(10px,env(safe-area-inset-bottom));
}
.checkout-dock .checkout-shell-inner{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:center}
.checkout-dock-price{display:grid;gap:2px;line-height:1.15}
.checkout-dock-price span,.checkout-dock-price small{font-size:12px}
.checkout-dock-price strong{font-size:clamp(19px,5vw,24px);letter-spacing:-.035em;font-variant-numeric:tabular-nums;white-space:nowrap}
.checkout-screen .checkout-dock .btn{width:100%;min-height:48px;padding:7px 9px;border-radius:5px;font-size:15px;justify-content:center;text-align:center;line-height:1.2}
@media(orientation:landscape) and (max-height:420px){.checkout-dock{padding-block:6px}}

.checkout-screen .checkout-guest{
  background:none;padding:0;margin:0 0 8px;border:0;color:var(--checkout-muted);
}
.checkout-screen .checkout-direct-note{color:var(--checkout-muted);font-size:13px;margin-bottom:8px}
:root body .glass-checkout.checkout-screen .step-checkout .radio-option{
  border-radius:5px;box-shadow:none;
}
.checkout-screen .payment-methods{grid-template-columns:1fr}
.checkout-screen .payment-methods .radio-option{
  display:flex;align-items:center;gap:9px;min-height:52px;padding:8px 40px 8px 10px;
}
.checkout-screen .payment-methods .radio-option input{top:50%;transform:translateY(-50%)}
.checkout-screen .payment-methods .payment-option-icon{display:grid}
.checkout-screen .payment-methods .radio-option strong{font-size:14px}

/* Neutral selected states, consistent with the storefront controls. */
:root body .glass-checkout.checkout-screen .step-checkout .radio-option:has(input:checked){
  background:#f3f3f3;border-color:#777;box-shadow:none;
}
.checkout-screen .step-checkout .radio-option input{border-color:#888}
.checkout-screen .step-checkout .radio-option input:checked{background:#292929;border-color:#292929}
:root body .checkout-screen .step-checkout .radio-option:has(input:focus-visible){outline-color:#303030}
.checkout-screen .step-checkout .radio-option:has(input:checked) :is(.checkout-option-icon,.payment-option-icon){
  border-color:#ddd;color:#383838;
}
@media(forced-colors:active){
  :root body .glass-checkout.checkout-screen .step-checkout .radio-option:has(input:checked){border-color:Highlight}
  :root body .checkout-screen .step-checkout .radio-option:has(input:focus-visible){outline-color:Highlight}
}
