/* ==========================================================================
   Checkout (.co-) — full-screen view on phones, two-column page on desktop.
   Built on tokens.css + base.css primitives (.ds-input, .ds-btn).
   Surfaces, from quiet to loud:
     · text fields   → cream wells, 8px corners, hairline border
     · choices       → separate cream cards on a hairline; the chosen one is outlined (or filled) in bordó
     · days          → pure typography (Bodoni numerals); the chosen day becomes a bordó capsule
   Steps are marked editorially: a tracked numeral on a hairline, then the serif title.
   Motion: only a functional ≤240ms fade/rise on open; nothing decorative.
   ========================================================================== */
html.co-lock, html.co-lock body { overflow: hidden; }

#checkout .co {
  --co-pad: max(var(--space-4), var(--safe-left));
  --co-bar-h: 56px;
  --co-r-field: 8px;
  --co-r-tray: 12px;
  --co-ink-soft: var(--c-burgundy-400);
  --co-hair: rgba(110, 33, 41, .16);
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
#checkout .co.is-open { opacity: 1; transform: none; }
#checkout .co[hidden] { display: none; }

/* Buttons keep the site's pill (integration: the same CTA shape from "Agregar" through
   "Continuar" to "Enviar pedido"); fields and option cards keep their tailored corners. */

/* ---- Top bar ---------------------------------------------------------------- */
.co-bar {
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: calc(var(--co-bar-h) + var(--safe-top));
  padding: var(--safe-top) max(var(--space-2), var(--safe-right)) 0 max(var(--space-2), var(--safe-left));
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
}
.co-bar__btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-width: var(--tap); height: var(--tap); padding: 0 10px;
  border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--color-text-brand);
  font-size: var(--text-sm); font-weight: var(--fw-medium); letter-spacing: .01em;
  transition: background-color var(--dur-fast) var(--ease-out);
}
.co-bar__btn svg { width: 22px; height: 22px; flex: none; }
.co-bar__close { justify-self: end; justify-content: center; padding: 0; }
.co-bar__back { justify-self: start; }
.co-bar__txt { display: none; }
@media (hover: hover) { .co-bar__btn:hover { background: rgba(110, 33, 41, .06); } }
.co-bar__btn:active { background: rgba(110, 33, 41, .1); }
.co-bar__btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--color-focus); border-radius: var(--co-r-field); }
/* Done: the back button is the one way out (it keeps the order); a second X would only repeat it. */
.co.is-done .co-bar__close { visibility: hidden; }
.co-brand { display: grid; justify-items: center; gap: 3px; line-height: 1; }
.co-brand img { width: 96px; height: auto; }
.co-brand span {
  font-size: 8.5px; font-weight: var(--fw-medium); letter-spacing: .42em; text-transform: uppercase;
  color: var(--color-text-brand); margin-right: -.42em;
}

/* ---- Scroll area + layout ------------------------------------------------- */
.co-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-block: var(--space-6) var(--space-9);
}
.co-layout { display: flex; flex-direction: column; }
/* The form ends on its last field: a short, even margin above the dock, nothing after it. */
.co-main { padding: 0 var(--co-pad) var(--space-7); }
.co-summary { display: none; }

/* ---- Order row (phones): thumbnails + count; the amount lives in the dock -------- */
.co-sumbar { border-bottom: 1px solid var(--color-line); }
.co-sumbar[hidden] { display: none; }
.co-sumbar__toggle {
  display: flex; align-items: center; gap: var(--space-3);
  width: 100%; min-height: 50px; padding: 0 var(--co-pad);
  border: 0; background: transparent; text-align: left; color: var(--color-text-brand);
}
.co-sumbar__toggle:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--color-focus); }
@media (hover: hover) { .co-sumbar__toggle:hover { background: rgba(110, 33, 41, .03); } }
.co-sumbar__thumbs { display: flex; padding-left: 6px; }
.co-sumbar__th {
  width: 26px; height: 32px; margin-left: -6px; border-radius: 4px; overflow: hidden;
  background: var(--color-surface-sunken); box-shadow: 0 0 0 2px var(--color-bg);
}
.co-sumbar__th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.co-sumbar__count { font-size: var(--text-sm); color: var(--color-text); letter-spacing: .01em; }
.co-sumbar__more {
  display: inline-flex; align-items: center; gap: 2px; margin-left: auto;
  font-size: .8125rem; font-weight: var(--fw-medium); letter-spacing: .02em;
}
.co-sumbar__more svg { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease-out); }
.co-sumbar__toggle[aria-expanded="true"] .co-sumbar__more svg { transform: rotate(180deg); }
.co-sumbar__body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--dur-base) var(--ease-out); }
.co-sumbar__body[data-collapsed] { grid-template-rows: 0fr; }
.co-sumbar__body[data-collapsed] .co-sumbar__inner { visibility: hidden; }
.co-sumbar__inner { overflow: hidden; min-height: 0; padding: 0 var(--co-pad); }
.co-sumbar__inner > :last-child { margin-bottom: var(--space-5); }

.co-lines[role="list"] { display: grid; gap: var(--space-4); padding: var(--space-3) 0 var(--space-5); }
.co-line { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-4); }
.co-line__img {
  position: relative; width: 48px; height: 60px; border-radius: 6px;
  background: var(--color-surface-sunken); box-shadow: var(--shadow-inset);
}
.co-line__img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.co-line__qty {
  position: absolute; top: -7px; right: -7px;
  display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-text-on-brand);
  font: var(--fw-medium) 11px/1 var(--font-sans); font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--color-bg);
}
.co-line__txt { display: grid; gap: 2px; min-width: 0; }
.co-line__name { font-family: var(--font-display); font-size: 1rem; line-height: 1.2; color: var(--color-text); }
.co-line__meta { font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: .01em; }
.co-line__price { font-size: var(--text-sm); font-weight: var(--fw-medium); white-space: nowrap; }

.co-totals { display: grid; gap: var(--space-2); margin: 0; padding-top: var(--space-4); border-top: 1px solid var(--color-line); }
.co-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4); }
.co-totals dt { font-size: var(--text-sm); color: var(--color-text-muted); }
.co-totals dd { margin: 0; font-size: var(--text-sm); }
.co-totals__grand { margin-top: var(--space-1); }
.co-totals__grand dt { font-size: var(--text-base); color: var(--color-text); font-weight: var(--fw-medium); }
.co-totals__grand dd { font-size: 1.125rem; font-weight: var(--fw-semibold); color: var(--color-text); letter-spacing: .005em; }
.co-totals__grand small { margin-left: 6px; font-size: var(--text-xs); font-weight: var(--fw-regular); color: var(--color-text-muted); }
.co-sum__fine { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.45; }

/* ---- Intro ------------------------------------------------------------------ */
.co-intro { padding: var(--space-6) 0 0; }
#checkout h1 {
  font-size: clamp(2.125rem, 1.7rem + 1.8vw, 2.75rem);
  line-height: 1.02;
  color: var(--color-text-brand);
  outline: none;
}
#checkout h1 em { font-style: italic; }
.co-lead {
  margin-top: var(--space-2); text-wrap: pretty;
  font-size: .9375rem; line-height: 1.5; color: var(--color-text-muted); font-weight: var(--fw-regular);
}
.co-lead strong { color: var(--color-text); font-weight: var(--fw-medium); }

/* ---- Sections: tracked numeral on a hairline, then the serif title ------------- */
.co-sec { padding-top: 28px; }
.co-sec:first-of-type { padding-top: var(--space-5); }
.co-sec__title {
  display: grid; gap: 10px;
  margin-bottom: 14px;
  font-size: 1.5rem; line-height: 1.1; color: var(--color-text-brand);
}
.co-sec__num {
  display: flex; align-items: center; gap: var(--space-3);
  font: var(--fw-medium) 11px/1 var(--font-sans); letter-spacing: .12em;
  color: var(--co-ink-soft); font-variant-numeric: lining-nums tabular-nums;
}
.co-sec__num::after { content: ""; flex: 1; height: 1px; background: var(--co-hair); }
.co-fields { display: grid; gap: var(--space-4); }

/* ---- Text fields: quiet cream wells ------------------------------------------ */
.co-form .ds-field { gap: 6px; }
.co-form .ds-label { font-size: .8125rem; color: var(--c-ink-700); letter-spacing: .015em; }
.co-form .ds-hint, .co-form .ds-error { font-size: .8125rem; }
.co-form .ds-input {
  min-height: 48px; padding: 12px 14px;
  border-color: var(--co-hair); border-radius: var(--co-r-field);
  background: var(--c-cream-50);
}
.co-form .ds-input::placeholder { color: #9A8285; }
.co-form .ds-input:focus { box-shadow: 0 0 0 3px rgba(155, 58, 69, .12); }
.co-form .ds-input[aria-invalid="true"] { border-color: var(--color-danger); }

/* ---- Choices: separate cream cards on a hairline; the chosen one is outlined in bordó ---- */
.co-seg { display: grid; gap: var(--space-2); }
.co-seg--2 { grid-template-columns: 1fr 1fr; gap: 10px; }
.co-seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.co-seg__opt {
  position: relative; min-width: 0; cursor: pointer;
  border-radius: var(--co-r-tray);
  background: var(--c-cream-50);
  box-shadow: inset 0 0 0 1px var(--color-line-strong), 0 1px 2px rgba(63, 18, 23, .05);
  color: var(--color-text);
  -webkit-user-select: none; user-select: none;
  transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.co-seg__opt > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
@media (hover: hover) { .co-seg__opt:hover { box-shadow: inset 0 0 0 1px var(--c-burgundy-300), 0 1px 2px rgba(63, 18, 23, .05); } }
.co-seg__opt:active { background: var(--c-blush-50); }
.co-seg__opt:has(> input:checked) {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--color-accent), 0 6px 16px -10px rgba(63, 18, 23, .45);
}
.co-seg__opt:has(> input:focus-visible) { box-shadow: inset 0 0 0 1.5px var(--color-accent), var(--focus-ring); }

/* Retiro / Envío: icon + serif title on one line, details under it, a radio ring top-right. */
.co-method {
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; row-gap: 4px;
  padding: 13px 14px 13px 13px;
}
.co-method__ico { display: grid; color: var(--co-ink-soft); }
.co-method__ico svg { width: 22px; height: 22px; }
.co-method__title { font-family: var(--font-display); font-size: 1.1875rem; line-height: 1.15; color: var(--color-text); padding-right: 22px; }
.co-method__sub { grid-column: 1 / -1; font-size: .75rem; line-height: 1.4; color: var(--color-text-muted); }
.co-method__tick {
  position: absolute; top: 13px; right: 12px;
  display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--color-line-strong); color: transparent;
  transition: background-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.co-method__tick svg { width: 14px; height: 14px; stroke-width: 2.2; }
.co-method:has(> input:checked) .co-method__ico { color: var(--color-text-brand); }
.co-method:has(> input:checked) .co-method__tick { background: var(--color-accent); box-shadow: none; color: var(--color-text-on-brand); }

/* Slots: the chosen one fills in bordó, same language as the chosen day. */
.co-slot { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 58px; padding: 8px 4px; text-align: center; }
.co-slot__l { font-size: .9375rem; font-weight: var(--fw-medium); line-height: 1.1; color: var(--color-text); }
.co-slot__h { font-size: 11.5px; line-height: 1.1; color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.co-slot:has(> input:checked) { background: var(--color-accent); box-shadow: 0 6px 16px -10px rgba(63, 18, 23, .6); }
.co-slot:has(> input:checked) .co-slot__l { color: var(--color-text-on-brand); }
.co-slot:has(> input:checked) .co-slot__h { color: var(--color-text-on-brand-muted); }
.co-slot:has(> input:focus-visible) { box-shadow: var(--focus-ring); }
.co-slots.is-invalid .co-slot:not(:has(> input:checked)) { box-shadow: inset 0 0 0 1px rgba(179, 38, 30, .5); }

/* ---- Date strip: typography first, a capsule for the chosen day --------------- */
.co-cal, .co-slots { display: grid; gap: 6px; min-width: 0; }
.co-slot-legend { margin-bottom: 2px; }
.co-cal__hint { margin-top: -4px; }
.co-strip { display: grid; min-width: 0; }
.co-strip__nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-left: -10px; }
.co-strip__months { display: flex; }
.co-strip__mon {
  position: relative; min-width: var(--tap); height: var(--tap); padding: 0 10px;
  border: 0; background: transparent; border-radius: var(--radius-sm);
  font-size: var(--text-sm); color: var(--color-text-muted); letter-spacing: .02em;
  transition: color var(--dur-fast) var(--ease-out);
}
.co-strip__mon::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 1.5px; border-radius: 1px;
  background: currentColor; transform: scaleX(0); transition: transform var(--dur-fast) var(--ease-out);
}
.co-strip__mon[aria-current="true"] { color: var(--color-text-brand); font-weight: var(--fw-medium); }
.co-strip__mon[aria-current="true"]::after { transform: none; }
@media (hover: hover) { .co-strip__mon:hover { color: var(--color-text-brand); } }
.co-strip__mon:focus-visible, .co-strip__arrow:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.co-strip__arrows { display: flex; gap: 0; margin-right: -12px; }
.co-strip__arrow {
  display: grid; place-items: center; width: var(--tap); height: var(--tap);
  border: 0; border-radius: 50%; background: transparent; color: var(--color-text-brand);
  transition: background-color var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.co-strip__arrow svg { width: 20px; height: 20px; }
@media (hover: hover) { .co-strip__arrow:not(:disabled):hover { background: rgba(110, 33, 41, .06); } }
.co-strip__arrow:not(:disabled):active { background: rgba(110, 33, 41, .1); }
.co-strip__arrow:disabled { opacity: .28; cursor: default; }

/* The strip lives inside the text column (its hairlines start and end where the tabs and
   fields do) and always shows whole days: seven on desktop, five on phones. Nothing is ever
   sliced at the edge; the arrows above are the cue and the shortcut. */
.co-strip__track {
  --co-days: 5;
  --co-day-gap: 0px;
  display: flex; gap: var(--co-day-gap);
  padding: 10px 0;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline: none;
  border-block: 1px solid var(--color-line);
}
.co-strip__track::-webkit-scrollbar { display: none; }
.co-day {
  position: relative; flex: 0 0 calc(100% / var(--co-days));
  scroll-snap-align: start;
  /* Weekday + numeral, centred, so every chip (and its capsule) is balanced. The month,
     on the few chips that name it, hangs below without moving the numeral. */
  display: grid; justify-items: center; align-content: center; gap: 6px;
  height: 76px; padding-bottom: 8px;
  isolation: isolate;
  color: var(--color-text); cursor: pointer;
  -webkit-user-select: none; user-select: none;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.co-day.is-first::before {
  /* month change: a hairline between the last day of one month and the first of the next */
  content: ""; position: absolute; left: -.5px; top: 14px; bottom: 14px; width: 1px;
  background: var(--co-hair);
}
.co-day.is-first .co-day__mon { color: var(--color-text-brand); font-weight: var(--fw-medium); }
.co-day > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.co-day__wd { font-size: 10.5px; font-weight: var(--fw-medium); letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-muted); line-height: 1; }
.co-day__n {
  font: var(--fw-regular) 1.625rem/1 var(--font-display); font-variant-numeric: lining-nums;
  /* Bodoni's hairline flag on '1' vanishes at text sizes ('11' read as 'II'): a lower optical size
     and a touch more weight give it a real flag and foot. */
  font-optical-sizing: none; font-variation-settings: 'opsz' 10; font-weight: 500; letter-spacing: -.01em;
}
.co-day__mon { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font-size: 10px; letter-spacing: .06em; color: var(--color-text-subtle); line-height: 1; }
.co-day__mon:empty { display: none; }
.co-day.is-off { color: var(--c-ink-300); cursor: not-allowed; }
.co-day.is-off .co-day__wd, .co-day.is-off .co-day__mon { color: var(--c-ink-300); }
.co-day.is-off .co-day__mon { font-size: 9.5px; }
/* The capsule sits inside the chip (never touching the hairlines or the "más días" button). */
.co-day::after {
  content: ""; position: absolute; inset: 2px 4px; z-index: -1; border-radius: var(--radius-pill);
  background: transparent; transition: background-color var(--dur-fast) var(--ease-out);
}
@media (hover: hover) { .co-day:not(.is-off):not(:has(> input:checked)):hover::after { background: var(--c-blush-100); } }
.co-day:not(.is-off):not(:has(> input:checked)):active::after { background: var(--c-blush-200); }
.co-day:has(> input:checked) { color: var(--color-text-on-brand); }
.co-day:has(> input:checked)::after { background: var(--color-accent); }
.co-day:has(> input:checked) .co-day__wd, .co-day:has(> input:checked) .co-day__mon { color: var(--color-text-on-brand-muted); }
.co-day:has(> input:focus-visible)::after { box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--color-focus); }
.co-cal.is-invalid .co-strip__track { border-color: rgba(179, 38, 30, .45); }
.co-slots { margin-top: var(--space-1); }

/* ---- Reassurance (desktop summary card, under the submit) ----------------------- */
.co-reassure {
  display: flex; gap: var(--space-2); align-items: flex-start;
  font-size: .8125rem; line-height: 1.5; color: var(--color-text-muted);
}
.co-reassure svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--co-ink-soft); }
.co-reassure strong { color: var(--color-text); font-weight: var(--fw-medium); }

/* ---- Submit + dock: the total on its own line, one full-width action under it --- */
.co-submit { gap: 10px; letter-spacing: .02em; box-shadow: none; }
.co-submit .co-wa { width: 21px; height: 21px; }
.co-submit[aria-busy="true"] { opacity: .8; pointer-events: none; }
.co-dock {
  position: relative; z-index: 1;
  flex: none; display: grid; gap: 8px;
  padding: 10px var(--co-pad) calc(12px + var(--safe-bottom));
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
  box-shadow: 0 -10px 20px -18px rgba(63, 18, 23, .22);
}
.co-dock[hidden] { display: none; }
.co-dock__sum { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 24px; line-height: 1.1; }
.co-dock__lbl { font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--color-text); letter-spacing: .01em; }
.co-dock__lbl span { font-weight: var(--fw-regular); color: var(--color-text-muted); }
.co-dock__amt { font-size: 1.125rem; font-weight: var(--fw-semibold); color: var(--color-text); letter-spacing: .005em; white-space: nowrap; }
.co-dock__amt small { margin-left: 5px; font-size: var(--text-xs); font-weight: var(--fw-regular); color: var(--color-text-muted); }
.co-dock .co-submit { width: 100%; }
/* Missing data: a small red chip in place of the label; tapping it scrolls to the first gap. */
.co-dock__status {
  display: inline-flex; align-items: center; gap: 6px;
  margin: -10px 0 -10px -8px; min-height: var(--tap); padding: 0 8px;
  border: 0; border-radius: var(--radius-sm); background: transparent;
  font: var(--fw-medium) .875rem/1.1 var(--font-sans); color: var(--color-danger); letter-spacing: .005em;
  white-space: nowrap;
}
.co-dock__status[hidden] { display: none; }
.co-dock__status svg { width: 18px; height: 18px; flex: none; }
.co-dock__status svg:last-child { width: 16px; height: 16px; margin-left: -2px; }
.co-dock__status:active { background: var(--color-danger-bg); }
@media (hover: hover) { .co-dock__status:hover { background: var(--color-danger-bg); } }
.co-dock__status:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.co-dock.has-status .co-dock__lbl { display: none; }

/* ---- Empty + done states -------------------------------------------------------- */
.co-script {
  font-family: var(--font-script); font-size: clamp(3rem, 2.5rem + 2.6vw, 4.25rem);
  line-height: 1; color: var(--c-burgundy-400); margin-bottom: var(--space-2);
}
.co-empty { display: grid; justify-items: center; text-align: center; gap: var(--space-2); padding: var(--space-12) 0; }
.co-empty .ds-btn { margin-top: var(--space-5); }
.co-empty .co-lead { margin-inline: auto; max-width: 34ch; text-wrap: balance; }

/* Done: one display line, a candy-stripe seal that sits on the card edge like a box sticker. */
.co-done { padding: calc(var(--space-5) + 30px) 0 var(--space-4); }
.co-done__card {
  position: relative; display: grid; justify-items: center; text-align: center;
  padding: 0 var(--space-5) var(--space-3);
  border-radius: var(--radius-lg); background: var(--color-surface); box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--color-line);
}
.co-seal {
  display: grid; place-items: center;
  width: 60px; height: 60px; margin: -30px 0 var(--space-4); border-radius: 50%;
  background: repeating-linear-gradient(135deg, var(--c-blush-200) 0 5px, var(--c-cream-50) 5px 10px);
  box-shadow: 0 0 0 1px var(--color-line), 0 6px 16px -6px rgba(63, 18, 23, .25);
}
.co-seal__core {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-accent); color: var(--color-text-on-brand);
  box-shadow: 0 0 0 3px var(--c-cream-50);
}
.co-seal__core svg { width: 22px; height: 22px; }
.co-done__eyebrow {
  margin-bottom: var(--space-2);
  font-size: 11px; font-weight: var(--fw-medium); letter-spacing: .22em; text-transform: uppercase;
  color: var(--c-burgundy-500);
}
.co-done .co-lead { margin-inline: auto; max-width: 32ch; margin-top: var(--space-2); text-wrap: balance; }
#checkout .co-done h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.5rem); line-height: 1.05; text-wrap: balance; }
.co-done__open { margin-top: var(--space-5); }

/* Recap: a receipt. Labels sit above values on phones, beside them when there is room. */
.co-recap { width: 100%; margin: var(--space-5) 0 0; text-align: left; border-top: 1px solid var(--color-line); }
.co-recap > div { display: grid; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--color-line); }
.co-recap dt {
  font-size: 10.5px; font-weight: var(--fw-medium); letter-spacing: .16em; text-transform: uppercase;
  color: var(--color-text-subtle); line-height: 1.3;
}
.co-recap dd { margin: 0; font-size: var(--text-sm); color: var(--color-text); line-height: 1.45; text-wrap: pretty; }
.co-recap ul { display: grid; gap: 1px; }
.co-recap__q { font-variant-numeric: tabular-nums; color: var(--color-text-muted); }
.co-recap__v { color: var(--color-text-muted); }
.co-recap__head, .co-recap__total { grid-template-columns: auto 1fr; align-items: baseline; }
.co-recap__head dd, .co-recap__total dd { text-align: right; }
.co-recap__ref { font-weight: var(--fw-medium); letter-spacing: .1em; font-variant-numeric: lining-nums; }
.co-recap__total { border-bottom: 0 !important; }
.co-recap__total dt { color: var(--color-text); }
.co-recap__total dd .ds-num { font-size: var(--text-md); font-weight: var(--fw-semibold); }
.co-recap__total dd small { display: block; font-size: var(--text-xs); color: var(--color-text-muted); }
.co-done__actions { display: grid; justify-items: center; gap: var(--space-1); width: 100%; margin-top: var(--space-4); }
.co-done__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--space-5); }
.co-link {
  display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 6px;
  border: 0; background: none; border-radius: var(--radius-xs);
  font: var(--fw-medium) var(--text-sm)/1.2 var(--font-sans); color: var(--color-text-brand); letter-spacing: .01em;
  text-decoration: underline; text-decoration-color: var(--c-burgundy-200); text-underline-offset: .25em; text-decoration-thickness: 1px;
}
@media (hover: hover) { .co-link:hover { text-decoration-color: currentColor; } }
.co-link:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.co-msg { width: 100%; text-align: left; border-top: 1px solid var(--color-line); margin-top: var(--space-2); }
.co-msg summary {
  display: flex; align-items: center; justify-content: center; gap: 4px; min-height: var(--tap);
  font-size: .8125rem; color: var(--color-text-muted); cursor: pointer; list-style: none;
}
.co-msg summary svg { width: 16px; height: 16px; transition: transform var(--dur-base) var(--ease-out); }
.co-msg[open] summary svg { transform: rotate(180deg); }
.co-msg summary::-webkit-details-marker { display: none; }
.co-msg summary:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
.co-msg__bubble {
  margin: var(--space-1) 0 var(--space-3); padding: var(--space-4);
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) var(--radius-xs);
  background: var(--c-blush-50); color: var(--color-text);
  box-shadow: inset 0 0 0 1px var(--color-line);
  font: 14px/1.55 var(--font-sans); white-space: pre-wrap; word-break: break-word;
}
.co-msg__bubble strong { font-weight: var(--fw-semibold); color: var(--color-text-brand); }
.co-msg__bubble em { font-style: italic; color: var(--color-text-muted); }
.co-msg__dot {
  display: inline-block; width: 6px; height: 6px; margin: 0 9px 2px 2px; border-radius: 50%;
  background: var(--color-accent); vertical-align: middle;
}

@media (min-width: 560px) {
  .co-recap > div { grid-template-columns: 104px 1fr; gap: var(--space-3); }
  .co-recap dt { padding-top: 2px; }
  .co-recap__head dd, .co-recap__total dd { text-align: left; }
}

/* ---- Desktop: form + sticky summary card (after the form in tab order) --------- */
@media (min-width: 960px) {
  #checkout .co { --co-bar-h: 72px; }
  .co-bar { padding-inline: var(--space-7); }
  .co-bar__txt { display: inline; }
  .co-bar__back { padding-right: var(--space-4); }
  .co-brand img { width: 118px; }
  .co-brand span { font-size: 9.5px; }

  .co-sumbar { display: none; }
  .co-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    grid-template-areas: "main aside";
    column-gap: clamp(48px, 6vw, 96px);
    align-items: start;
    max-width: 1100px; margin: 0 auto; padding: var(--space-8) var(--space-7) var(--space-11);
  }
  .co-main { grid-area: main; padding: 0; max-width: 580px; }
  .co-summary { display: block; grid-area: aside; position: sticky; top: var(--space-8); }
  .co-summary[hidden] { display: none; }
  /* A pastry box: cream card, a candy-stripe ribbon on top. */
  .co-sum {
    position: relative; overflow: hidden;
    padding: calc(var(--space-6) + 6px) var(--space-6) var(--space-6);
    border-radius: var(--radius-lg); background: var(--color-surface);
    box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--color-line);
  }
  .co-sum::before {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
    background: repeating-linear-gradient(90deg, var(--c-blush-300) 0 10px, var(--c-cream-50) 10px 20px);
  }
  .co-sum__head {
    display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3);
    padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-line);
  }
  .co-sum__heading { font-size: 1.5rem; line-height: 1.1; color: var(--color-text-brand); }
  .co-sum__count { font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: .02em; }
  .co-lines[role="list"] { padding: var(--space-5) 0 var(--space-6); gap: var(--space-5); }
  .co-line__qty { box-shadow: 0 0 0 2px var(--color-surface); }
  .co-totals__grand dd { font-size: 1.375rem; }
  .co-sum__cta { display: grid; gap: var(--space-4); margin-top: var(--space-6); }

  .co-intro { padding-top: var(--space-4); }
  .co-lead { max-width: 46ch; font-size: var(--text-base); }
  .co-fields { gap: var(--space-6); }
  .co-sec { padding-top: var(--space-9); }
  .co-sec:first-of-type { padding-top: var(--space-8); }
  .co-sec__title { font-size: 1.75rem; }
  .co-strip__track { --co-days: 7; }
  .co-day { height: 82px; }
  .co-day__mon { bottom: 8px; }
  .co-day::after { inset: 2px 8px; }
  .co-dock { display: none; }

  .co.is-done .co-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; max-width: 600px; }
  .co.is-done .co-main { max-width: none; }
  .co-done { padding-top: 34px; }
  .co-done__card { padding: 0 var(--space-9) var(--space-4); }
  .co-done__actions .ds-btn { max-width: 360px; }
}
