.checkout-shell { width:min(100%,1360px); margin:auto; padding:52px max(var(--gutter),env(safe-area-inset-left)) 80px; min-height:calc(100svh - 183px); }
.checkout-heading { margin-bottom:38px; }
.checkout-heading h1 { font-size:clamp(36px,4vw,57px); letter-spacing:-.03em; line-height:1.12; }
.checkout-heading p { color:var(--muted); margin-top:14px; max-width:50ch; }
.checkout-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(300px,.9fr); gap:clamp(32px,6vw,86px); align-items:start; }
.checkout-layout[hidden],.checkout-empty[hidden],[data-step][hidden] { display:none; }
.checkout-flow,.checkout-summary { min-width:0; }
.checkout-steps { display:flex; list-style:none; padding:0 0 26px; margin:0 0 30px; gap:24px; border-bottom:1px solid var(--line); color:var(--muted); font-size:14px; }
.checkout-steps li { display:flex; gap:8px; align-items:center; }
.checkout-steps span { display:grid; place-items:center; border:1px solid var(--line); width:25px; height:25px; border-radius:50%; font-size:12px; }
.checkout-steps [aria-current="step"] { color:var(--ink); }
.checkout-steps [aria-current="step"] span { border-color:var(--action); background:var(--action); color:var(--action-ink); }
#checkout-fields { border:0; padding:0; margin:0; min-width:0; }
#checkout-fields:disabled { opacity:.55; }
[data-step] h2 { font-size:31px; letter-spacing:-.02em; line-height:1.2; }
[data-step] h2:focus { outline:none; }
.step-intro { color:var(--muted); margin:12px 0 27px; font-size:14px; max-width:49ch; }
.checkout-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:21px 18px; }
.field-wide { grid-column:1/-1; }
.field { min-width:0; }
.field > label { display:block; margin-bottom:7px; font-size:14px; }
.field label span { color:var(--muted); }
.field input:not([type="checkbox"]),.field select { width:100%; min-height:49px; border:1px solid var(--line); background:var(--paper); padding:12px 13px; color:var(--ink); font:inherit; font-size:16px; border-radius:0; }
.field select:focus-visible,.check-label input:focus-visible,.order-details summary:focus-visible { outline:2px solid var(--focus); outline-offset:4px; }
.field input::placeholder { color:var(--muted); opacity:.75; }
.field [aria-invalid="true"] { border-color:var(--error); }
.checkout-page { --error:#a23642; }
:root[data-theme="dark"] .checkout-page { --error:#ffb1b7; }
.field-error { display:block; font-size:12px; color:var(--error); margin-top:5px; }
.field-error:empty { display:none; }
.cep-feedback { color:var(--muted); font-size:13px; line-height:1.6; margin-top:-12px; }
.cep-feedback:has(p:empty):has(button[hidden] + button[hidden]) { display:none; }
.cep-feedback p { margin:0; }
.cep-feedback [data-state="error"] { color:var(--error); }
.cep-feedback button[hidden] { display:none; }
.checkout-privacy a { text-decoration:underline; text-underline-offset:3px; }
.field .check-label { display:flex; align-items:center; gap:8px; min-height:36px; margin:6px 0 0; }
.check-label input { width:17px; height:17px; accent-color:var(--action); }
.next-step { width:100%; margin-top:30px; }
.plain-button { border:0; padding:9px 0; min-height:44px; font-size:13px; text-decoration:underline; text-underline-offset:4px; color:var(--muted); }
.plain-button:hover { color:var(--ink); }
.step-actions .plain-button { margin-top:6px; }
.form-message { font-size:14px; margin-top:16px; color:var(--muted); }
.form-message:empty { display:none; }
.checkout-privacy { font-size:12px; color:var(--muted); line-height:1.65; margin-top:22px; max-width:52ch; }
.checkout-summary { background:var(--surface); padding:27px; position:sticky; top:126px; }
.summary-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:14px; }
.summary-heading h2 { font-size:29px; }
.order-details summary { cursor:pointer; font-size:13px; padding:8px 0; color:var(--muted); }
.checkout-item-count { margin-left:5px; }
.checkout-items { padding-top:4px; max-height:400px; overflow-y:auto; overscroll-behavior:contain; }
.checkout-item { display:grid; grid-template-columns:66px minmax(0,1fr); gap:16px; align-items:center; padding:17px 0; border-bottom:1px solid var(--line); }
.checkout-item img { width:66px; height:88px; object-fit:contain; }
.checkout-item h3 { font-size:16px; font-weight:450; line-height:1.35; margin:3px 0; }
.checkout-item p { font-size:12px; color:var(--muted); }
.checkout-item div { min-width:0; overflow-wrap:anywhere; }
.checkout-item .checkout-line-total { margin-top:8px; font-size:14px; color:var(--ink); }
.checkout-totals { margin:22px 0 0; }
.checkout-totals div { display:flex; justify-content:space-between; gap:20px; font-size:14px; margin-top:11px; }
.checkout-totals div:first-child { font-size:18px; }
.checkout-totals dd { margin:0; }
.checkout-note,.checkout-price-note { color:var(--muted); font-size:12px; line-height:1.65; margin-top:17px; }
.checkout-price-note:empty { display:none; }
.shipping-panel { margin-top:28px; padding-top:22px; border-top:1px solid var(--line); }
.shipping-panel[hidden] { display:none; }
.shipping-panel h3 { font-size:21px; font-weight:450; }
.shipping-panel .checkout-note { margin-top:10px; }
#shipping-status { font-size:13px; color:var(--muted); margin:8px 0; }
.shipping-option { display:flex; gap:12px; align-items:center; padding:18px 0; border-bottom:1px solid var(--line); cursor:pointer; }
.shipping-option input { accent-color:var(--action); width:18px; height:18px; flex-shrink:0; }
.shipping-option span { flex:1; min-width:0; }
.shipping-option strong,.shipping-option b { font-size:14px; font-weight:500; }
.shipping-option small { display:block; margin-top:4px; font-size:12px; color:var(--muted); }
#review-shipping:empty { display:none; }
.review-section { border-top:1px solid var(--line); padding:16px 0 22px; }
.review-heading { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:9px; }
.review-heading h3,.payment-pending h3 { font-size:16px; font-weight:500; }
.review-section > p:not(.checkout-note) { white-space:pre-line; font-size:15px; line-height:1.8; overflow-wrap:anywhere; }
.payment-pending { padding:23px 0 0; border-top:1px solid var(--line); }
.payment-pending p { color:var(--muted); font-size:14px; line-height:1.7; margin-top:12px; max-width:52ch; }
.payment-pending .button { margin-top:22px; width:100%; }
.checkout-empty { max-width:560px; padding:20px 0 60px; }
.checkout-empty h2 { font-size:32px; }
.checkout-empty p { color:var(--muted); margin:14px 0 25px; max-width:48ch; }
.checkout-footer { padding:25px var(--gutter); display:flex; gap:20px; justify-content:space-between; border-top:1px solid var(--line); font-size:12px; color:var(--muted); }
.mobile-back-link { display:none; }
@media (max-height:750px) { .checkout-summary { position:static; } }
@media (max-width:900px) {
  .checkout-shell { padding-top:29px; padding-bottom:46px; }
  .checkout-heading { margin-bottom:27px; }
  .checkout-heading h1 { font-size:38px; }
  .checkout-heading p { font-size:14px; }
  .checkout-layout { grid-template-columns:minmax(0,1fr); gap:34px; }
  .checkout-summary { position:static; order:-1; padding:18px 21px; }
  .summary-heading { margin-bottom:0; }
  .summary-heading h2 { font-size:25px; }
  .checkout-summary .text-link { display:none; }
  .checkout-totals { margin-top:13px; }
  .checkout-steps { gap:22px; margin-bottom:26px; }
  .checkout-back-link { display:none; }
  .mobile-back-link { display:inline-block; font-size:13px; text-decoration:underline; text-underline-offset:4px; margin-bottom:21px; }
}
@media (max-width:359px) {
  .checkout-steps { gap:12px; font-size:13px; }
  .checkout-fields { grid-template-columns:minmax(0,1fr); }
  .checkout-heading h1 { font-size:33px; }
}
