/* ==========================================================================
   vendo checkout, receipt and order status
   Built on tokens.css and site.css: the same paper desk, Mac windows,
   Aqua buttons and type roles as the store. Sizes only from --text-*.
   ========================================================================== */

body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--paper); }
.mono { font-family: var(--f-mono); }

/* the desk: dot-grid paper, like the hero */
.cdesk {
  flex: 1; padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(40px, 5vw, 64px);
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 13%, transparent) 1px, transparent 0);
  background-size: 24px 24px;
}

/* a window, same chrome as the store's cards */
.win { background: var(--card); border: 1px solid var(--win-edge, var(--line)); border-radius: 14px; box-shadow: var(--sh-2); overflow: hidden; }
.win .win__bar { position: relative; }
.win__slot { font-size: var(--text-micro); letter-spacing: var(--ls-micro); }

/* ---- top bar ------------------------------------------------------------- */
.cbar {
  position: sticky; top: 0; z-index: 20; height: var(--menubar-h);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.cbar__in { height: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.cbar__brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; justify-self: start; }
.cbar__brand svg { width: 24px; height: 24px; }
.cbar__brand .wm { font-size: 19px; }
.cbar__right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.cbar__secure { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-label); color: var(--ink-2); }
.cbar__secure svg { width: 14px; height: 14px; }
.cbar__link { font-size: var(--text-ui); color: color-mix(in srgb, var(--ink) 58%, transparent); text-decoration: none; }
.cbar__link:hover { color: var(--ink); }

/* cart → checkout → receipt */
.csteps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; font-size: var(--text-ui); letter-spacing: var(--ls-ui); }
.csteps li { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); white-space: nowrap; }
.csteps li + li::before { content: ""; width: 18px; height: 1px; background: var(--line-2); margin-right: 2px; }
.csteps a { color: inherit; text-decoration: none; }
.csteps a:hover { color: var(--ink); }
.csteps .is-done { color: var(--ink-2); }
.csteps .is-done::after { content: ""; order: -1; width: 14px; height: 14px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 10px no-repeat; }
.csteps li + li.is-done::before { background: var(--ok); }
.csteps .is-current { color: var(--ink); font-weight: 500; }

/* footer */
.cfoot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 24px; padding: 24px var(--gutter) 32px; font-size: var(--text-ui); line-height: var(--lh-ui); letter-spacing: var(--ls-ui); color: color-mix(in srgb, var(--ink) 45%, transparent); }
.cfoot a { padding-block: 6px; color: color-mix(in srgb, var(--ink) 60%, transparent); text-decoration: none; }
.cfoot a:hover { color: var(--ink); }
.cfoot .wm { font-size: 1em; color: var(--ink-2); }
@media (max-width: 760px) { .cfoot { gap: 2px 20px; font-size: var(--text-caption); line-height: var(--lh-caption); letter-spacing: var(--ls-caption); } }

.btn .spin, .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: co-spin .7s linear infinite; flex: none; }
@keyframes co-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   checkout
   ========================================================================== */
.co { max-width: 1040px; margin: 0 auto; }
.co__guarantee { margin: 18px 0 0; font-size: var(--text-caption); line-height: var(--lh-caption); color: var(--ink-2); text-align: center; text-wrap: balance; }
.co__guarantee a { color: inherit; text-underline-offset: 3px; }
.co__badge { display: inline-grid; place-items: center; vertical-align: middle; width: 22px; height: 22px; margin: -2px 8px 0 0; border-radius: 50%; background: var(--ok-wash); color: var(--ok); }
.co__badge svg { width: 13px; height: 13px; }
.co__win { box-shadow: var(--sh-3); }
.co__bar .win__slot { max-width: 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }

/* summary pane: the sidebar of the window */
.co__sum { background: color-mix(in srgb, var(--paper-2) 70%, var(--card)); border-right: 1px solid var(--line); padding: clamp(24px, 3.2vw, 40px); }
.co__toggle { display: none; }
.co__sumbody { display: grid; gap: 22px; position: sticky; top: calc(var(--menubar-h) + 24px); }
.co__due { display: grid; gap: 6px; }
.co__due .eyebrow { font-size: var(--text-label); color: var(--ink-3); letter-spacing: var(--ls-label); }
.co__amount .amt { font-size: var(--text-price-lg); letter-spacing: -0.03em; }
.co__saving { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--text-caption); color: var(--ok); }
.co__saving .pill { font-size: var(--text-micro); }

.co__items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.co-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.co-item .tile { --size: 42px; }
.co-item__txt { display: grid; gap: 3px; min-width: 0; }
.co-item__txt b { font-size: var(--text-body); font-weight: 500; letter-spacing: var(--ls-body); line-height: 1.3; }
.co-item__txt small { display: flex; align-items: center; gap: 7px; font-size: var(--text-caption); color: var(--ink-3); min-width: 0; }
.co-item__txt small .slot { flex: none; }
.co-item__warn { color: var(--sale) !important; }
.co-item__warn .linkish { color: inherit; text-decoration: underline; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; }
.co-item__price { display: grid; justify-items: end; gap: 2px; }
.co-item__price s { font-size: var(--text-label); color: var(--ink-3); }
.co-item.is-out { opacity: .65; }
.co-item.is-out .tile { filter: grayscale(1); }

.promo-add { display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--link, var(--vend)); font-size: var(--text-ui); font-weight: 500; cursor: pointer; }
.promo-add svg { width: 16px; height: 16px; }
.promo-form { display: flex; gap: 8px; }
.promo-form .field { flex: 1; height: 42px; }
.promo-form input { font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .03em; }
.promo-form input::placeholder { font-family: var(--f-body); text-transform: none; letter-spacing: 0; }
.promo-form .btn { --h: 42px; flex: none; }
.co__promo .form-error { display: block; margin-top: 6px; }
.promo-on { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: var(--text-caption); color: var(--ok); }
.promo-on .linkish { padding: 0; border: 0; background: none; color: var(--ink-3); text-decoration: underline; cursor: pointer; font: inherit; }
.code-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 7px; font-family: var(--f-mono); font-size: var(--text-label); color: var(--ok); background: var(--ok-wash); border: 1px dashed color-mix(in srgb, var(--ok) 45%, transparent); }
.code-chip svg { width: 13px; height: 13px; }
.co__totals .code-chip { height: 20px; padding: 0 6px; }

.co__totals { margin: 0; display: grid; gap: 9px; padding-top: 18px; border-top: 1px dashed var(--line-2); font-size: var(--text-ui); letter-spacing: var(--ls-ui); }
.co__totals > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.co__totals dt { color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.co__totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.co__totals .is-disc { color: var(--ok); }
.co__totals .is-disc dt { color: var(--ok); }
.co__totals .is-total { padding-top: 12px; margin-top: 3px; border-top: 1px solid var(--line); font-size: var(--text-body-lg); font-weight: 600; }
.co__totals .is-total dt { color: var(--ink); }
.co__edit { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: var(--text-caption); color: var(--ink-2); text-decoration: none; }
.co__edit svg { width: 15px; height: 15px; }
.co__edit:hover { color: var(--ink); }

/* form pane */
.co__form { padding: clamp(24px, 3.2vw, 40px); }
#coForm { display: grid; gap: 26px; }
.co__set { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.co__set legend { padding: 0; margin-bottom: 10px; font-size: var(--text-body); font-weight: 500; letter-spacing: var(--ls-body); color: var(--ink); }
.co__field { display: grid; gap: 6px; }
.co__label { font-size: var(--text-caption); color: var(--ink-2); }
.co__field .field, .find__form .field { height: 46px; border-radius: 12px; box-shadow: var(--gloss); }
.field.is-invalid { border-color: var(--sale); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sale) 14%, transparent); }
.field__pre { font-family: var(--f-mono); color: var(--ink-3); }
.co__hint { font-size: var(--text-caption); color: var(--ink-3); }
.co__hint a { color: var(--link, var(--vend)); }
.co__hint b { color: var(--ink-2); font-weight: 500; }
.co__deliver { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--paper-2) 70%, var(--card)); border: 1px solid var(--line); }
.co__deliver-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--card); color: var(--vend); box-shadow: var(--sh-1); }
.co__deliver-ic svg { width: 17px; height: 17px; }
.co__deliver span:last-child { display: grid; gap: 2px; }
.co__deliver b { font-size: var(--text-ui); font-weight: 500; }
.co__deliver small { font-size: var(--text-caption); color: var(--ink-2); line-height: var(--lh-caption); }

/* payment methods: selectable cards */
.pms { display: grid; gap: 10px; }
.pm { position: relative; display: block; border: 1px solid var(--line-2); border-radius: 14px; background: var(--card); cursor: pointer; transition: border-color var(--d-fast), box-shadow var(--d-fast), background var(--d-fast); }
.pm:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line-2)); }
.pm input { position: absolute; opacity: 0; pointer-events: none; }
.pm:has(input:focus-visible) { outline: 2px solid var(--vend); outline-offset: 2px; }
html:not(.kb) .pm:has(input:focus-visible) { outline: none; }
.pm:has(input:checked) { border-color: var(--vend); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vend) 16%, transparent); background: color-mix(in srgb, var(--vend-wash) 40%, var(--card)); }
.pm__row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.pm__ic { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 11px; background: var(--paper-2); color: var(--ink); }
.pm:has(input:checked) .pm__ic { background: var(--vend); color: #fff; }
.pm__ic svg { width: 19px; height: 19px; }
.pm__txt { flex: 1; display: grid; gap: 2px; min-width: 0; }
.pm__txt b { font-size: var(--text-ui); font-weight: 500; }
.pm__txt small { font-size: var(--text-caption); color: var(--ink-2); line-height: var(--lh-caption); }
.pm__radio { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--card); transition: border-color var(--d-fast); }
.pm:has(input:checked) .pm__radio { border: 6px solid var(--vend); }
/* how paying works: behind an info button next to "payment" */
.co__payhead { position: relative; display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.co__legend { font-size: var(--text-body); font-weight: 500; letter-spacing: var(--ls-body); color: var(--ink); }
.info-btn { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-3); cursor: pointer; transition: color var(--d-fast), background var(--d-fast); }
.info-btn svg { width: 17px; height: 17px; }
.info-btn:hover, .info-btn[aria-expanded="true"] { color: var(--vend); background: var(--vend-wash); }
.how-pop {
  position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; width: min(330px, 100%); padding: 14px 16px 16px;
  border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-3);
  display: grid; gap: 10px; animation: co-pop .22s var(--ease) both;
}
.how-pop[hidden] { display: none; }
.how-pop b { font-size: var(--text-ui); font-weight: 500; }
.how-pop ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.how-pop li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--text-caption); color: var(--ink-2); line-height: var(--lh-caption); }
.how-pop li span { display: grid; place-items: center; width: 20px; height: 20px; flex: none; border-radius: 50%; font-family: var(--f-mono); font-size: var(--text-micro); color: var(--vend); border: 1px solid color-mix(in srgb, var(--vend) 35%, transparent); }
@media (max-width: 640px) { .how-pop { width: 100%; } .info-btn { width: 36px; height: 36px; } }
.pm-off { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--paper-2) 70%, var(--card)); border: 1px dashed var(--line-2); }
.pm-off > svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; margin-top: 1px; }
.pm-off span { display: grid; gap: 3px; }
.pm-off b { font-size: var(--text-ui); font-weight: 500; }
.pm-off small { font-size: var(--text-caption); color: var(--ink-2); }

.co__err { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--sale-wash); color: var(--sale); font-size: var(--text-caption); line-height: var(--lh-caption); }
.co__err svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.co__unpaid { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.co__unpaid a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.co__pay { --h: 54px; gap: 10px; border-radius: 16px; }
.co__pay svg { width: 17px; height: 17px; }
.co__pay-total { font-variant-numeric: tabular-nums; }
.co__pay-total::before { content: "·"; margin-right: 10px; opacity: .45; }
.co__pay:disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.4); }
.co__pay.is-busy { opacity: 1; filter: none; }
.co__fine { margin: -12px 0 0; text-align: center; text-wrap: balance; font-size: var(--text-caption); color: var(--ink-3); line-height: var(--lh-caption); }
.co__fine svg { display: inline-block; width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
.co__fine a { color: inherit; }


/* empty cart */
.co-empty__win, .find__win { max-width: 480px; margin: clamp(8px, 4vw, 40px) auto 0; box-shadow: var(--sh-3); }
.co-empty__in, .find__in { display: grid; justify-items: center; gap: 12px; padding: 36px clamp(20px, 5vw, 40px) 36px; text-align: center; }
.co-empty__in .vee, .find__in .vee { width: 64px; height: 64px; margin-bottom: 4px; animation: co-bob 3.4s ease-in-out infinite; }
.co-empty__in h1, .find__in h1 { margin: 0; font-size: var(--text-title-lg); line-height: var(--lh-title-lg); letter-spacing: var(--ls-title-lg); font-weight: 500; }
.co-empty__in p, .find__in > p { margin: 0; max-width: 34ch; font-size: var(--text-body); color: var(--ink-2); }
.co-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
@keyframes co-bob { 50% { transform: translateY(-4px); } }

/* ==========================================================================
   order page: a receipt printer and the order's live status
   ========================================================================== */
.ord-load { animation: co-fadein .2s .5s both; }
@keyframes co-fadein { from { opacity: 0; } }
.ord-load { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 120px 0; font-size: var(--text-caption); color: var(--ink-3); }
.ord-load__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vend); animation: co-blink 1s ease-in-out infinite; }

.ord { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.ord__print { position: relative; }

/* the printer */
.printer { position: relative; z-index: 2; }
.printer__body {
  position: relative; display: flex; align-items: center; gap: 10px; height: 62px; padding: 0 18px;
  border-radius: 20px 20px 12px 12px; background: linear-gradient(#323236, #18181b 70%, #111113);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -2px 0 rgba(0,0,0,.5), 0 20px 34px -20px rgba(0,0,0,.65);
  color: #8d8d95;
}
.printer__led { width: 8px; height: 8px; border-radius: 50%; background: #2fd16f; box-shadow: 0 0 0 3px rgba(47,209,111,.18), 0 0 10px rgba(47,209,111,.6); }
.printer.is-printing .printer__led { animation: co-blink .32s steps(2, start) infinite; background: #ffb020; box-shadow: 0 0 0 3px rgba(255,176,32,.2), 0 0 10px rgba(255,176,32,.7); }
.printer__name { font-family: var(--f-mono); font-size: var(--text-label); letter-spacing: .02em; color: #a6a6ae; }
.printer__name i { font-style: normal; color: var(--lcd-on, #6ea8ff); }
.printer__vents { margin-left: auto; display: flex; gap: 4px; }
.printer__vents i { width: 3px; height: 18px; border-radius: 3px; background: #0c0c0e; box-shadow: inset 0 1px 1px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.06); }
.printer__slot { height: 12px; margin: -3px 16px 0; border-radius: 0 0 9px 9px; background: #08080a; box-shadow: inset 0 4px 5px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.05); }
@keyframes co-blink { 50% { opacity: .35; } }

/* the paper: thermal-receipt white in both themes, it's an object on the desk */
.paperwrap { position: relative; z-index: 1; margin: -7px 30px 0; padding: 0 6px 30px; overflow: hidden; }
.paper {
  --ink-p: #1b1b1d; --rule-p: #c8c8c4;
  position: relative; padding: 26px 22px 34px; background: #fffefa; color: var(--ink-p);
  font-family: var(--f-mono); font-size: var(--text-caption); line-height: 1.65; letter-spacing: 0;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 30px -20px rgba(0,0,0,.4);
  -webkit-mask: radial-gradient(6px at 50% 100%, #0000 98%, #000) 0 0 / 14px 100%;
          mask: radial-gradient(6px at 50% 100%, #0000 98%, #000) 0 0 / 14px 100%;
  transform-origin: 50% 0;
}
.paper::before { content: ""; position: absolute; inset: 0 0 auto; height: 14px; background: linear-gradient(rgba(0,0,0,.12), transparent); }
.paper.is-printing { animation: co-print 2.6s steps(26, end) both; }
.paper.is-done { animation: co-settle 1.1s var(--ease) both; }
@keyframes co-print { from { transform: translateY(-101%); } to { transform: translateY(0); } }
@keyframes co-settle { 0% { transform: rotate(0); } 35% { transform: rotate(-1.4deg); } 65% { transform: rotate(.5deg); } 100% { transform: rotate(-.5deg); } }

.paper__head { display: grid; justify-items: center; gap: 4px; text-align: center; }
.paper__vee { width: 30px; height: 30px; }
.paper__head .wm { font-size: 24px; color: var(--ink-p); }
.paper__tag { font-size: var(--text-label); color: #7b7b80; }
.paper__rule { border-top: 1.5px dashed var(--rule-p); margin: 14px 0; }
.paper__row { display: flex; justify-content: space-between; gap: 12px; }
.paper__row span:first-child { color: #66666b; }
.paper__row.is-total { font-size: var(--text-body); font-weight: 600; margin-top: 4px; }
.paper__row.is-total span:first-child { color: var(--ink-p); }
.paper__row.is-save { color: #12804a; font-weight: 500; }
.paper__row.is-save span:first-child { color: #12804a; }
.paper__row.is-muted { color: #8a8a8f; }
.paper__row.is-pending span:last-child { color: #a35e00; }
.paper__row.is-paid span:last-child, .paper__row.is-fulfilled span:last-child { color: #12804a; }
.paper__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 3px 0; }
.paper__slot { padding: 0 5px; border: 1px solid var(--rule-p); border-radius: 4px; font-size: var(--text-label); }
.paper__name { display: grid; min-width: 0; }
.paper__name small { font-size: var(--text-label); color: #8a8a8f; }
.paper__code { display: grid; justify-items: center; gap: 6px; margin-top: 4px; }
.paper__bars { width: 100%; height: 46px; fill: var(--ink-p); }
.paper__code span { font-size: var(--text-label); letter-spacing: .24em; color: #55555a; }
.paper__thanks { margin: 16px 0 0; text-align: center; font-size: var(--text-caption); }
.paper__thanks span { font-size: var(--text-label); color: #7b7b80; }

/* a rubber stamp for the order's state */
.paper__stamp {
  position: absolute; top: 47%; left: 50%; padding: 5px 12px; border: 2.5px solid currentColor; border-radius: 7px; white-space: nowrap;
  font-family: var(--f-mono); font-size: var(--text-label); font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(-12deg); opacity: .6; mix-blend-mode: multiply; pointer-events: none;
}
.paper__stamp.is-pending { color: #c26d00; }
.paper__stamp.is-paid, .paper__stamp.is-fulfilled { color: #13894f; }
.paper__stamp.is-cancelled, .paper__stamp.is-refunded { color: #b3202d; }
.paper.is-printing .paper__stamp { opacity: 0; }
.paper.is-done .paper__stamp { animation: co-stamp .42s .35s var(--spring) both; }
@keyframes co-stamp { from { opacity: 0; transform: translate(-50%, -50%) rotate(-12deg) scale(1.8); } to { opacity: .6; transform: translate(-50%, -50%) rotate(-12deg) scale(1); } }

.ord__tools { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: -10px; }
.ord__tools svg { width: 15px; height: 15px; }

/* vee says thanks */
.ord-bubble { position: absolute; z-index: 3; top: -26px; right: -14px; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-2); font-size: var(--text-caption); white-space: nowrap; animation: co-pop .5s 2.7s var(--spring) both; }
.ord-bubble svg { width: 26px; height: 26px; }
.ord-bubble.is-out { opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .4s; }
@keyframes co-pop { from { opacity: 0; transform: translateY(8px) scale(.9); } }

/* status, payment and keys */
.ord__info { display: grid; gap: 16px; }
.ord__hello { display: grid; gap: 12px; justify-items: start; margin-bottom: 6px; }
.ord__chip { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px 0 9px; border-radius: 99px; font-size: var(--text-caption); font-weight: 500; }
.ord__chip svg { width: 15px; height: 15px; }
.ord__chip.tone--blue { color: var(--vend); background: var(--vend-wash); }
.ord__chip.tone--green { color: var(--ok); background: var(--ok-wash); }
.ord__chip.tone--gray { color: var(--ink-2); background: var(--paper-2); }
.ord__hello h1 { margin: 0; font-size: var(--text-heading); line-height: var(--lh-heading); letter-spacing: var(--ls-heading); font-weight: 500; text-wrap: balance; }
.ord__hello h1 .dot { font-style: normal; color: var(--coin); }
.ord__lead { margin: 0; max-width: 46ch; font-size: var(--text-lead); line-height: var(--lh-lead); letter-spacing: var(--ls-lead); color: var(--ink-2); }
.ord__lead b { color: var(--ink); font-weight: 500; }

.ord-win .win__bar { position: relative; }
.ord-win .win__slot { display: inline-flex; align-items: center; gap: 6px; }
.ord-win .live-dot { width: 6px; height: 6px; animation: co-blink 1.6s ease-in-out infinite; }

.track { list-style: none; margin: 0; padding: 18px 20px; display: grid; }
.track__step { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.track__step:last-child { padding-bottom: 0; }
.track__step:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 28px; bottom: 2px; width: 2px; border-radius: 2px; background: var(--line); }
.track__step.is-done:not(:last-child)::before { background: var(--ok); }
.track__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px solid var(--line-2); background: var(--card); color: #fff; }
.track__dot svg { width: 14px; height: 14px; }
.is-done .track__dot { background: var(--ok); border-color: var(--ok); }
.is-now .track__dot { border-color: var(--vend); }
.is-now .track__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--vend); animation: co-blink 1.4s ease-in-out infinite; }
.is-now .track__dot { box-shadow: 0 0 0 5px color-mix(in srgb, var(--vend) 14%, transparent); }
.is-stop .track__dot { background: var(--ink-3); border-color: var(--ink-3); }
.is-off .track__dot, .is-next .track__dot { background: var(--card); }
.track__txt { display: grid; gap: 2px; padding-top: 2px; }
.track__txt b { font-size: var(--text-ui); font-weight: 500; }
.is-next .track__txt b { color: var(--ink-3); }
.track__txt small { font-size: var(--text-caption); color: var(--ink-3); }
.is-now .track__txt small { color: var(--vend); }

.pay { padding: 18px 20px 20px; display: grid; gap: 14px; }
.pay__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay__cell { position: relative; display: grid; gap: 4px; padding: 12px 44px 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--paper-2) 70%, var(--card)); border: 1px solid var(--line); }
.pay__k { font-size: var(--text-label); color: var(--ink-3); }
.pay__v { font-size: var(--text-body-lg); font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.pay__v.mono { font-weight: 500; font-size: var(--text-body); }
.pay__copy { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-3); cursor: pointer; transition: background var(--d-fast), color var(--d-fast); }
.pay__cell .pay__copy { position: absolute; right: 8px; top: 50%; translate: 0 -50%; }
.pay__copy:hover { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }
.pay__copy svg { width: 16px; height: 16px; }
.pay__details { display: grid; gap: 8px; }
.pay__details-head { display: flex; justify-content: space-between; align-items: center; }
.pay__details .linkish { padding: 0; border: 0; background: none; color: var(--link, var(--vend)); font-size: var(--text-caption); font-weight: 500; cursor: pointer; }
.pay__pre { margin: 0; padding: 14px 16px; border-radius: 12px; background: #1b1b1e; color: #e9e9ec; font-family: var(--f-mono); font-size: var(--text-caption); line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.pay__details--wait { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); font-size: var(--text-caption); color: var(--ink-2); }
.pay__details--wait svg { width: 17px; height: 17px; color: var(--ink-3); flex: none; }
/* crypto: one button to BoomFi's page */
.pay__crypto { margin: 14px 0 10px; }
.pay__crypto svg { width: 18px; height: 18px; }
.pay__note { margin: 0; font-size: var(--text-caption); line-height: var(--lh-caption); color: var(--ink-2); }

.keys { padding: 8px 20px 18px; display: grid; }
.keyline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 0; }
.keyline + .keyline { border-top: 1px solid var(--line); }
.keyline .tile { --size: 38px; }
.keyline__txt { display: grid; gap: 2px; min-width: 0; }
.keyline__txt b { font-size: var(--text-ui); font-weight: 500; }
.keyline__txt small { display: flex; align-items: center; gap: 7px; font-size: var(--text-caption); color: var(--ink-3); }
.keyline__code { max-width: 220px; padding: 6px 10px; border-radius: 8px; background: var(--paper-2); border: 1px solid var(--line); font-family: var(--f-mono); font-size: var(--text-caption); overflow-wrap: anywhere; }
.keyline__mail { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-caption); color: var(--ink-3); grid-column: span 2; }
.keyline__mail svg { width: 15px; height: 15px; }
.keys__note { display: flex; gap: 8px; margin: 6px 0 0; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: var(--text-caption); color: var(--ink-2); line-height: var(--lh-caption); }
.keys__note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--ink-3); }
.keys__note a { text-underline-offset: 3px; }

.ord__help { display: flex; gap: 10px; margin: 4px 2px 0; font-size: var(--text-caption); color: var(--ink-3); line-height: var(--lh-caption); }
.ord__help svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }

/* find an order */
.find__in { justify-items: stretch; text-align: left; }
.find__in .vee, .find__in h1, .find__in > p { justify-self: center; text-align: center; }
.find__form { display: grid; gap: 14px; margin-top: 8px; }
.find__form .btn { margin-top: 4px; }
.find__recent { display: grid; gap: 4px; margin-top: 10px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.find__recent-h { font-size: var(--text-label); color: var(--ink-3); margin-bottom: 4px; }
.find__recent-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: var(--text-ui); transition: background var(--d-fast); }
.find__recent-row:hover { background: var(--paper-2); }
.find__recent-row span:nth-child(2) { color: var(--ink-3); font-size: var(--text-caption); }
.find__recent-row svg { width: 15px; height: 15px; color: var(--ink-3); }

/* ---- tablets and phones ----------------------------------------------------- */
@media (max-width: 900px) {
  .ord { display: flex; flex-direction: column; gap: 22px; max-width: 560px; }
  .ord__info { display: contents; }
  .ord__hello { order: 0; margin-bottom: 0; }
  .ord__print { order: 1; width: 100%; max-width: 400px; align-self: center; margin-top: 10px; }
  .ord-win, .ord__help { order: 2; width: 100%; }
  .ord-bubble { right: 0; }
}
@media (max-width: 860px) {
  .co__grid { grid-template-columns: minmax(0, 1fr); }
  .co__sum { border-right: 0; border-bottom: 1px solid var(--line); padding: 0; }
  .co__toggle {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 18px; border: 0; background: none; color: var(--link, var(--vend));
    font-size: var(--text-ui); font-weight: 500; cursor: pointer; text-align: left;
  }
  .co__toggle svg { width: 17px; height: 17px; }
  .co__toggle .chev { width: 15px; height: 15px; transition: transform var(--d-mid) var(--ease); }
  .co__toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
  .co__toggle-total { margin-left: auto; color: var(--ink); }
  .co__sumbody { position: static; display: none; padding: 4px 18px 22px; }
  .co__sum.is-open .co__sumbody { display: grid; }
  .co__form { padding: 22px 18px 26px; }
  .co__bar .win__slot { display: none; }
}
@media (max-width: 640px) {
  .cbar__in { grid-template-columns: auto 1fr auto; gap: 10px; }
  .cbar__secure span, .cbar__link { display: none; }
  .csteps { justify-self: center; gap: 4px; font-size: var(--text-caption); }
  .csteps li + li::before { width: 10px; }
  .csteps .is-done::after { width: 12px; height: 12px; background-size: 8px; }
  .cdesk { padding-inline: 12px; }
  .co__win { border-radius: 16px; }
    .pay__grid { grid-template-columns: 1fr; }
  .keyline { grid-template-columns: auto minmax(0, 1fr) auto; }
  .keyline__code { grid-column: 1 / -2; max-width: none; }
  .paperwrap { margin-inline: 22px; }
  .ord-bubble { top: -34px; }
}
@media (max-width: 380px) {
  .csteps li:not(.is-current) { font-size: 0; gap: 0; }
  .csteps li + li::before { margin-right: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .paper, .paper.is-done, .paper__stamp, .ord-bubble { animation: none !important; }
}

/* ==========================================================================
   FLOW "stage" (see assets/checkout.js): the printing screen, then the order page
   ========================================================================== */
.stage { max-width: 460px; margin: 0 auto; display: grid; justify-items: center; gap: 22px; padding-bottom: 120px; }
.stage__kicker { display: inline-flex; align-items: center; gap: 9px; height: 34px; margin: 0; padding: 0 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); font-size: var(--text-caption); color: var(--ink-2); }
.stage__kicker .spin { width: 13px; height: 13px; border-width: 1.5px; color: var(--vend); }
.stage__kicker svg { width: 15px; height: 15px; }
/* "ding! order received": a blue bar with a little keycap lip, the moment the receipt comes out */
.stage__kicker.is-done { color: #fff; background: var(--vend); border-color: var(--vend-lo); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 2px 0 var(--vend-lo), 0 8px 18px -8px color-mix(in srgb, var(--vend) 70%, transparent); animation: co-pop .4s var(--spring) both; }
.stage__machine { position: relative; width: min(420px, 100%); }
.stage.is-leaving { animation: co-leave .38s var(--ease) forwards; }
@keyframes co-leave { to { opacity: 0; transform: translateY(-14px) scale(.985); } }

/* the 3, 2, 1 after the receipt prints: big soft numbers in the middle of the screen, like a camera timer */
.cd { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 60; display: grid; place-items: center; pointer-events: none; opacity: .3; }
.cd[hidden] { display: none; }
.cd b { font-family: var(--f-display); font-size: calc(var(--text-display) * 1.25); line-height: 1; letter-spacing: var(--ls-display); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); animation: cd-tick 1s var(--ease) forwards; }
@keyframes cd-tick { 0% { opacity: 0; transform: scale(1.3); } 18% { opacity: 1; transform: scale(1); } 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.94); } }
/* the receipt is a screen of its own: no footer, the machine in the middle */
body.is-staging .cfoot { display: none; }
body.is-staging .stage { min-height: calc(100vh - 160px); min-height: calc(100dvh - 160px); align-content: center; padding-bottom: 40px; }

/* the order page (v3): one column that reads like a receipt. every fact shows once */
.st { max-width: 640px; margin: 0 auto; }
.st__card { box-shadow: var(--sh-3); }
.st__card .win__slot { display: inline-flex; align-items: center; gap: 6px; }
.st__card .live-dot { width: 6px; height: 6px; animation: co-blink 1.6s ease-in-out infinite; }

.st__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px 20px; padding: 32px 32px 0; }
.st__titles { display: grid; gap: 8px; }
.st__head h1 { margin: 0; font-size: var(--text-title-lg); line-height: var(--lh-title-lg); letter-spacing: var(--ls-title-lg); font-weight: 500; text-wrap: balance; outline: none; }
.st__head h1 .dot { font-style: normal; color: var(--coin); }
.st__lead { margin: 0; max-width: 50ch; font-size: var(--text-body); line-height: var(--lh-body); letter-spacing: var(--ls-body); color: var(--ink-2); }
.st__lead b { color: var(--ink); font-weight: 500; }
.st__rcpt svg { width: 15px; height: 15px; }

/* progress: three bars, the only place the state and its dates show */
.prog { list-style: none; margin: 0; padding: 28px 32px 30px; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 12px; }
.prog__step { display: grid; align-content: start; gap: 3px; min-width: 0; }
.prog__bar { position: relative; height: 4px; margin-bottom: 10px; border-radius: 4px; background: var(--line); overflow: hidden; }
.is-done .prog__bar { background: var(--ok); }
.is-stop .prog__bar { background: var(--ink-3); }
.is-now .prog__bar { background: color-mix(in srgb, var(--vend) 20%, var(--line)); }
.is-now .prog__bar::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: inherit; background: var(--vend); animation: co-prog 1.8s var(--ease) infinite; }
@keyframes co-prog { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.prog__step b { font-size: var(--text-ui); line-height: var(--lh-ui); letter-spacing: var(--ls-ui); font-weight: 500; }
.prog__step.is-next b { color: var(--ink-3); }
.prog__step small { font-size: var(--text-caption); line-height: var(--lh-caption); color: var(--ink-3); }
.prog__step.is-now small { color: var(--vend); }

/* how to pay: a tinted card, only while the order waits for money */
.st__pay { display: grid; gap: 16px; margin: 0 32px 32px; padding: 20px; border-radius: 14px; background: color-mix(in srgb, var(--paper-2) 70%, var(--card)); border: 1px solid var(--line); }
.st__pay-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.st__pay h2, .st__order h2 { margin: 0; font-size: var(--text-body); line-height: var(--lh-body); letter-spacing: var(--ls-body); font-weight: 500; }
.st__pay-head span { font-size: var(--text-caption); color: var(--ink-3); }
.st__pay .pay { padding: 0; }
.st__pay .pay__cell { background: var(--card); }
.st__pay .pay__cancel { padding-top: 0; border-top: 0; text-align: left; }
.st__pay .pay__cancel .linkish { padding-inline: 0; }

/* summary: each plan once, its key on its own row */
.st__order { display: grid; gap: 6px; padding: 26px 32px 30px; border-top: 1px solid var(--line); }
.st__items { list-style: none; margin: 0; padding: 0; display: grid; }
.st__item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 14px; row-gap: 10px; padding: 14px 0; }
.st__item + .st__item { border-top: 1px solid var(--line); }
.st__item .tile { --size: 42px; }
.st__item-txt { display: grid; gap: 3px; min-width: 0; }
.st__item-txt b { font-size: var(--text-body); line-height: 1.3; letter-spacing: var(--ls-body); font-weight: 500; }
.st__item-txt small { display: flex; align-items: center; gap: 7px; font-size: var(--text-caption); color: var(--ink-3); }
.st__key { grid-column: 2 / -1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.st__key code { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--line); font-family: var(--f-mono); font-size: var(--text-ui); overflow-wrap: anywhere; }
.st__note { grid-column: 2 / -1; display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-caption); color: var(--ink-3); }
.st__note svg { width: 14px; height: 14px; }
.st__totals { margin: 0; display: grid; gap: 8px; padding-top: 16px; border-top: 1px dashed var(--line-2); font-size: var(--text-ui); line-height: var(--lh-ui); letter-spacing: var(--ls-ui); }
.st__totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.st__totals dt { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.st__totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.st__totals .is-disc, .st__totals .is-disc dt { color: var(--ok); }
.st__totals .is-total { font-size: var(--text-body-lg); font-weight: 600; }
.st__totals .is-total dt { color: var(--ink); }
.st__totals .is-save, .st__totals .is-save dt { font-size: var(--text-caption); color: var(--ok); }
.st__guide { grid-column: 2 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-caption); color: var(--link, var(--vend)); text-underline-offset: 3px; }
.st__guide svg { width: 15px; height: 15px; color: var(--ink-3); }

.st__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 16px 32px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--paper-2) 50%, var(--card)); font-size: var(--text-caption); line-height: var(--lh-caption); color: var(--ink-2); }
.st__foot a { color: var(--link, var(--vend)); }
.st__foot > a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.st__foot > a:hover { color: var(--ink); }

.st.is-arriving .st__card { animation: co-open .5s var(--ease) both; }
.st.is-arriving .st__card > :not(.win__bar) { animation: co-rise .5s var(--ease) both; }
.st.is-arriving .st__card > :nth-child(3) { animation-delay: .06s; }
.st.is-arriving .st__card > :nth-child(4) { animation-delay: .12s; }
.st.is-arriving .st__card > :nth-child(n+5) { animation-delay: .18s; }
@keyframes co-rise { from { opacity: 0; transform: translateY(14px); } }

/* view receipt: a small window where it prints again */
.rcpt { width: min(420px, calc(100vw - 24px)); max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.rcpt::-webkit-scrollbar { display: none; }
.rcpt__in { position: relative; display: grid; padding: 22px 0 6px; }
.rcpt__x { position: absolute; top: 0; right: 0; z-index: 4; display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); box-shadow: var(--sh-2); cursor: pointer; }
.rcpt__x svg { width: 15px; height: 15px; }
.rcpt__btns { display: flex; justify-content: center; gap: 10px; margin-top: -12px; }
.rcpt__btns svg { width: 16px; height: 16px; }
.paper.is-reprinting { animation: co-print 1.5s steps(18, end) both; }

/* printing and save-as-pdf use one sheet */
.print-sheet { display: none; }
@media print {
  @page { margin: 12mm; }
  body { background: #fff !important; display: block; }
  body > *:not(.print-sheet):not(svg) { display: none !important; }
  .print-sheet { display: block !important; }
  .print-sheet .paper { max-width: 340px; margin: 0 auto; box-shadow: none; transform: none; animation: none; -webkit-mask: none; mask: none; border: 1px dashed #bbb; }
  .print-sheet .paper::before { display: none; }
  .print-sheet .paper__stamp { animation: none !important; opacity: .6 !important; }
}

@media (max-width: 640px) {
  .stage { gap: 18px; padding-bottom: 110px; }
  .stage .ord-bubble { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cd b, .stage.is-leaving, .st.is-arriving .st__card, .st.is-arriving .st__card > *, .is-now .prog__bar::after, .paper.is-reprinting { animation: none !important; }
}

/* ==========================================================================
   checkout and order page, round two: motion, helpers and phone sizing
   ========================================================================== */
/* checkout opens like a window */
.co.is-in .co__win { animation: co-open .5s var(--ease) both; }
.co.is-in .co-item { animation: co-rise .45s var(--ease) both; }
.co.is-in .co-item:nth-child(2) { animation-delay: .05s; }
.co.is-in .co-item:nth-child(3) { animation-delay: .1s; }
.co.is-in .co-item:nth-child(4) { animation-delay: .15s; }
.co.is-in .co-item:nth-child(n+5) { animation-delay: .2s; }
.co.is-leaving { animation: co-leave .36s var(--ease) forwards; }
@keyframes co-open { from { opacity: 0; transform: translateY(18px) scale(.985); } }

/* a quantity bubble on each plan, like a real checkout */
.co-item__art { position: relative; display: inline-grid; }
.co-item__art i { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; font-style: normal; font-family: var(--f-mono); font-size: var(--text-micro); color: #fff; background: color-mix(in srgb, var(--ink) 72%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--paper-2) 70%, var(--card)); }

/* email: a check when it looks right, a nudge when it looks off */
.field__ok { display: none; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--ok); color: #fff; }
.field__ok svg { width: 13px; height: 13px; color: #fff; }
.field.is-valid .field__ok { display: grid; animation: co-pop .3s var(--spring) both; }
.co__suggest { display: inline-flex; align-items: center; gap: 7px; justify-self: start; padding: 6px 10px; border: 1px dashed color-mix(in srgb, var(--vend) 40%, transparent); border-radius: 9px; background: var(--vend-wash); color: var(--ink-2); font-size: var(--text-caption); cursor: pointer; }
.co__suggest svg { width: 14px; height: 14px; color: var(--vend); }
.co__suggest b { color: var(--vend); font-weight: 500; }
.co__pay.is-busy .spin, .paybar__btn .spin { width: 17px; height: 17px; }

/* phones: the pay button stays in reach */
.paybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; align-items: center; gap: 14px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--card) 86%, transparent); border-top: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 -10px 30px -18px rgba(0,0,0,.35); animation: co-up .3s var(--ease) both;
}
@keyframes co-up { from { transform: translateY(100%); } }
.paybar__sum { display: grid; line-height: 1.15; }
.paybar__sum small { font-size: var(--text-label); color: var(--ink-3); }
.paybar__sum .amt { font-size: var(--text-price); }
.paybar__btn { flex: 1; --h: 50px; border-radius: 15px; gap: 8px; }
.paybar__btn svg { width: 16px; height: 16px; }
@media (min-width: 861px) { .paybar { display: none !important; } }
/* leave the footer readable under the bar */
@media (max-width: 860px) { body:has(.paybar:not([hidden])) .cfoot { padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)); } }

.pay__cancel { padding-top: 10px; border-top: 1px dashed var(--line-2); text-align: center; }
.pay__cancel .linkish { padding: 6px 4px; border: 0; background: none; color: var(--ink-3); font-size: var(--text-caption); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pay__cancel .linkish:hover { color: var(--sale); }
.cancel-ask { display: grid; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--sale-wash); font-size: var(--text-caption); color: var(--ink-2); animation: co-pop .3s var(--spring) both; }
.cancel-ask__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cancel-ask__yes { color: #fff; background: var(--sale); border: 1px solid color-mix(in srgb, var(--sale) 80%, #000); box-shadow: none; text-shadow: none; }

/* links in running text */
.cfoot a[data-support], .keys__note a, .ord__lead a, .st__lead a { color: var(--link, var(--vend)); }
.paper__help { margin: 14px 0 0; text-align: center; font-size: var(--text-label); color: #6b6b70; }

/* ---- phones: bigger targets, calmer spacing ------------------------------------- */
@media (max-width: 860px) {
  .co__field .field, .find__form .field { height: 50px; }
  .co__pay { --h: 56px; }
  .pm__row { padding: 16px; }
}
@media (max-width: 640px) {
  .cbar__right { gap: 4px; }
  .cbar .mb-btn { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; }
  .co__form { padding: 22px 16px 28px; }
  #coForm { gap: 24px; }
  .st__card { border-radius: 16px; }
  .st__head { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 24px 20px 0; }
  .st__rcpt { --h: 40px; justify-self: start; grid-row: 2; }
  .prog { gap: 8px; padding: 24px 20px 26px; }
  .prog__step b { font-size: var(--text-caption); line-height: var(--lh-caption); }
  .prog__step small { font-size: var(--text-label); line-height: var(--lh-label); }
  .st__pay { margin: 0 12px 24px; padding: 16px; }
  .st__order { padding: 22px 20px 24px; }
  .st__foot { padding: 14px 20px; }
  .cancel-ask__btns .btn { --h: 44px; flex: 1; }
  .pay { padding: 16px; }
  .keys { padding: 6px 16px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .co.is-in .co__win, .co.is-in .co-item, .co.is-leaving, .paybar, .cancel-ask { animation: none !important; }
}

/* ---- phones: the top bar -----------------------------------------------------
   brand on the left, the steps as one small pill, sound on the right */
@media (max-width: 640px) {
  .cbar { height: 56px; }
  .cbar__in { grid-template-columns: auto 1fr auto; gap: 6px; padding-inline: 12px 6px; }
  .cbar__brand { gap: 7px; padding: 8px 4px; margin-left: -4px; }
  .cbar__brand svg { width: 22px; height: 22px; flex: none; }
  .cbar__brand .wm { font-size: 18px; white-space: nowrap; }
  .csteps { justify-self: center; gap: 0; height: 32px; padding: 0 12px 0 9px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-1); font-size: var(--text-caption); }
  .csteps li { gap: 0; }
  .csteps li + li::before { order: -2; width: 8px; margin: 0 5px; }
  .csteps li:not(.is-current) { font-size: 0; }
  .csteps .is-done::after { width: 16px; height: 16px; background-size: 10px; }
  .csteps li:not(.is-done):not(.is-current)::after { content: ""; order: -1; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--line-2); margin: 0 3px; }
  .csteps .is-current { gap: 7px; }
  .cbar__secure, .cbar__link { display: none; }
  .cbar__right { gap: 0; }
  .cbar .mb-btn { width: 44px; height: 44px; padding: 0; display: grid; place-items: center; border-radius: 12px; }
  .cbar .mb-btn[data-theme-toggle] { display: none; }
}
@media (max-width: 340px) {
  .cbar__brand .wm { display: none; }
}

/* phones: only the page you're on, in the right corner, with a blue dot before it */
@media (max-width: 640px) {
  .cbar__right { display: none; }
  .csteps { grid-column: 3; justify-self: end; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  .csteps li:not(.is-current), .csteps li + li::before { display: none; }
  .csteps .is-current { gap: 8px; margin-right: 6px; }
  .csteps .is-current::after { content: ""; order: -1; width: 8px; height: 8px; border-radius: 50%; background: var(--vend); box-shadow: 0 0 0 3px color-mix(in srgb, var(--vend) 22%, transparent); }
}
