.checkout-header { max-width:1280px; margin:auto; padding:36px 48px; display:flex; align-items:center; justify-content:space-between; gap:24px; border-bottom:1px solid var(--line); }
.checkout-back { font-size:12px; display:flex; align-items:center; gap:12px; min-height:44px; }
.checkout-back:hover,.summary-edit:hover,.checkout-footer a:hover { text-decoration:underline; text-underline-offset:5px; }
.checkout-main { max-width:1184px; margin:auto; padding:54px 48px 72px; }
.checkout-heading h1 { font-size:clamp(36px,4vw,58px); letter-spacing:-.05em; margin:16px 0; }
.checkout-heading h1>span { color:var(--accent); }
.checkout-preview-note { font-size:11px; line-height:1.6; color:var(--muted); margin:0 0 36px; }
.checkout-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:72px; align-items:start; }
.checkout-flow { min-width:0; grid-column:1; grid-row:1; }
.checkout-steps { display:flex; gap:24px; list-style:none; padding:0 0 22px; margin:0 0 32px; border-bottom:1px solid var(--line); font-size:11px; line-height:1.5; }
.checkout-steps li { color:var(--muted); display:flex; align-items:center; gap:9px; }
.checkout-steps li[aria-current] { color:var(--ink); }
.checkout-steps li>span { border:1px solid var(--line); border-radius:50%; width:27px; height:27px; display:grid; place-items:center; flex-shrink:0; font-size:9px; }
.checkout-steps li[aria-current]>span { background:var(--ink); color:var(--paper); border-color:var(--ink); }
#checkout-form fieldset { border:0; padding:0; margin:0 0 28px; min-width:0; }
#checkout-form legend { font-size:20px; font-weight:500; letter-spacing:-.025em; margin:0 0 18px; padding:0; }
.fieldset-note { margin:-8px 0 22px; font-size:10px; color:var(--muted); line-height:1.6; }
.field-pair { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.postal-city { grid-template-columns:.65fr 1fr; }
.checkout-field { margin-bottom:18px; min-width:0; }
.checkout-field label { display:block; font-size:12px; margin:0 0 9px; }
.checkout-field label>span { color:var(--muted); font-size:10px; }
.checkout-field input,.checkout-field select { width:100%; min-height:48px; border:1px solid #bcb8af; border-radius:0; background:#fff9; color:var(--ink); padding:12px 13px; font-size:16px; }
.checkout-field input::placeholder { font-size:12px; color:#827e76; }
.checkout-field input[aria-invalid=true],.checkout-field select[aria-invalid=true] { border-color:var(--accent); }
.field-error,.field-hint { display:block; font-size:10px; line-height:1.5; margin-top:6px; }
.field-hint { color:var(--muted); }
.field-error { color:#943729; }
.field-error:empty { display:none; }
.shipping-choice { display:flex; align-items:flex-start; gap:12px; border:1px solid var(--line); padding:18px 16px; margin-bottom:22px; font-size:12px; line-height:1.5; }
.shipping-choice-dot { width:14px; height:14px; border:4px solid var(--ink); border-radius:50%; flex-shrink:0; margin-top:2px; }
.shipping-choice>div { flex:1; }
.shipping-choice strong { font-weight:500; }
.shipping-choice p { font-size:10px; margin:5px 0 0; color:var(--muted); }
.shipping-choice>strong { white-space:nowrap; }
.checkout-next { width:100%; justify-content:space-between; min-height:54px; }
.form-errors { font-size:12px; color:#943729; line-height:1.6; }
.checkout-local-note { color:var(--muted); font-size:10px; line-height:1.7; margin:18px 0 0; }
.order-summary { grid-column:2; grid-row:1; background:var(--tile); padding:28px; position:sticky; top:28px; min-width:0; }
.summary-heading { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:8px; }
.summary-heading h2 { font-size:19px; font-weight:500; letter-spacing:-.025em; margin:0; }
.summary-heading>span { font-size:10px; color:var(--muted); white-space:nowrap; }
.summary-item { display:grid; grid-template-columns:65px minmax(0,1fr) auto; gap:14px; align-items:center; padding:20px 0; border-bottom:1px solid #d0ccc3; }
.summary-item .shirt-mockup { background:#e1ded6; }
.summary-item h3 { margin:0; font-size:13px; line-height:1.4; font-weight:500; }
.summary-item p { font-size:10px; line-height:1.6; color:var(--muted); margin:5px 0; }
.summary-item-copy>span { font-size:10px; }
.summary-item>strong { font-size:12px; font-weight:500; white-space:nowrap; }
.summary-shipping-note { font-size:10px; line-height:1.6; margin:19px 0; color:var(--accent); }
.checkout-totals { margin:24px 0 0; }
.checkout-totals>div { display:flex; align-items:center; justify-content:space-between; gap:15px; font-size:12px; margin:14px 0; }
.checkout-totals dd { margin:0; }
.checkout-totals .checkout-total { border-top:1px solid #d0ccc3; padding-top:20px; margin-top:20px; font-size:23px; letter-spacing:-.025em; }
.summary-edit { font-size:11px; display:flex; align-items:center; justify-content:space-between; padding:15px 0 0; min-height:44px; }
.checkout-review h2 { font-size:26px; font-weight:500; letter-spacing:-.035em; margin:0 0 30px; }
.review-heading { display:flex; justify-content:space-between; align-items:center; gap:15px; font-size:12px; }
.review-heading h3 { font-size:13px; font-weight:500; margin:0; }
.text-button { background:transparent; border:0; border-bottom:1px solid var(--line); min-height:44px; padding:10px 0; font-size:11px; color:var(--muted); }
.review-value { white-space:pre-line; overflow-wrap:anywhere; color:var(--muted); font-size:13px; line-height:1.8; margin:10px 0 24px; padding-bottom:24px; border-bottom:1px solid var(--line); }
.payment-card { border:1px solid var(--line); background:#fff5; padding:24px; margin-top:28px; }
.payment-card-heading { display:flex; justify-content:space-between; gap:16px; align-items:center; }
.payment-card h3 { font-size:17px; font-weight:500; letter-spacing:-.02em; margin:0; }
.payment-card p { font-size:12px; line-height:1.7; color:var(--muted); margin:16px 0; }
.paypal-wordmark { font-weight:700; font-style:italic; font-size:20px; letter-spacing:-.6px; }
.paypal-wordmark>span:first-child { color:#003087; }
.paypal-wordmark>span:last-child { color:#0070e0; }
.paypal-pending { width:100%; min-height:50px; border:0; background:#ffc439; border-radius:3px; display:flex; gap:7px; align-items:center; justify-content:center; font-size:13px; color:#172b43; }
.payment-card .payment-availability { font-size:10px; margin:12px 0 0; }
.checkout-empty { border-top:1px solid var(--line); padding:35px 0 60px; }
.checkout-empty h2 { font-size:26px; font-weight:500; letter-spacing:-.025em; }
.checkout-empty p { font-size:14px; line-height:1.6; color:var(--muted); margin-bottom:24px; }
.checkout-footer { max-width:1184px; margin:auto; padding:24px 48px 30px; display:flex; justify-content:space-between; gap:20px; font-size:10px; color:var(--muted); border-top:1px solid var(--line); }
.cart-footer #cart-checkout { margin-top:20px; }
.cart-footer #cart-continue { background:transparent; color:var(--ink); border-color:var(--line); }
@media(max-width:1000px) { .checkout-layout { gap:36px; } .checkout-main { padding:40px 32px 60px; } .order-summary { padding:22px; } .summary-item { gap:10px; grid-template-columns:55px minmax(0,1fr) auto; } }
@media(max-width:760px) { .checkout-header { padding:20px 24px; } .checkout-layout { grid-template-columns:1fr; gap:32px; } .checkout-main { padding:34px 24px 48px; } .order-summary { position:static; grid-column:1; grid-row:1; } .checkout-flow { grid-row:2; } .checkout-steps { gap:18px; } .checkout-footer { padding:24px; } }
@media(max-width:380px) { .checkout-main { padding-left:18px; padding-right:18px; } .checkout-header { padding-left:18px; padding-right:18px; } .checkout-back { font-size:10px; gap:7px; } .checkout-steps { gap:10px; font-size:10px; } .field-pair { gap:12px; } .payment-card { padding:18px; } .order-summary { padding:18px; } }

#paypal-buttons {margin:20px 0 12px;min-height:48px;}
#paypal-button {display:block;width:100%;}
#paypal-button[hidden] {display:none;}
#payment-signin {display:inline-block;margin-top:12px;text-decoration:underline;}
#payment-signin[hidden] {display:none;}
#payment-recheck {margin-top:12px;}
.payment-availability {white-space:pre-line;}
/* Owner-visible Sandbox order history. */
.test-orders{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px}
.test-order{padding:24px;border:1px solid var(--line,#dedbd4);background:#fff}
.test-order-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.test-order-heading h2{margin:0;font-size:24px}
.test-order-heading span{font-size:13px;color:#65625c}
.test-order-reference{overflow-wrap:anywhere;font-size:13px}
.test-order p{line-height:1.55}
.test-order .text-button{min-height:44px;text-align:left;white-space:normal}
@media(max-width:700px){.test-orders{grid-template-columns:1fr}.test-order{padding:20px}.test-order-heading{flex-wrap:wrap}}
.tracking-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin:22px 0}
.tracking-columns .test-order{margin:0}
.tracking-actions{display:flex;flex-wrap:wrap;gap:16px}
.tracking-link{display:block;min-height:44px;padding-top:16px;text-decoration:underline;text-underline-offset:5px}
.tracking-timeline{list-style:none;padding:0;margin:24px 0}
.tracking-timeline li{border-left:2px solid #a3442e;padding:0 0 20px 18px;line-height:1.6}
.tracking-timeline li span{display:block;font-size:12px;color:#66665d}
.tracking-timeline .timeline-empty{border-color:#deddd5;font-size:14px;font-weight:400}
.simulation-panel{background:#efe5da}
.email-preview{margin-top:24px;border-top:1px solid #deddd5;padding-top:20px}
.email-preview summary{cursor:pointer;padding:14px 0;min-height:44px;text-decoration:underline;text-underline-offset:5px}
.email-preview iframe{display:block;border:1px solid #deddd5;width:100%;height:900px;background:#f6f5ef}
.test-order p,.test-order h3{overflow-wrap:anywhere}
@media(max-width:700px){.tracking-columns{grid-template-columns:1fr}.email-preview iframe{height:1000px}}
.operations-panel{margin-top:24px;border-left:4px solid #a3442e}.operations-issues{padding-left:20px;line-height:1.6}.operations-issues li+li{margin-top:16px}.operation-warning{padding:12px 16px;background:#f7ebe3;color:#773320;border-left:3px solid #a3442e;line-height:1.6}.operations-panel .button{white-space:normal;margin:12px 0;max-width:100%}

/* Checkout: shorter flow, quieter context and collapsible item list on mobile. */
.checkout-page .checkout-header { padding-top: 22px; padding-bottom: 22px; }
.checkout-page .checkout-main { padding-top: 32px; }
.checkout-heading h1 { font-size: clamp(34px,4vw,48px); margin: 0 0 12px; }
.checkout-preview-note { margin-bottom: 28px; }
.checkout-layout { gap: 54px; }
.checkout-steps { margin-bottom: 24px; padding-bottom: 18px; font-size: 13px; }
#checkout-form legend { font-size: 18px; margin-bottom: 16px; }
#checkout-form fieldset { margin-bottom: 20px; }
.checkout-field { margin-bottom: 14px; }
.checkout-field label { margin-bottom: 7px; }
.address-extra { margin: 0 0 14px; font-size: 12px; }
.address-extra summary { cursor: pointer; padding: 8px 0; color: var(--muted); }
.address-extra .checkout-field { margin: 8px 0 0; }
.checkout-next { justify-content: center; font-size: 14px; }
.order-summary { padding: 24px; }
.summary-heading { margin-bottom: 6px; }
.summary-heading .summary-edit { padding: 0; min-height: 36px; text-decoration: underline; text-underline-offset: 4px; }
.summary-products summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; padding: 10px 0; font-size: 12px; list-style: none; }
.summary-products summary::-webkit-details-marker { display: none; }
.summary-products summary::after { content: '+'; font-size: 20px; }
.summary-products[open] summary::after { content: '−'; }
.summary-detail-label { margin-left: auto; color: var(--muted); font-size: 11px; }
.summary-products[open] .summary-detail-label { display: none; }
.summary-item { padding: 14px 0; }
.summary-shipping-note { margin: 14px 0; }
.checkout-totals { margin-top: 18px; }
.checkout-totals .checkout-total { padding-top: 16px; margin-top: 16px; }
.checkout-test-info { margin-top: 18px; font-size: 11px; color: var(--muted); }
.checkout-test-info summary { cursor: pointer; padding: 10px 0; }
.checkout-test-info .checkout-local-note { margin: 0 0 12px; }
.checkout-review h2 { margin-bottom: 20px; }
.review-value { margin-bottom: 18px; padding-bottom: 18px; }
.payment-card { padding: 20px; margin-top: 20px; }
@media(max-width:760px) {
  .checkout-page .checkout-main { padding: 26px 20px 40px; }
  .checkout-page .checkout-header { padding: 16px 20px; }
  .checkout-layout { gap: 26px; }
  .order-summary { padding: 18px 20px; }
  .checkout-preview-note { margin-bottom: 22px; }
  .checkout-totals>div { margin: 10px 0; }
  .checkout-totals .checkout-total { padding-top: 12px; margin-top: 12px; margin-bottom: 0; }
}

.summary-final-total { margin-top: 0; }
.summary-final-total .checkout-total { margin-top: 12px; }

.summary-item>.line-price { max-width:140px; text-align:right; }
.summary-item .line-price>strong { font-size:13px; }
.summary-item .line-unit-offer { font-size:10px; }
#summary-discount-row { font-size:11px; color:#39634b; }

/* Compact checkout: one expandable total, then the fields without a fixed overlay. */
.checkout-page .checkout-main { max-width:1080px; padding-top:26px; }
.checkout-page .checkout-heading h1 { font-size:36px; margin-bottom:8px; }
.checkout-page .checkout-preview-note { margin-bottom:20px; }
.checkout-page .checkout-layout { gap:40px; }
.checkout-page .order-summary { padding:0 18px; }
.checkout-page .summary-products summary { min-height:78px; padding:12px 0; gap:12px; }
.summary-compact-label { display:flex; flex-direction:column; gap:4px; }
.summary-compact-label>span { font-size:13px; }
.summary-compact-label small { font-size:11px; color:var(--muted); text-decoration:underline; text-underline-offset:3px; }
.summary-compact-total { margin-left:auto; text-align:right; }
.summary-compact-total strong { display:block; font-size:23px; font-weight:500; letter-spacing:-.025em; white-space:nowrap; }
.summary-compact-total small { display:block; margin-top:4px; font-size:10px; color:var(--muted); }
.checkout-page .summary-products summary::after { font-size:18px; color:var(--muted); }
.checkout-page .summary-products[open] summary { border-bottom:1px solid var(--line); }
.checkout-page .checkout-breakdown { margin-top:12px; }
.checkout-page .checkout-breakdown>div { margin:10px 0; font-size:11px; }
.checkout-page .summary-edit { display:block; padding:10px 0 14px; min-height:44px; text-decoration:underline; text-underline-offset:4px; }
.checkout-page .checkout-steps { border:0; margin-bottom:20px; padding:0; gap:20px; font-size:12px; }
.checkout-page .checkout-steps li { gap:5px; }
.checkout-page .checkout-steps li>span { width:auto; height:auto; border:0; border-radius:0; font-size:12px; background:none; color:inherit; }
.checkout-page .checkout-steps li[aria-current] { font-weight:600; }
.checkout-page #checkout-form legend { font-size:16px; margin-bottom:12px; }
.checkout-page #checkout-form fieldset { margin-bottom:14px; }
.checkout-page .checkout-field { margin-bottom:12px; }
.checkout-page .checkout-field label { margin-bottom:5px; font-size:12px; }
.checkout-page .checkout-field input,.checkout-page .checkout-field select { min-height:46px; padding:10px 12px; }
.checkout-page .field-pair { gap:12px; }
.checkout-page .address-extra { margin-bottom:10px; }
.checkout-page .address-extra summary { min-height:44px; padding:12px 0; }
.checkout-page .checkout-next { min-height:48px; }
.checkout-page .review-delivery { border-bottom:1px solid var(--line); padding-bottom:18px; }
.checkout-page .review-delivery .review-value { border:0; margin:0 0 8px; padding:0; font-size:13px; line-height:1.6; }
.checkout-page .review-delivery>small { display:block; color:var(--muted); font-size:11px; margin-top:10px; }
.checkout-page .payment-card { border:0; background:transparent; padding:0; margin-top:24px; }
.checkout-page .payment-card h3 { font-size:16px; }
.checkout-page .checkout-test-info { margin-top:14px; }
.checkout-page .checkout-test-info summary { min-height:44px; padding:12px 0; }
@media(max-width:760px) {
  .checkout-page .checkout-header { padding:10px 18px; }
  .checkout-page .checkout-header .brand img { width:100px; height:auto; }
  .checkout-page .checkout-back { font-size:11px; gap:6px; }
  .checkout-page .checkout-main { padding:20px 18px 30px; }
  .checkout-page .checkout-heading h1 { font-size:30px; }
  .checkout-page .checkout-preview-note { font-size:10px; margin-bottom:16px; }
  .checkout-page .checkout-layout { gap:22px; }
  .checkout-page .order-summary { padding:0 14px; }
  .checkout-page .summary-products summary { min-height:76px; }
  .checkout-page .checkout-steps { margin-bottom:18px; }
  .checkout-page .checkout-footer { padding:20px 18px; gap:12px 20px; }
  .checkout-page .checkout-footer .legal-nav { gap:10px 16px; font-size:10px; }
}

/* Direct PayPal checkout: one recap, one action, no duplicate address form. */
.checkout-page.paypal-direct .checkout-main { max-width:760px; }
.checkout-page.paypal-direct .checkout-layout { grid-template-columns:1fr; gap:30px; }
.paypal-direct .order-summary { grid-column:1; grid-row:1; position:static; }
.paypal-direct .checkout-flow { grid-column:1; grid-row:2; }
.paypal-direct .checkout-review h2 { margin:0 0 12px; font-size:24px; }
.paypal-direct-intro { font-size:14px; line-height:1.65; margin:0; max-width:480px; }
.paypal-direct-destinations { color:var(--muted); font-size:12px; line-height:1.5; margin:12px 0 0; }
.paypal-direct .payment-card-heading { display:none; }
.paypal-direct #paypal-buttons { margin-top:0; }
@media(max-width:760px) {
  .checkout-page.paypal-direct .checkout-layout { gap:24px; }
  .paypal-direct .checkout-review h2 { font-size:22px; }
}
