html:has(.co-header){scroll-padding-top:calc(var(--header-h) + 24px)}
/* A quick second tap on a checkout control is two presses, never a zoom; pinch zoom stays available. */
#checkout :is(button,a,input,select,label,.co-rate),.co-back{touch-action:manipulation}
/* ---------- express checkout ----------
   A wallet sheet collects contact, address, delivery and payment in one pass,
   so express sits above the address step as a single quiet frame: a small
   label, the two platform buttons, and nothing else competing with them. The
   manual path below the divider never offers a wallet a second time. */
#co-express-checkout{--co-wallet-h:48px;--co-wallet-radius:var(--radius);scroll-margin-top:calc(var(--header-h) + 16px);display:grid;gap:12px;min-width:0;margin:0 0 16px;padding:18px 16px 16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
#co-express-checkout[hidden]{display:none}
/* The wallet block keeps its room while a payment started on the page is in progress: unseen, never collapsed, so the steps do not move. */
#co-express-checkout.is-held,.co-express-divider.is-held{visibility:hidden}
/* It is seen again in the same frame it takes input again: the reduced-motion rule in styles.css gives every property a short transition,
   which would otherwise delay that by a frame. */
#co-express-checkout,.co-express-divider{transition-property:none}
/* A device with no wallet must get no frame at all, not a titled empty box —
   and an "or" with nothing above it is worse than no divider. */
#co-express-checkout:not([data-pending]):not(:has(.co-express-apple,.co-express-google:not(:empty))){display:none}
#co-express-checkout[hidden]+.co-express-divider,
#co-express-checkout:not([data-pending]):not(:has(.co-express-apple,.co-express-google:not(:empty)))+.co-express-divider{display:none}
/* The first paint holds this block's room when this device was offered a wallet last time (checkout.html ships its markup inside .co-express-room, js/checkout-shipping-ui.js gives it back; js/checkout-coordinator.js sets the attributes that show it). A flow-root
   keeps the block's and the divider's margins inside the room, so the room's height is exactly what it holds and can close in one move. */
.co-express-room{display:flow-root;transition:height .3s var(--ease),opacity .2s var(--ease)}
.co-express-room[data-releasing]{overflow:hidden;opacity:0}
.co-express-room[data-released]{display:contents}
html:not([data-co-wallets="held"]) .co-express-room:has(>[data-stand]){display:none}
html:not([data-co-wallet-slots="2"]) #co-express-checkout[data-stand] .co-express-slot:nth-child(2){display:none}
@media(prefers-reduced-motion:reduce){.co-express-room{transition:none}}
/* While the wallets are still being checked their space is already held, so nothing below moves when they settle. */
.co-express-slot{height:var(--co-wallet-h);border-radius:var(--co-wallet-radius)}
/* The buttons and the one processing line share a cell: the block keeps its height in every state. */
.co-express-stage{display:grid;min-width:0}
.co-express-stage>*{grid-area:1/1;min-width:0}
.co-express-processing{margin:0;display:flex;align-items:center;justify-content:center;gap:10px;min-height:var(--co-wallet-h);font-size:14px;color:var(--ink-2)}
.co-express-stage{position:relative}
.co-express-processing:not([data-on]){position:absolute;width:1px;height:1px;min-height:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.co-express-processing .co-spin{border-color:color-mix(in srgb,var(--ink) 22%,transparent);border-top-color:var(--ink)}
#co-express-checkout[data-processing] .co-express-wallets{visibility:hidden}
#co-express-checkout[data-escalated],#co-express-checkout[data-escalated]+.co-express-divider{display:none}
#co-steps[data-held],#co-steps>.co-step[data-held],#co-summary[data-held]{opacity:.5}
#co-express-checkout[data-state=waiting] .co-express-wallets{opacity:.55}
/* One inline message for a payment that did not complete; nothing was charged. It is a quiet line under the control the shopper just used (the wallet buttons, the card form, a saved card's pay control), in the small-text scale of the lines around it: a thin rule on the left edge says it did not go through, and nothing is filled, so it is never as loud as the controls it sits beside. */
.co-hint.co-notice,.co-shared-payment>.co-hint.co-notice{margin:0;padding:2px 0 2px 10px;border:0;border-left:2px solid var(--ink-3);border-radius:0;background:none;color:var(--ink);font-size:13px;line-height:1.5;scroll-margin-block:16px}
.co-notice[hidden]{display:none}
/* The message takes focus only so it is read out and the shopper's place is kept; it is not a control, so no ring is drawn around it. */
.co-notice[tabindex="-1"]:focus{outline:none}
.co-express-title{margin:0;text-align:center;font-family:var(--font-sans);font-size:14px;font-weight:450;line-height:1.4;letter-spacing:0;color:var(--ink-2)}
.co-express-wallets{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:10px;min-width:0}
/* A wallet the device cannot offer leaves an empty host; never a blank slab. */
.co-express-wallets:empty,.co-express-google:empty,.co-express-terms:empty{display:none}
/* Both marks are drawn by the platform: size the box, never the glyph inside
   it. The id scope outranks the stylesheet Google injects for its button. */
.co-express-apple,#co-express-checkout .co-express-google button{width:100%;min-width:0;height:var(--co-wallet-h);min-height:var(--co-wallet-h);border-radius:var(--co-wallet-radius);cursor:pointer}
/* Platform artwork intentionally stays white on black in both site themes. */
.co-express-apple{display:flex;align-items:center;justify-content:center;background:#000;color:#fff;border:0;outline:0;font-size:14px;font-weight:600;letter-spacing:.02em;-webkit-appearance:-apple-pay-button;appearance:-apple-pay-button;-apple-pay-button-type:plain;-apple-pay-button-style:black}
.co-express-google{display:grid;min-width:0;min-height:var(--co-wallet-h)}
#co-express-checkout .co-express-google>div{display:grid;width:100%;min-width:0}
.co-express-apple:focus-visible,#co-express-checkout .co-express-google button:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.co-express-apple:disabled,#co-express-checkout .co-express-google button:disabled{opacity:.55;cursor:progress}
.co-express-terms{margin:0;justify-self:center;max-width:none;font-size:12px;line-height:1.5;text-wrap:balance;color:var(--muted);text-align:center}
.co-express-terms a{color:var(--ink-2);text-decoration:underline;text-underline-offset:3px}
.co-express-terms a:hover{color:var(--ink)}
.co-express-divider{display:flex;align-items:center;gap:14px;margin:0 0 16px;color:var(--muted)}
.co-express-divider::before,.co-express-divider::after{content:"";flex:1 1 0;height:1px;background:var(--line-2)}
.co-express-divider span{font-family:var(--font-sans);font-size:12px;font-weight:400;letter-spacing:0;text-transform:lowercase}
#co-express-checkout>.co-express-divider{margin:0}
@media(max-width:520px){#co-express-checkout{padding:16px 14px;gap:12px}.co-express-divider{gap:10px;margin-bottom:14px}}
/* Native wallet controls preserve the compact checkout rhythm. The payment
   step already names the stage, so the mounted collector adds no frame of its
   own and the status line it owns keeps the step's caption rhythm. */
.co-shared-payment { display: grid; gap: 12px; min-width: 0; }
.co-processing{display:flex;align-items:center;justify-content:center;gap:16px;min-height:112px;padding:24px 16px;color:var(--ink);text-align:left}
.co-processing[hidden]{display:none}
.co-shared-payment--wallet{padding:24px 16px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.co-shared-payment--wallet .co-processing{min-height:192px;padding:24px 0}
#co-steps[hidden]{display:none}
.co-processing__mark{width:40px;height:40px;flex:none;overflow:visible}
.co-processing__mark circle{fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}
.co-processing__mark path{fill:currentColor}
.co-processing__track{opacity:.16}
.co-processing__spin{transform-origin:16px 16px;animation:co-payment-orbit 1.6s cubic-bezier(.45,.3,.55,.7) infinite}
.co-processing__text{display:grid;gap:4px;min-width:0}
.co-processing__text strong{font-size:16px;font-weight:500;line-height:1.4;letter-spacing:-.01em;text-wrap:balance}
.co-processing__text span{font-size:13px;line-height:1.5;color:var(--muted);text-wrap:pretty}
@keyframes co-payment-orbit{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.co-processing__spin{animation:none}}
.co-shared-payment > button { min-height: 44px; }
#co-shared-payment + .co-legal {margin: 6px 0 0}
.co-shared-payment > .co-hint { margin: 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
.co-shared-payment > .co-hint:empty { display: none; }
/* What pressing a stored card's Pay button confirms: set as the card form sets the same sentence under its own button. */
.co-shared-payment > .co-saved-terms { margin: 0; font-size: 12px; line-height: 1.55; color: var(--muted); text-align: center; }
/* The payment's words while it is in progress, in their own line directly under the Pay that was pressed (or under a card form that cannot draw them under its own), set as the sentence below it. */
.co-wait-line { margin: 0; font-size: 12px; line-height: 1.55; color: var(--muted); text-align: center; text-wrap: pretty; }
/* The Pay button that was pressed is the progress: the same button, its color, size and corners, with the processing mark beside the words. */
.co-shared-payment > .btn--accent[aria-busy="true"], .co-shared-payment > .btn--accent[aria-busy="true"]:hover { --bg: var(--ink); --bd: var(--ink); background: var(--bg); color: var(--fg); border-color: var(--bd); box-shadow: none; transform: none; cursor: progress; }
.co-shared-payment > .btn .co-processing__mark { width: 18px; height: 18px; margin-block: -4px; }
/* The cards stay where they are, dimmed (the disabled look below) and out of reach of the pointer. */
.co-shared-payment.is-paying .co-pay__methods { pointer-events: none; }
/* What the payment is doing (still being checked, total changed, sign in again, order confirmation taking longer) is read at the size of the other inline messages, not as a caption. */
.co-shared-payment > .co-status:not(:empty) { font-size: 14px; line-height: 1.5; color: var(--ink); }
.co-shared-payment > .co-status:empty,.co-shared-payment > .co-status--sr { position: absolute; display: block; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.co-shared-payment > .co-gate__title { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight:450; color: var(--ink); }
.co-shared-payment iframe[hidden] { display: none; }
.co-shared-payment iframe { display: block; width: 100%; min-width: 0; border: 0; border-radius: var(--radius-sm); background: transparent; }
.co-shared-apple { -webkit-appearance: -apple-pay-button; -apple-pay-button-type: pay; -apple-pay-button-style: black; min-height: 48px; }

/* Manual checkout has one spacing scale for street, country, phone and locality. */
:is(#co-steps, [data-addr-form]) {
  --co-field-height: 48px;
  --co-field-space: 12px;
  --co-input-font: 15px;
  --co-field-pad: 13px;
  /* The value's own line, left clear of the floated label above it. */
  --co-value-top: 18px;
  /* How far the label rises out of the value's place, and how far it shrinks. */
  --co-label-lift: 11px;
  --co-label-scale: .76;
}
/* One inset for every step, open, finished or still locked, so a heading's
   left edge never shifts as the customer works down the page. */
#co-steps .co-step > .co-step__head {padding: 14px clamp(14px, 2vw, 20px)}
#co-steps .co-step > .co-step__body {padding: 16px clamp(14px, 2vw, 20px) 18px}
/* The active step is the one with a body open under it and a filled step
   number beside it; a hard black outline around the whole card said the same
   thing a third time, and loudly. A warm tertiary edge over the resting
   hairline, lifted a hair, is the same signal at the storefront's volume. */
#co-steps .co-step {border-radius:var(--radius);background:var(--surface)}
#co-steps .co-step.is-open {border-color:var(--line);background:var(--surface);box-shadow:none}

/* ---------- finished steps ----------
   A finished step is a receipt line, not a card competing with the open one.
   Its head closes onto the recap instead of sitting in the middle of its own
   padding, the recap starts under the TITLE rather than under the step number
   beside it, and what was entered reads at caption size under the name of the
   thing it answers. The left inset is the head's own, so the two line up. */
#co-steps .co-step.is-done > .co-step__head {padding-bottom: 6px}
#co-steps .co-step__recap {
  margin-left: 38px;
  padding: 0 clamp(14px, 2vw, 20px) 14px;
}
#co-steps .co-step__recap b {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
#co-steps .co-step__recap p {margin-top: 1px; font-size: 12.5px; line-height: 1.6; color: var(--ink-3)}
/* Finished steps stack closer than an open one needs to stand apart. */
#co-steps .co-step:not(.is-open) {margin-bottom: 10px}

/* ---------- fields: the label is the placeholder ----------
   Shopify's checkout text field, which is the pattern asked for: the label
   starts in the value's own place at the value's own size, and focus or a
   value lifts it to the top of the same box while the value takes the line
   beneath. Nothing disappears at the moment a field is filled — the failure
   of a bare placeholder — and eleven fields do not each spend a second line
   on a caption stacked above the control.

   Lifted is the DEFAULT and resting is the override, because the override is
   driven by :placeholder-shown. A control that can never report it — a
   select, a destination printed back as plain text — therefore keeps its
   label legible above the value instead of hiding it underneath one. Every
   input in here carries a placeholder for that reason, a single space where
   there is no format hint worth showing.

   The <label> element is the visible box; the input keeps the association,
   the autofill and the validation state it already had. */
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field {
  position: relative;
  display: block;
  margin-bottom: var(--co-field-space);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  cursor: text;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
/* display:block above outranks the shared `[hidden]` rule, so restate it. */
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field[hidden] {display: none}
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field > span {
  position: absolute;
  left: var(--co-field-pad);
  top: 50%;
  z-index: 1;
  /* Lifted, the label is scaled down: its room is what is left after the scale, so a long one reads whole. */
  max-width: calc((100% - var(--co-field-pad) * 2) / var(--co-label-scale));
  margin: 0;
  overflow: hidden;
  font-size: var(--co-input-font);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  pointer-events: none;
  transform: translateY(calc(-50% - var(--co-label-lift))) scale(var(--co-label-scale));
  transform-origin: left center;
  transition: transform .16s var(--ease), color .16s var(--ease);
}
/* Empty and unfocused: the label stands exactly where the value will appear. */
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field:not(.set-phone-group):has(input:placeholder-shown:not(:focus)) > span {
  max-width: calc(100% - var(--co-field-pad) * 2);
  transform: translateY(-50%) scale(1);
}
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field .opt {font-size: inherit; font-style: normal}
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field .opt::before {content: "("}
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field .opt::after {content: ")"}
/* The canonical phone value rides inside this same box as a hidden input;
   blockifying it would put an empty row under the one being typed in. */
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field :is(input:not([type="checkbox"],[type="radio"],[type="hidden"]),select) {
  display: block;
  width: 100%;
  min-height: calc(var(--co-field-height) - 2px);
  padding: var(--co-value-top) var(--co-field-pad) 3px;
  border: 0;
  border-radius: inherit;
  background-color: transparent;
  box-shadow: none;
  font-size: var(--co-input-font);
  line-height: 1.3;
  color: var(--ink);
}
/* The chevron sits on the value's line, not the middle of the box the lifted label shares. */
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field select {padding-right: 32px; background-position: right 11px top calc(var(--co-value-top) + var(--co-input-font) * .65 - 7px)}
/* A format hint would collide with the label sitting in the same place, so it
   waits for the focus that lifts the label clear of it. */
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field input::placeholder {color: var(--ink-3); opacity: 1}
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field input:placeholder-shown:not(:focus)::placeholder {color: transparent}
/* One ring for the whole field, so the label is plainly part of the focused
   control rather than text sitting next to it. */
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field:focus-within {border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink)}
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field:focus-within > span {color: var(--ink-2)}
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field :is(input,select):focus {outline: none; box-shadow: none}
/* aria-invalid stays the single source of truth; it now colors the box that
   holds the label instead of a bare input. */
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field:has([aria-invalid="true"]) {border-color: var(--ink); background-color: var(--warning-bg)}
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field:has([aria-invalid="true"]) > span {color: var(--ink)}
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field :is(input,select)[aria-invalid="true"] {border-color: transparent; background-color: transparent}
/* Autofill paints the input's own box, which is the whole field here — so the
   inset has to cover the full height or it leaves a band under the label. */
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field input:-webkit-autofill,
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 60px var(--surface-strong) inset;
  box-shadow: 0 0 0 60px var(--surface-strong) inset;
  transition: background-color 600000s 0s;
}
/* A destination the customer cannot change here is still named here. */
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field--fixed {background: var(--paper-2); cursor: default}
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .co-field__fixed {
  display: block;
  min-height: calc(var(--co-field-height) - 2px);
  margin: 0;
  padding: var(--co-value-top) var(--co-field-pad) 3px;
  font-size: var(--co-input-font);
  line-height: 1.3;
  color: var(--ink-2);
}
/* The calling code and the number are two controls in one box, so the box
   owns the border and the pair divides it with a hairline. The group's label
   is not a <label> for either control and never rests over them. */
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .set-phone-group > .set-phone-row {display: flex; gap: 0; max-width: none}
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .set-phone-group .set-phone-cc {flex: 0 0 auto}
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .set-phone-group .set-phone-num {position: relative; flex: 1; min-width: 0}
/* The divider starts under the lifted label, so it never runs through it. */
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .set-phone-group .set-phone-num::before {content: ""; position: absolute; left: 0; bottom: 0; top: calc(var(--co-value-top) + 2px); width: 1px; background: var(--line)}
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .set-phone-group .set-phone-cc select {width: auto; border-radius: var(--radius-sm) 0 0 var(--radius-sm)}
/* The ZIP is the shortest value. City and state share the remaining width. */
:is(#co-steps, [data-addr-form]) .co-locality {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr) minmax(0, 1.2fr);
  column-gap: var(--co-field-space);
}
/* Narrow phone: the gap closes up rather than the row breaking, which is room
   the three prompts can use. A long one — "State / region", "Postal code" —
   still ends in an ellipsis while its field is empty, and lifts clear at 76%
   of its size the moment the field is focused or filled. */
@media (max-width: 420px) {
  :is(#co-steps, [data-addr-form]) .co-locality {column-gap: 8px}
  /* A 360px phone leaves the region field 76px: its short word is 53px and the room after both paddings is 50. The label has no use for a right-hand
     padding the width of the left one, so on this row it keeps 8px clear of the edge and the word reads whole. */
  :is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .co-locality .auth-field:not(.set-phone-group):has(input:placeholder-shown:not(:focus)) > span {max-width: calc(100% - var(--co-field-pad) - 8px)}
}
/* The field's own message, pulled back under the box it belongs to. */
:is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .co-err {margin: calc(var(--co-field-space) * -0.6) 0 var(--co-field-space)}
#co-steps .co-step__body > .co-hint,#co-steps form > .co-hint {margin-bottom: var(--co-field-space)}
#co-steps .co-rate {padding: 12px 14px}
/* Touch: the control fills the box, so the box itself is the 44px target.
   16px keeps iOS from zooming the page on focus. */
@media (max-width:640px), (pointer:coarse) {
  :is(#co-steps, [data-addr-form]) {--co-input-font:16px}
}
@media (pointer:coarse) {
  :is(#co-steps, [data-addr-form]) {--co-field-height:52px;--co-value-top:20px;--co-label-lift:12px}
}
/* Two half-width fields leave a lifted label nothing to be legible in on a
   narrow phone. This is the saved-address editor, whose own two-up locality
   row collapses at this width with it; the address step's own address line
   above is three-up and deliberately keeps its line here. */
@media (max-width:520px) {
  :is(#co-steps, [data-addr-form]) [data-addr-editor] .auth-two {grid-template-columns: minmax(0, 1fr)}
}
@media (prefers-reduced-motion: reduce) {
  :is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field,
  :is(#co-steps, [data-addr-form]) :where(#co-address, [data-addr-editor]) .auth-field > span {transition: none}
}

/* The order stays available above mobile checkout, without a second card. */
.co-summary-toggle{display:none}
.co-order-summary .co-sum{border-radius:var(--radius);border-color:var(--line);background:var(--surface);box-shadow:none}
@media(max-width:940px){
  .co-order-summary{border-block:1px solid var(--line)}
  .co-summary-toggle{display:flex;align-items:center;gap:16px;min-height:56px;padding:14px 0;list-style:none;cursor:pointer;color:var(--ink)}
  .co-summary-toggle::-webkit-details-marker{display:none}
  .co-summary-toggle__label{display:inline-flex;align-items:center;gap:10px;font-size:14px;font-weight:500}
  .co-summary-toggle__label::after{content:"";width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-top:-4px}
  .co-order-summary[open] .co-summary-toggle__label::after{transform:rotate(225deg);margin-top:3px}
  .co-summary-toggle__total{margin-left:auto;font-size:18px;font-weight:500;font-variant-numeric:tabular-nums}
  .co-summary-toggle:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
  .co-order-summary .co-sum{padding:8px 0 20px;border:0;border-radius:0;background:transparent}
  .co-order-summary .csum__h{display:none}
}

.co-recovery{padding:24px}
.co-recovery h2{font-size:17px;font-weight:450;margin:0 0 16px}
.co-recovery #co-shared-payment{display:grid;gap:12px}
.co-recovery .co-hint{margin:0 0 4px;line-height:1.55}

@media(max-width:620px){.co-express-wallets{grid-auto-flow:row;grid-auto-columns:auto;grid-template-columns:1fr}}

apple-pay-button.co-express-apple{appearance:none;-webkit-appearance:none;background:transparent;--apple-pay-button-width:100%;--apple-pay-button-height:var(--co-wallet-h);--apple-pay-button-border-radius:var(--co-wallet-radius);--apple-pay-button-padding:0;--apple-pay-button-box-sizing:border-box}

.co-shared-payment .co-pay__methods{margin-bottom:0}
.co-new-card__fields{min-width:0}
.co-paymethod--new .co-new-card__fields{display:grid;gap:12px;padding:0 14px 16px}
.co-new-card__fields[hidden]{display:none}
/* A saved card's row, at checkout and in the account: the network mark stands to the left of the card's two lines (name and number, then expiry), centred on them. */
.co-cardrow{display:flex;align-items:center;gap:12px;min-width:0}
.co-cardrow__mark{flex:none;display:block;width:38px;height:24px}
.co-paymethod:has(input:disabled) .co-cardrow__mark{opacity:.55}
/* While a card's payment is in progress the list is locked by its text and radios only: the network marks stay at full strength, so a
   locked list never reads as a broken or disabled one (a half-transparent mark turns grey on the light paper). */
.co-shared-payment.is-paying .co-paymethod .co-cardrow__mark{opacity:1}
/* Stand-ins for the card form while its page loads: the form's own rows, in its own sizes, so nothing moves when it arrives.
   The height is set from the form's known size; the rows are 48px, 52px on touch, like every other field here. */
/* The measured loading height must take effect immediately, even under the global reduced-motion transition. */
.co-card-skeleton{display:flex;flex-direction:column;gap:12px;min-width:0;overflow:hidden;transition-property:none}
.co-card-skeleton[hidden]{display:none}
.co-card-skeleton__row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:12px}
.co-card-skeleton__row:last-child{margin-top:auto}
.co-card-skeleton__field,.co-card-skeleton__pay{height:48px;border-radius:var(--radius-sm)}
.co-card-skeleton__pay{border-radius:var(--radius)}
@media(pointer:coarse){.co-card-skeleton__field{height:52px}}
.co-new-card__fields > .co-legal,.co-cvv-slot .co-legal{margin:0}
.co-card-collection[hidden],.co-pay__methods[hidden]{display:none}

.co-shared-payment .co-paymethod:first-child{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}
.co-shared-payment .co-paymethod:last-child{border-bottom-left-radius:var(--radius);border-bottom-right-radius:var(--radius)}

/* ---------- first-paint stand-ins ----------
   Each takes the size and place of what replaces it, so nothing moves when the page arrives (tests/browser/storefront.spec.cjs
   measures both). The steps stand-in is the address step open, its field boxes the real ones, and two closed steps; the summary
   stand-in is the open card for one cart line, and below 940px the collapsed bar the page really draws there. */
#co-steps .skeleton-checkout-step{margin-bottom:10px;border-radius:var(--radius);background:var(--surface)}
#co-steps .skeleton-checkout-step__head{padding:14px clamp(14px,2vw,20px)}
#co-steps .skeleton-checkout-step:not(:first-child){height:56px}
#co-steps .skeleton-checkout-step:first-child .skeleton-checkout-step__body{grid-template-columns:minmax(0,1fr);align-content:start;gap:var(--co-field-space);padding:16px clamp(14px,2vw,20px) 18px;min-height:var(--co-stand-body,0px)}
#co-steps .skeleton-checkout-step__field{height:var(--co-field-height);border-radius:var(--radius-sm)}
#co-steps .skeleton-checkout-step:first-child{margin-bottom:14px}
#co-steps{--co-stand-body:437.27px}
@media(min-width:641px){#co-steps{--co-stand-body:417.27px}}
/* A customer with a saved address lands on delivery: the first step is its recap, the second the open delivery step (three rows and the button). */
#co-steps{--co-stand-recap-h:160.6px;--co-stand-delivery-h:413.2px}
@media(max-width:640px){#co-steps{--co-stand-delivery-h:431.3px}}
html[data-co-landing="delivery"] #co-steps .skeleton-checkout-step:first-child{height:var(--co-stand-recap-h);margin-bottom:10px}
html[data-co-landing="delivery"] #co-steps .skeleton-checkout-step:first-child .skeleton-checkout-step__body{display:none}
html[data-co-landing="delivery"] #co-steps .skeleton-checkout-step:nth-child(2){height:var(--co-stand-delivery-h);margin-bottom:14px}
#co-summary .skeleton-summary{min-height:383.5px;align-content:start}
@media(max-width:940px){
  #co-summary .skeleton-summary{min-height:0;height:59.7px;padding:0;gap:0;border-width:1px 0;border-radius:0;align-content:center;overflow:hidden}
  #co-summary .skeleton-summary>:not(:first-child){display:none}
}

/* A phone keeps ZIP, city and state on one row, and gives the ZIP the room: ZIP+4 and Canadian codes read whole, and the three
   messages are one height whichever of them wraps. */
@media (max-width: 640px) {
  #co-steps .co-locality {grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr)}
  #co-steps .co-locality .co-err:not(:empty) {min-height: 40px}
}
/* Saved-address rows are one width: Edit sits inside the first row's card. */
.co-book__row{position:relative;display:block}
.co-book__row .co-book__opt{padding-right:72px}
.co-book__row .co-step__edit{position:absolute;right:8px;top:50%;transform:translateY(-50%)}
/* A card that cannot be chosen does not look like one that can. */
.co-paymethod:has(input:disabled) .co-paymethod__row{cursor:default}
.co-paymethod:has(input:disabled):hover{border-color:var(--line-2)}
.co-paymethod:has(input:disabled) .co-paymethod__name{color:var(--muted)}
/* Tap targets: the hit area reaches 44px; what is drawn keeps its size and place. */
.co-back,.co-header .co-brand{position:relative}
.co-back::before{content:"";position:absolute;inset:-12px -8px}
.co-header .co-brand::before{content:"";position:absolute;inset:0 -10px}
.co-save{min-height:44px;margin:-11px 0 5px}
#co-summary .rpay__range{height:44px;margin:6px 0}

/* A narrow screen shows the short region word; the long one is for the width it fits. */
.co-label-short{display:none}
@media (max-width: 520px) {
  .co-label-long{display:none}
  .co-label-short{display:inline}
}
/* The security-code row (js/shared-checkout-cvv.js): the chosen saved card's row holds the card form's security-code view after a decline
   its code could fix. While that try is prepared the list stays as it was, dimmed under the Pay button's progress, and the form loads unseen
   over its row, taking no room, so it can take focus the moment it is ready; opening it gives the row its room. */
.co-cvv-slot{overflow:hidden;padding:0 14px}
.co-cvv-pending .co-cvv-slot{position:absolute;inset:0 0 auto;opacity:0;pointer-events:none}
