/* requires site.css */
/* Eagle XR checkout /buy (Engineer B), spec 4.2 and 5. Only co- classes; shared primitives are restyled
   only inside a co- ancestor. Breakpoints: mobile < 768, tablet 768 to 1023 (mobile layout, max 640),
   desktop >= 1024 (stage left, sections right). */

/* ============================================================ header */
.co-page .site-header__in { max-width: none; }          /* full width: wordmark lines up with the stage, currency with the column */
.co-cur {
  height: 44px; margin: 0 -8px 0 0; padding: 0 26px 0 10px;
  font: 600 15px/1 var(--font-sans); font-stretch: 100%; font-variant-numeric: tabular-nums; color: var(--ink);
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231f252a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center / 10px 6px;
  border: 0; border-radius: var(--r-control);
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.co-cur:hover { color: #000; }
.co-cur:disabled { color: var(--ink-2); cursor: not-allowed; background-image: none; padding-right: 10px; }

/* ============================================================ page grid */
.co { overflow-x: clip; }
.co-col { min-width: 0; }

@media (min-width: 1024px) {
  /* wide screens: stage content and sections column sit on the page container (as the landing), while the stage
     ground itself still starts at x 0 (full-bleed concrete). --co-side is 0 up to 1376 px. */
  .co-page { --co-side: max(0px, calc((100vw - var(--container) - 2 * var(--gutter)) / 2)); }
  .co { display: grid; grid-template-columns: minmax(0, 1fr) var(--co-col); align-items: start; padding-right: var(--co-side); }
  .co-col { padding: 40px 48px 96px; }
  .co-col > .co-sec { max-width: 464px; }
  .co-page .site-header__in { padding-inline: calc(var(--gutter) + var(--co-side)); }
}

/* ============================================================ desktop stage */
.co-stage__code { font-size: 13px; color: var(--ink-2); }
.co-stage__title { margin-top: 8px; }
.co-stage__price { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.co-stage__per { font-size: var(--fs-small); color: var(--ink-2); }
.co-stage__lead { margin-top: 12px; }

@media (min-width: 1024px) {
  /* Three rows: title, line-up zone, receipt. The zone is the row that gives way (minmax(0, 1fr)): on a short
     laptop the piles shrink (buy.js sizeLineup) and the receipt with its Total never does. */
  .co-stage {
    position: sticky; top: var(--header-h);
    height: calc(100svh - var(--header-h)); min-height: 560px;
    padding: 40px 48px 40px calc(48px + var(--co-side));
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    /* Safari (iPad) hides its toolbars on a scroll: the screen grows past 100svh and the page's white showed under
       the stage. Its own shadow carries the concrete on down (not clipped by its overflow, no layout change). */
    box-shadow: 0 40vh 0 0 var(--concrete);
  }
  .co-stage.is-overflow { overflow-y: auto; }                      /* safety net: scroll, never clip */
  .co-stage > * { min-width: 0; }
  /* one left axis: title, piles and receipt all start on the stage's 48 px edge */
  .co-stage__zone { position: relative; display: flex; align-items: flex-end; justify-content: flex-start; min-height: 0; padding-top: 24px; }
  .co-stage__receipt { padding-top: 24px; }
  .co-stage__receipt .receipt { max-width: 520px; }
  .co-stage .co-lineup { margin-bottom: 0; justify-content: start; }
  .co-stage.is-compact .lineup__label { display: none; }           /* under 140 px of zone the labels go first */
  /* The floor runs the full width of the stage, edge to edge: one horizon for every pile. */
  .co-stage .co-lineup::after { left: -2400px; right: -2400px; }
  .co-stage .sweep--stage { left: calc(-48px - var(--co-side)); right: -48px; }
  /* the meta line keeps its height before the reservation, so the floor does not move when it lands */
  .co-stage .receipt__meta.is-empty { visibility: hidden; }
}
@media (min-width: 1024px) and (max-height: 815px) { .co-stage__lead { display: none; } }
/* laptop heights (1366 x 657, 1280 x 720): only the name, the line-up and the receipt */
@media (min-width: 1024px) and (max-height: 800px) {
  .co-stage { padding-block: 24px; padding-right: 48px; }          /* padding-left keeps the container side */
  .co-stage__code, .co-stage__price, .co-stage__lead { display: none; }
  .co-stage__title { margin-top: 0; font-size: 40px; }
  .co-stage__receipt { padding-top: 16px; }
}
@media (min-width: 1024px) and (max-height: 599px) { .co-stage { position: static; } }

/* Under 1024 the desktop stage only lends its title block to screen readers (the one h1 of the page). */
@media (max-width: 1023px) {
  .co-stage { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .co-stage__zone, .co-stage__receipt { display: none; }
  .co-col { max-width: calc(640px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 32px; }
}

/* line-up motion: groups enter and leave by 12 px and a fade, images inside a pile fade */
.co-lineup .lineup__group.is-entering { animation: co-pile-in 200ms var(--ease) both; }
.co-lineup .lineup__group.is-leaving { animation: co-pile-out 200ms var(--ease) both; pointer-events: none; }
.lineup__img.is-entering { animation: co-fade-in 200ms linear both; }
@keyframes co-pile-in { from { opacity: 0; translate: 12px 0; } }
@keyframes co-pile-out { to { opacity: 0; translate: 12px 0; } }
@keyframes co-fade-in { from { opacity: 0; } }

/* ============================================================ sections */
.co-sec { border-top: 1px solid var(--rule); padding: 20px 0; }
.co-sec:first-child { border-top: 0; padding-top: 0; }
.co-sec[data-state="open"] { padding: 32px 0 40px; }
.co-sec[data-state="open"]:first-child { padding-top: 0; }

.co-sec__head {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: baseline;
  scroll-margin-top: calc(var(--header-h) + 8px);
}
.co-sec__thumbs { display: none; }
.co-sec__num { grid-column: 1; grid-row: 1; font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--ink-3); }
.co-sec__title { grid-column: 2; grid-row: 1; font-size: 17px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.co-sec__title:focus { outline: none; }
.co-sec__title:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.co-sec__change { grid-column: 3; grid-row: 1; justify-self: end; margin-left: 16px; font-size: var(--fs-ui); }
.co-sec__line { grid-column: 2 / 4; margin-top: 4px; font-size: var(--fs-ui); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }

.co-sec[data-state="open"] .co-sec__num,
.co-sec[data-state="open"] .co-sec__title { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -.01em; }
.co-sec[data-state="open"] .co-sec__line { display: none; }
.co-sec[data-state="future"] .co-sec__title { color: var(--ink-3); }
.co-sec[data-state="future"] .co-sec__line { color: var(--ink-3); }
.co-sec[data-state="future"].is-stale .co-sec__line { color: var(--ink-2); }

.co-sec__body { margin-top: 28px; }
.co-sec:not([data-state="open"]) .co-sec__body { display: none; }
.co-sec__body.is-entering { animation: co-rise 200ms var(--ease) both; }
@keyframes co-rise { from { opacity: 0; transform: translateY(8px); } }

.co-mstage { display: none; }

/* ============================================================ 01 finish table */
.co-finishes__head {                       /* "Finish" starts on the column edge */
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 0 10px; border-bottom: var(--border-ink);
}
.co-finish {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 76px; padding-left: 16px;
  border-bottom: var(--border-hair);
  transition: box-shadow var(--t-press) linear;
}
.co-finish.is-lead { box-shadow: inset 2px 0 0 var(--ink); }
.co-finish__pick {
  display: flex; align-items: center; gap: 16px; flex: 1 1 auto; min-width: 0; min-height: 60px;
  margin: 0; padding: 8px 0; background: none; border: 0; border-radius: 0;
  text-align: left; color: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.co-finish__pick:focus-visible { outline-offset: 4px; }
.co-finish__thumb { position: relative; isolation: isolate; flex: none; display: flex; align-items: flex-end; width: 64px; height: 60px; }
.co-finish__thumb img { position: relative; width: 64px; height: auto; aspect-ratio: 326 / 273; }
.co-finish__thumb::after {                 /* small contact shadow under the cut-out, where it rests */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -3px; height: 8px;
  background: var(--contact-shadow); z-index: -1;
}
.co-finish__text { display: grid; gap: 2px; min-width: 0; }
.co-finish__name { font-size: 17px; line-height: 1.25; font-weight: 600; color: var(--ink); transition: color var(--t-press) linear; }
/* availability under the finish name (stock.py bands): a small square says it at a glance, the words say it exactly */
.co-finish__avail { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.3; color: var(--ink-2); }
.co-finish__avail::before { content: ""; flex: none; width: 7px; height: 7px; border: 1px solid var(--ink-3); }
.co-finish__avail[data-state="in_stock"]::before { background: var(--teal-ink); border-color: var(--teal-ink); }
.co-finish__avail[data-state="limited"]::before { background: #c98a2b; border-color: #c98a2b; }
.co-finish__avail[data-state="unknown"], .co-finish__avail:empty { display: none; }
.co-finish__pick:hover .co-finish__name { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* count 0: the thumbnail keeps its true finish colour; only the name and the count step back */
.co-finish.is-zero .co-finish__name { color: var(--ink-2); }
.co-finish.is-zero .co-stepper__out { color: var(--ink-3); }

.co-stepper {
  display: inline-flex; flex: none; align-items: stretch;
  border: var(--border-field); border-radius: var(--r-control); background: #fff;
}
.co-stepper__btn {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; margin: 0; padding: 0;
  background: transparent; border: 0; border-radius: 0; color: var(--ink);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--t-press) linear;
}
.co-stepper__btn:first-child { border-radius: 3px 0 0 3px; }
.co-stepper__btn:last-child { border-radius: 0 3px 3px 0; }
.co-stepper__btn:hover:not(:disabled) { background: rgba(31, 37, 42, .06); }
.co-stepper__btn:active:not(:disabled) { background: rgba(31, 37, 42, .12); }
.co-stepper__btn:focus-visible { z-index: 1; }
.co-stepper__btn:disabled { color: var(--field); cursor: not-allowed; }
.co-stepper__out {
  display: grid; place-items: center; width: 32px; overflow: hidden;
  border-left: var(--border-field); border-right: var(--border-field);
  font-size: 24px; line-height: 1; font-weight: 600; color: var(--ink);
}
.co-stepper__out > span, .co-devices__total > span { display: inline-block; }

.co-help { margin-top: 12px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); }
.co-maxnote { margin-top: 8px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); }

/* ============================================================ 01 devices and ruler */
.co-devices { margin-top: 32px; }
.co-devices__row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.co-devices__total { font-size: 32px; line-height: 1; font-weight: 700; font-stretch: 112%; overflow: hidden; padding-top: 2px; }
.co-nudge { margin-top: 10px; min-height: 44px; font-size: var(--fs-ui); line-height: 22px; font-weight: 600; color: var(--teal-ink); text-wrap: pretty; }
.co-nudge .link { font-weight: 600; }
.co-nudge__done { color: var(--ink-2); }
.co-nudge:focus { outline: none; }                     /* focus lands here after a quotation from the nudge */
.co-nudge:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
/* volume discounts off: the nudge only speaks at the maximum, so it keeps no empty band below it */
.co-nudge--quiet:empty { min-height: 0; margin-top: 0; }

/* ============================================================ 01 discount code (promos.py) */
.co-promo { margin-top: 14px; font-size: var(--fs-ui); line-height: 1.4; }
.co-promo__line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.co-promo__open { font-weight: 400; color: var(--ink-2); }          /* quiet: a question, never louder than Continue */
/* POC only: the sample code on the right, marked with the POC square; 44 px tall to tap */
.co-promo__sample {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px; margin: -6px 0;
  border: 1px dashed var(--field); border-radius: 999px; background: transparent; color: var(--ink-2);
  font: inherit; font-size: 14px; cursor: pointer;
}
.co-promo__sample:hover { color: var(--ink); border-color: var(--ink); }
.co-promo__sample .co-promo__code { color: var(--ink); }
.co-promo__open[aria-expanded="true"] { color: var(--ink); }
.co-promo__form { margin-top: 14px; display: grid; gap: 6px; }
.co-promo__row { display: flex; gap: 8px; }
.co-promo__input { flex: 1 1 auto; text-transform: uppercase; letter-spacing: .04em; }
.co-promo__input::placeholder { text-transform: none; letter-spacing: 0; }
.co-promo__apply { flex: none; height: 48px; padding: 0 20px; }
.co-promo__apply.is-busy { opacity: .6; }
.co-promo__chip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0; outline: none; }
.co-promo__chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
/* the applied code: a tag in the discount colour, the same teal ink (MPXR: orange ink) as the receipt's discount */
.co-promo__tag {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px;   /* gap: flex drops the spaces */
  border: 1px dashed currentColor; border-radius: 999px;
  font-weight: 600; color: var(--teal-ink); font-variant-numeric: tabular-nums;
}
.co-promo__code { font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.co-promo__remove { font-weight: 400; color: var(--ink-2); }

.co-act { margin-top: 32px; }
.co-caption { margin-top: 12px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.co-caption--quiet { color: var(--ink-3); }
/* secondary links come after the primary and its caption (same order in the DOM, for focus) */
.co-links { margin-top: 24px; padding-top: 16px; border-top: var(--border-hair); display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; font-size: var(--fs-ui); line-height: 1.4; }
.co-sharebox { margin-top: 16px; padding: 16px; display: grid; gap: 12px; border: var(--border-hair); border-radius: 8px; background: var(--paper); }
.co-sharebox__head { margin: 0; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); outline: none; }
.co-sharebox__head b { font-weight: 600; color: var(--ink); }
.co-sharebox__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.co-sharebox__url { font-size: var(--fs-small); height: 44px; }

/* laptop heights: Continue to details in the first view (finish rows 64, no ruler price row) */
@media (min-width: 1024px) and (max-height: 860px) {
  .co-fair { display: none; }             /* laptop heights keep Continue in the first view; stand visitors are on phones */
  .co-col { padding-top: 32px; }
  .co-sec[data-state="open"] .co-sec__body { margin-top: 20px; }
  .co-finish { min-height: 64px; }
  .co-finish__pick { min-height: 56px; padding: 4px 0; }
  .co-devices { margin-top: 24px; }
  .co-devices__row { margin-bottom: 10px; }
  .co-ruler { min-height: 76px; }
  .co-ruler .ruler__prices { display: none; }
  .co-nudge { margin-top: 6px; }
  .co-help { margin-top: 8px; }
  .co-act { margin-top: 20px; }
}
/* short laptops (1366 x 657, 1280 x 680, 1536 x 730): on top of the block above, Continue to details still ends
   in the first view; the helper line stays */
@media (min-width: 1024px) and (max-height: 760px) {
  .co-col { padding-top: 24px; }
  .co-sec[data-state="open"] .co-sec__body { margin-top: 12px; }
  .co-finish { min-height: 56px; }
  .co-finish__pick { min-height: 52px; padding: 2px 0; }
  .co-finish__thumb { width: 56px; height: 53px; }
  .co-finish__thumb img { width: 56px; }
  .co-devices { margin-top: 16px; }
  .co-ruler { min-height: 64px; }
  .co-nudge { min-height: 22px; }           /* every nudge is one line in the 464 px column */
  .co-act { margin-top: 20px; }
  /* the code link or chip sits close under the ruler; the tag slims down, its Remove keeps the 44 px hit area */
  .co-promo { margin-top: 6px; }
  .co-promo__tag { min-height: 26px; padding: 2px 10px; }
}

/* ============================================================ 02 details */
.co-welcome { margin-bottom: 28px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); }
.co-fair {
  margin: 0 0 24px; padding: 2px 0 2px 12px; border-left: 2px solid var(--ink);
  font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2);
}
.co-fair__t { display: block; font-weight: 600; color: var(--ink); }
.co-qcart { margin: -8px 0 20px; font-size: var(--fs-small); line-height: 1.45; font-weight: 600; color: var(--ink); }
.co-welcome .link { white-space: nowrap; }
.co-errsum {
  margin-bottom: 28px; padding: 2px 0 2px 12px; border-left: 2px solid var(--danger);
  font-size: var(--fs-ui); line-height: 1.45; font-weight: 600; color: var(--danger);
}
.co-errsum:empty { display: none; }
.co-errsum .link { color: var(--danger); }

.co-group { padding-top: 20px; border-top: var(--border-rule); }
.co-group + .co-group { margin-top: 40px; }
.co-group__title { margin-bottom: 20px; }
.co-form .field { scroll-margin-top: 96px; }
.co-grid-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field__hint .link { font-weight: 600; }

.co-same { margin: -6px 0 0; }
.co-ship { margin-top: 16px; padding-bottom: 8px; }
.co-ship.is-entering { animation: co-fade-in 200ms linear both; }

.co-delivery {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: baseline;
  margin-top: 20px; padding-top: 16px; border-top: var(--border-hair);
}
.co-delivery__title { font-size: 16px; line-height: 1.4; font-weight: 600; }
.co-delivery__eta { margin-top: 2px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); }
.co-delivery__price { font-size: 16px; line-height: 1.4; font-weight: 600; }
.co-taxnote { margin-top: 12px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }

/* US: city and state filled from the ZIP get a short teal wash, so the buyer sees what changed */
@keyframes co-zipfill { from { background-color: rgba(0, 161, 177, .16); } to { background-color: #fff; } }
.field.is-filled .field__input { animation: co-zipfill 700ms ease-out both; }
@media (prefers-reduced-motion: reduce) { .field.is-filled .field__input { animation: none; } }

/* US deliveries: the seller, and the tax exemption claim (its consequence spelled out under the box) */
.co-us { margin-top: 20px; padding-top: 16px; border-top: var(--border-hair); }
.co-us__seller { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.co-us__seller b { font-weight: 600; color: var(--ink); }
.co-exempt { margin-top: 14px; }
.co-exempt__info {
  margin: 10px 0 0 32px; padding: 10px 0 10px 14px; border-left: 2px solid var(--teal);
  font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); text-wrap: pretty;
}
.co-exempt__info p + p { margin-top: 6px; }
.co-exempt__info b { font-weight: 600; color: var(--ink); }
.co-exempt__info.is-entering { animation: co-fade-in 200ms linear both; }

/* the buyer accepts the seller's terms of sale before the payment step */
.co-terms-group { margin-top: 4px; }
.co-termsf .check__label { line-height: 1.5; text-wrap: pretty; }
.co-termsf .check__label .link { font-weight: 500; }
.co-termsf[data-state="error"] .check__box { border-color: var(--danger); }

/* ============================================================ 03 pay */
.co-slow { margin-top: 8px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); }
.co-alert { margin-top: 12px; font-size: var(--fs-ui); line-height: 1.45; color: var(--danger); }
.co-alert:empty { display: none; }
/* "Your reservation expired. ... Reserving again.": information, not an error */
.co-note { margin-bottom: 12px; font-size: var(--fs-ui); line-height: 1.45; color: var(--ink-2); }
/* the way out when SAP is slow or failed: a secondary text button, then the contact line */
.co-dup { padding: 16px 0 4px; border-top: 2px solid var(--xr); }
.co-dup__t { font-size: var(--fs-body); font-weight: 700; color: var(--ink); }
.co-dup__p { margin-top: 6px; font-size: var(--fs-ui); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.co-dup__act { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.co-exit { margin-top: 12px; font-size: var(--fs-ui); line-height: 1.45; color: var(--ink-2); }
.co-exit__lead .link { font-weight: 600; }
.co-exit__msg { color: var(--ink); overflow-wrap: anywhere; }
.co-exit__msg.is-error { color: var(--danger); }
.co-exit__contact { margin-top: 12px; font-size: var(--fs-small); overflow-wrap: anywhere; }
.co-exit__contact .link { font-weight: 400; color: var(--ink-2); }
.co-terms .link { font-weight: 400; color: var(--ink-2); }
.co-reserve .status[data-state="failed"] .status__ref { color: var(--danger); }
.co-reserve .statuslog { border-top: var(--border-hair); border-bottom: var(--border-hair); }

.co-reserved.is-entering, .co-payarea.is-entering, .co-payreceipt.is-entering { animation: co-rise 200ms var(--ease) both; }
.co-reserved__title { font-size: 17px; line-height: 1.3; font-weight: 600; }
.co-reserved__no { margin-top: 6px; font-size: 13px; color: var(--ink); }
.co-reserved__refs { margin-top: 2px; color: var(--ink-3); }

.co-payreceipt { margin-top: 24px; padding-top: 12px; border-top: var(--border-rule); }
.co-payarea { margin-top: 28px; position: relative; scroll-margin-top: 72px; }   /* under the sticky header */
/* the payment is running: a panel over the payment form, a bar that keeps moving and the step it is on */
.co-paying {
  position: absolute; inset: -8px; z-index: 5; display: flex; flex-direction: column; justify-content: center;
  padding: 28px 24px; background: var(--paper); border: var(--border-hair); border-radius: var(--r-control);
  animation: co-fade-in 200ms linear both;
}
.co-paying__bar { position: relative; height: 4px; border-radius: 2px; background: var(--hairline); overflow: hidden; }
.co-paying__bar span {
  position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--paying, .15) * 100%); background: var(--teal);
  transition: width 900ms var(--ease);
}
.co-paying__bar span::after {
  content: ""; position: absolute; inset: 0; width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), transparent); animation: co-paying-run 1.1s linear infinite;
}
@keyframes co-paying-run { from { transform: translateX(-100%); } to { transform: translateX(240%); } }
.co-paying__title { margin-top: 18px; font-size: 18px; line-height: 1.3; font-weight: 600; }
.co-paying__steps { margin-top: 12px; display: grid; gap: 8px; }
.co-paying__steps li {
  display: flex; align-items: center; gap: 10px; font-size: var(--fs-ui); line-height: 1.4; color: var(--ink-3);
  transition: color 200ms linear;
}
.co-paying__steps li::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--hairline);
}
.co-paying__steps li.is-now { color: var(--ink); font-weight: 600; }
.co-paying__steps li.is-now::before { border-color: var(--hairline); border-top-color: var(--teal); animation: op-spin .8s linear infinite; }
.co-paying__steps li.is-done { color: var(--ink); }
.co-paying__steps li.is-done::before {
  border-color: var(--teal); background: var(--teal) no-repeat center / 9px 9px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.4l2.6 2.6L10 3.4' fill='none' stroke='%23fff' stroke-width='2.2'/%3E%3C/svg%3E");
}
.co-paying__note { margin-top: 14px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); }
@keyframes op-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .co-paying__bar span::after { animation: none; }
  .co-paying__steps li.is-now::before { animation-duration: 2.4s; }
}
.co-demo { padding-left: 16px; border-left: 2px solid var(--ink); }
.co-demo__title { font-size: var(--fs-ui); line-height: 1.4; font-weight: 600; }
.co-demo__text { margin-top: 4px; font-size: var(--fs-ui); line-height: 1.5; color: var(--ink-2); max-width: 52ch; }
.co-demo__card { margin-top: 8px; font-size: 13px; color: var(--ink); }

.co-express { min-height: 52px; }
.co-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; font-size: var(--fs-small); color: var(--ink-2); white-space: nowrap; }
.co-divider::before, .co-divider::after { content: ""; flex: 1 1 auto; border-top: var(--border-hair); }
.co-peload { position: relative; padding: 14px 0; font-size: var(--fs-small); color: var(--ink-3); }
.co-stripe__note { margin-top: 16px; }
.co-payerr { margin-top: 20px; }
.co-act--pay { margin-top: 28px; }
.co-btn__note { font-weight: 400; opacity: .72; }
/* offline: the reason sits right above the disabled primary */
.co-offline { margin-top: 20px; font-size: var(--fs-ui); line-height: 1.45; font-weight: 600; color: var(--ink); }
.co-offline:not([hidden]) + .co-act { margin-top: 12px; }

/* ============================================================ sheets (native dialog) */
.co-sheet {
  position: fixed; margin: 0; padding: 0; border: 0;
  max-width: none; max-height: none; overflow: hidden;
  background: var(--paper); color: var(--ink);
  flex-direction: column;
}
.co-sheet[open] { display: flex; }
.co-sheet::backdrop { background: var(--scrim); }
.co-sheet[open]::backdrop { animation: co-fade-in 240ms linear both; }
.co-sheet.is-closing::backdrop { animation: co-fade-out 200ms linear both; }

.co-sheet--side { inset: 0 0 0 auto; width: min(480px, 100vw); height: 100%; border-left: var(--border-hair); }
.co-sheet--x3d.co-sheet--side { width: min(720px, 100vw); }
.co-x3d__stage { margin: 0 calc(-1 * var(--sheet-pad, 0px)); }
.co-x3d__fin { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 520px; margin-top: 14px; }
.co-x3d__note { margin-top: 12px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); }
.co-3dbtn { gap: 8px; margin-top: 16px; }
.co-3dbtn--m { display: none; }
.co-sheet--side[open] { animation: co-side-in 240ms var(--ease) both; }
.co-sheet--side.is-closing { animation: co-side-out 200ms var(--ease) both; }
.co-sheet--side .co-sheet__handle { display: none; }

.co-sheet--bottom {
  inset: auto 0 0 0; width: 100%; max-height: 92svh;
  box-shadow: var(--sheet-shadow);
  padding-bottom: env(safe-area-inset-bottom);
}
.co-sheet--receipt { max-height: 80svh; }
.co-sheet--bottom[open] { animation: co-bottom-in 240ms var(--ease) both; }
.co-sheet--bottom.is-closing { animation: co-bottom-out 200ms var(--ease) both; }
.co-sheet--bottom.is-dragging { animation: none; transition: none; }
.co-sheet--bottom.is-settling { animation: none; transition: transform 200ms var(--ease); }

@keyframes co-side-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes co-side-out { to { opacity: 0; transform: translateX(24px); } }
@keyframes co-bottom-in { from { opacity: 0; transform: translateY(48px); } }
@keyframes co-bottom-out { to { opacity: 0; transform: translateY(48px); } }
@keyframes co-fade-out { to { opacity: 0; } }

.co-sheet__handle {
  flex: none; display: grid; place-items: center; height: 28px;
  touch-action: none; cursor: grab;
}
.co-sheet__handle span { width: 32px; height: 4px; border-radius: 2px; background: var(--field); }
.co-sheet__head {
  flex: none; display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 32px 32px 0;
}
.co-sheet--bottom .co-sheet__head { padding: 4px var(--gutter) 0; touch-action: none; }
.co-sheet__title:focus { outline: none; }
.co-sheet__head .link {
  font-size: var(--fs-ui);
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  padding: 0; margin-top: 0; margin-bottom: 0;
}
.co-sheet.is-done .co-sheet__head .link { display: none; }    /* after a quotation: "Back to your order" (and Esc) is the one exit */
.co-qdone__mail { color: var(--ink); overflow-wrap: anywhere; }
.co-sheet__body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 32px 32px;
}
.co-sheet--bottom .co-sheet__body { padding: 0 var(--gutter) 24px; }
.co-sheet__lead { margin: 8px 0 28px; font-size: var(--fs-ui); line-height: 1.5; color: var(--ink-2); max-width: 44ch; }
/* the submit is a sticky footer inside the scrolling body: in view as soon as the sheet opens, on any phone */
.co-qfoot {
  position: sticky; bottom: 0; z-index: 1;
  margin-top: 20px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: var(--paper); border-top: var(--border-hair);
}
#dlg-quote .co-sheet__body { padding-bottom: 0; }
#dlg-quote .co-qdone { padding-bottom: 32px; }
textarea.field__input.co-qmsg { min-height: 76px; field-sizing: content; max-height: 40svh; resize: none; }  /* two rows, grows */
.co-qform .co-alert { margin-top: 20px; }
.co-qdone { padding-top: 24px; }
.co-qdone .t-h3:focus { outline: none; }
.co-qdone .btn { margin-top: 8px; }
.co-sheet.is-done .co-sheet__title { display: none; }
.co-sheet__head .link { margin-left: auto; }
.co-sheet.is-done .co-qdone { padding-top: 8px; }
.co-sheet--receipt .receipt { margin-top: 16px; }

/* ============================================================ toast */
.co-toast {
  position: fixed; z-index: var(--z-toast);
  left: var(--gutter); right: var(--gutter); bottom: calc(var(--bar-h) + 12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 48px; padding: 2px 8px 2px 16px;
  background: var(--ink); color: #fff; font-size: var(--fs-ui); line-height: 1.4;
  opacity: 0; transform: translateY(8px); pointer-events: none; visibility: hidden;
  transition: opacity var(--t-fade) linear, transform var(--t-fade) var(--ease), visibility 0s linear var(--t-fade);
}
.co-toast.is-on { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.co-toast__act {
  min-height: 44px; margin: 0; padding: 0 8px; background: none; border: 0;
  font: 600 var(--fs-ui)/1 var(--font-sans); color: var(--cyan);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer;
}
.co-toast__act:focus-visible { outline-color: var(--focus-night); }
@media (min-width: 1024px) {
  .co-toast { left: calc(100% - var(--co-col) - var(--co-side, 0px) + 48px); right: auto; bottom: 24px; max-width: 464px; }
}

/* ============================================================ motion helpers */
.co-swap-out { animation: co-swap-out 90ms linear both; }
.co-swap-in { animation: co-swap-in 90ms var(--ease) both; }
.co-roll-up { animation: co-roll-up 120ms var(--ease) both; }
.co-roll-down { animation: co-roll-down 120ms var(--ease) both; }
@keyframes co-swap-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes co-swap-in { from { opacity: 0; transform: translateY(4px); } }
@keyframes co-roll-up { from { opacity: 0; transform: translateY(6px); } }
@keyframes co-roll-down { from { opacity: 0; transform: translateY(-6px); } }
[data-swap] { display: inline-block; }

.co-receipt-err { margin-top: 10px; font-size: var(--fs-small); line-height: 1.45; color: var(--danger); }
.co-receipt-err:empty { display: none; }
.receipt .co-r-amt { display: inline-block; }

/* ============================================================ mobile action bar (fixed geometry, no runtime fitting) */
.co-bar .actionbar__sum { flex: 1 1 auto; }
.co-bar__terms {
  position: absolute; left: 0; right: 0; bottom: 100%; padding: 10px var(--gutter);
  background: rgba(255, 255, 255, .97); border-top: var(--border-hair);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.co-bar__terms .check { align-items: center; }
.co-bar__terms .check__label { font-size: var(--fs-small); line-height: 1.35; }
.co-bar.is-hidden { transform: translateY(calc(110% + 64px)); }           /* the terms line goes with the bar */
body.has-bar-terms { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom) + 80px); }
.co-bar .actionbar__total { display: flex; align-items: center; gap: 6px; letter-spacing: -.01em; }
.co-bar .actionbar__total .glyph { width: 16px; height: 16px; color: var(--ink-2); }   /* the sheet opens from the total */
@media (max-width: 374px) {
  .co-bar .actionbar__total .glyph { display: none; }   /* no room beside a five-digit total; the sum stays a button */
}

/* ============================================================ mobile and tablet (< 1024) */
@media (max-width: 1023px) {
  /* the bar steps aside while the keyboard is up: steps 01 and 02 end with their own Continue button, so the way on
     is always on the page; paying stays on the bar (typing in the card form keeps it up) */
  .co-act--pay, .co-act--pay .co-primary { display: none !important; }
  .co-act { margin-top: 24px; }
  .co-offline { display: none !important; }
  .co-payreceipt .receipt__meta { display: none !important; }
  .co-sec, .co-sec[data-state="open"] { padding: 18px 0; }
  .co-sec[data-state="open"] { padding-bottom: 28px; }
  .co-sec[data-state="open"]:first-child, .co-sec:first-child { padding-top: 0; }
  .co-sec:first-child:not([data-state="open"]) { padding-top: 14px; }
  .co-sec__head { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .co-sec__body { margin-top: 24px; }
  .co-sec[data-state="open"] .co-sec__body:first-child { margin-top: 0; }

  /* 01 open: the section head and the mobile stage share one 172 px concrete field, full bleed */
  .co-sec[data-sec="configure"][data-state="open"] .co-sec__top { position: relative; isolation: isolate; height: 172px; padding: 16px 0; }
  .co-sec[data-sec="configure"][data-state="open"] .co-sec__top::before {    /* the concrete runs edge to edge */
    content: ""; position: absolute; z-index: -2; top: 0; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw);
    background: var(--grain), var(--concrete);
  }
  .co-sec[data-sec="configure"][data-state="open"] .co-sec__head { display: flex; align-items: baseline; gap: 6px; }
  .co-sec[data-sec="configure"][data-state="open"] .co-sec__num,
  .co-sec[data-sec="configure"][data-state="open"] .co-sec__title { font-size: 13px; line-height: 1.3; letter-spacing: 0; }
  .co-sec[data-sec="configure"][data-state="open"] .co-sec__num { color: var(--ink-2); font-weight: 400; }
  .co-sec[data-sec="configure"][data-state="open"] .co-sec__title { font-weight: 600; }
  .co-sec[data-sec="configure"][data-state="open"] .co-sec__body { margin-top: 16px; }
  .co-sec[data-sec="configure"][data-state="open"] .co-mstage { display: block; }
  /* phones: a compact "3D" chip in the top right corner of the stage, above the pile (a single device reaches 35 px
     under the band's top: the chip ends at 34), clear of title and price; a tap on the pile opens the same sheet */
  .co-sec[data-sec="configure"][data-state="open"] .co-3dbtn--m { display: inline-flex; position: absolute; right: 0; top: 6px;
    z-index: 2; margin: 0; height: 28px; min-height: 28px; padding: 0 9px; gap: 5px; font-size: 12px; background: rgba(255, 255, 255, .85); }
  .co-sec[data-sec="configure"][data-state="open"] .co-mstage__pile { cursor: pointer; }
  .co-mstage.is-entering { animation: co-fade-in 200ms linear both; }
  .co-mstage__title { margin-top: 10px; font-size: 28px; position: relative; z-index: 1; }
  .co-mstage__price { margin-top: 10px; display: grid; gap: 4px; position: relative; z-index: 1; }
  .co-mstage__price > .num { font-size: 20px; line-height: 1; font-weight: 700; font-stretch: 112%; letter-spacing: -.01em; }
  .co-mstage__per { font-size: 13px; line-height: 1.3; color: var(--ink-2); }
  /* a 3-pile reaches 1.35 W to the left: it stays clear of the "Eagle XR" title at every phone width */
  .co-mstage__pile { position: absolute; right: -6px; bottom: 20px; --w: clamp(104px, 35vw, 132px); }   /* 132: the 3D chip above stays clear on big phones */
  .co-mstage__pile:has(.lineup__img:nth-child(4)) { --w: clamp(94px, 31vw, 124px); }   /* reaches further left: same clearance */
  .co-mstage__pile:has(.lineup__img:nth-child(6)) { --w: clamp(86px, 27vw, 112px); }
  .co-mstage__pile:has(.lineup__img:nth-child(8)) { --w: clamp(80px, 24vw, 100px); }
  .co-mstage__pile::after { left: -2400px !important; right: -2400px !important; }   /* the floor is full bleed */

  /* 01 done: the standard head grid (numerals in one column with 02 and 03); up to four cut-out thumbnails on
     their own row under "Configure", then the summary line */
  .co-sec[data-sec="configure"]:not([data-state="open"]) .co-sec__thumbs { grid-column: 2 / 4; grid-row: 2; display: flex; margin: 6px 0 4px; }
  .co-sec[data-sec="configure"]:not([data-state="open"]) .co-sec__line { grid-column: 2 / 4; grid-row: 3; }
  .co-sec__thumbs img { width: 28px; height: auto; flex: none; }
  .co-sec__thumbs img + img { margin-left: -8px; }

  .co-finish { min-height: 60px; padding-left: 12px; gap: 12px; }
  .co-finishes__head { padding-left: 0; padding-bottom: 6px; }
  .co-finish__pick { gap: 12px; min-height: 52px; padding: 4px 0; }
  .co-finish__thumb { width: 56px; height: 53px; }
  .co-finish__thumb img { width: 56px; }
  .co-finish__name { font-size: 16px; }
  .co-stepper__btn { width: 44px; height: 44px; }
  .co-devices { margin-top: 24px; }
  .co-devices__row { margin-bottom: 10px; }
  .co-links { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 20px; }
  .co-caption { margin-top: 16px; }
  .co-payerr { margin-top: 20px; }
  /* no dead band under a one-line nudge (a two-line nudge still wraps; only content below shifts, never the bar) */
  .co-nudge { min-height: 22px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .co-bar { padding-inline: max(var(--gutter), calc(50vw - 320px)); }     /* bar content lines up with the 640 column */
}

@media (max-width: 359px) {
  .co-mstage__title { font-size: 24px; }
  .co-mstage__pile { --w: 108px; }
  .co-mstage__pile:has(.lineup__img:nth-child(4)) { --w: 94px; }
  .co-mstage__pile:has(.lineup__img:nth-child(6)) { --w: 86px; }
  .co-mstage__pile:has(.lineup__img:nth-child(8)) { --w: 78px; }
}

@media (max-width: 767px) {
  .co-grid-pair { grid-template-columns: minmax(0, 1fr); }
  .co-group + .co-group { margin-top: 36px; }
  .co-sec__head { grid-template-columns: 32px minmax(0, 1fr) auto; }
  /* "SW1A 2AA", "1015 CJ" and "K1A 0B1" fit the postal code field */
  .co-form .fieldgrid--zip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); }
}
@media (max-width: 359px) {
  .co-form .fieldgrid--zip { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================ reduced motion */
@media (prefers-reduced-motion: reduce) {
  .co-sec__body.is-entering, .co-reserved.is-entering, .co-payarea.is-entering, .co-payreceipt.is-entering,
  .co-mstage.is-entering, .co-ship.is-entering, .lineup__img.is-entering,
  .co-lineup .lineup__group.is-entering, .co-lineup .lineup__group.is-leaving,
  .co-swap-out, .co-swap-in, .co-roll-up, .co-roll-down,
  .co-sheet[open], .co-sheet.is-closing, .co-sheet[open]::backdrop { animation: none !important; }
  .co-toast, .co-finish, .co-stepper__btn { transition: none; }
}

/* ============================================================ print */
@media print {
  .co-bar, .co-toast, .co-cur, .co-primary { display: none !important; }
  .co-stage { position: static; height: auto; }
}
