/* ---------- design tokens ---------- */
:root {
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: Fraunces, "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --bg: #f8dfc3; /* peach counter-top */
  --card: #fdf5f0;
  --card-2: #f5e3d5;
  --ink: #2b1a10; /* all line work and text */
  --ink-2: #6a5242;
  --belt: #e8917a; /* soft tomato tint for the conveyor and mobile bar */
  --tomato: #cc4a2b; /* accents only */
  --btn: #2b1a10;
  --on-btn: #fdebd7;
  --focus: #1d4ed8;
  --halo: rgba(255, 255, 255, 0.9);
  --line: rgba(43, 26, 16, 0.18);
  --tub-edge: #e0be9f;
  --hop-back: #f1dac4;
  --shine: #ffffff;
  --board: #d9a363;
  --board-dark: #b97f45;
  --board-lid: #e6b77b;
  --board-tape: #f4e0b5;
  --warn: #b3341b;
  --err: #a3261a;
  --shadow: rgba(60, 25, 10, 0.2);

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
:root[data-theme="dark"] {
  --bg: #2a1a12;
  --card: #3a271d;
  --card-2: #47301f;
  --ink: #fbebdd;
  --ink-2: #d2b8a4;
  --belt: #8a4a38;
  --tomato: #e0694a;
  --btn: #fbebdd;
  --on-btn: #2b1a10;
  --focus: #9dbbff;
  --halo: rgba(0, 0, 0, 0.7);
  --line: rgba(251, 235, 221, 0.22);
  --tub-edge: #6b4a33;
  --hop-back: #3a271d;
  --shine: #fbebdd;
  --board: #8f5f31;
  --board-dark: #6e4622;
  --board-lid: #a06e3b;
  --board-tape: #c9a878;
  --warn: #ff9b82;
  --err: #ffa698;
  --shadow: rgba(0, 0, 0, 0.5);
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--sans);
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--bg);
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
fieldset {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--halo);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.fatal {
  padding: 40px 24px;
  font-weight: 500;
}
.busy {
  pointer-events: none;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 24px;
  min-height: 48px;
  font-weight: 600;
  background: var(--card-2);
  color: var(--ink);
}
.btn.primary {
  background: var(--btn);
  color: var(--on-btn);
}
.btn.big {
  width: 100%;
  min-height: 56px;
  font-size: 18px;
}
.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}
.link {
  background: none;
  border: 0;
  padding: 6px 2px;
  min-height: 36px;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

/* ---------- inked line work: one weight, locked in screen pixels ---------- */
.ik {
  fill: none;
  stroke: var(--ink);
  stroke-width: var(--sw, 2px);
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.cookie {
  display: block;
  overflow: visible;
  --sw: 1.8px;
}
.hc .cookie {
  --sw: 1.5px;
  filter: none;
}
.cell .cookie,
.strip .cookie {
  --sw: 2px;
}
.sbk .cookie {
  --sw: 2.6px;
}
.strip.big .cookie {
  --sw: 2.4px;
  width: 56px;
  height: 56px;
}
.bk {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2px;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.osvg {
  display: block;
  overflow: visible;
}
.ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1px;
  stroke-dasharray: 2 2;
  opacity: 0.45;
  vector-effect: non-scaling-stroke;
}
.ik.dot {
  stroke-width: 1px;
}
.bk.dashed {
  stroke-dasharray: 5 4;
  opacity: 0.55;
}
.b-fill {
  fill: var(--board);
}
.b-fill.lid {
  fill: var(--board-lid);
}
.b-tapef {
  fill: var(--board-tape);
}
.boxsvg {
  display: block;
  width: calc(var(--w) * 1px * var(--bs, 1));
  height: auto;
  overflow: visible;
}

/* ---------- dispenser controls ---------- */
.stage {
  min-height: 100svh;
}
.vat-head h2 {
  font: 600 clamp(26px, 2.3vw, 34px)/1.1 var(--serif);
  letter-spacing: -0.01em;
}
.vat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
}
.vat-meta:empty {
  display: none;
}
.status.low {
  color: var(--warn);
}
.status.out {
  color: var(--ink-2);
}
.allergens {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
}
.ctl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.step {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--card);
  font: 600 26px/1 var(--serif);
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  box-shadow: 3px 3px 0 var(--belt);
}
.step:not([disabled]):active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--belt);
}
.step[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}
.qty {
  min-width: 28px;
  text-align: center;
  font: 600 22px var(--sans);
  font-variant-numeric: tabular-nums;
}

/* hopper (desktop): inked outline, fill drawn slightly off it */
.hopper {
  position: relative;
  width: 176px;
  height: 200px;
  margin: 0 auto;
}
.hopper > svg,
.hopper > .heap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.h-back,
.h-front,
.t-back,
.t-front {
  filter: url(#wob);
}
.h-back path,
.t-back rect {
  fill: var(--hop-back);
  transform: translate(5px, 5px);
}
.heap {
  clip-path: var(--clip);
}
.tank .heap {
  clip-path: inset(6px 6px 6px 6px round 10px);
}
.hc {
  position: absolute;
  display: block;
}
.h-front,
.t-front {
  pointer-events: none;
}
.h-edge {
  fill: none;
  stroke: var(--ink);
  stroke-width: 3px;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.h-shine {
  fill: none;
  stroke: var(--shine);
  stroke-opacity: 0.9;
  stroke-width: 4px;
  stroke-linecap: round;
}
.h-shine.s2 {
  stroke-width: 3px;
  stroke-opacity: 0.6;
}
.tick {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2px;
  stroke-linecap: round;
}
.gate rect {
  fill: var(--ink);
  transform-box: fill-box;
}
.hopper.kick .g1 {
  animation: gate-l 0.26s ease;
}
.hopper.kick .g2 {
  animation: gate-r 0.26s ease;
}
@keyframes gate-l {
  40% {
    transform: translateX(-16px);
  }
}
@keyframes gate-r {
  40% {
    transform: translateX(16px);
  }
}
.spout {
  position: absolute;
  left: 88px;
  top: 198px;
  width: 1px;
  height: 1px;
}
.heap.bump {
  animation: bump 0.3s ease;
}
@keyframes bump {
  35% {
    transform: translateY(3px);
  }
}

/* ---------- box picker, dots ---------- */
.dots {
  display: inline-grid;
  grid-template-columns: repeat(var(--dc, 6), 6px);
  gap: 2px;
  width: max-content;
}
.dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: block;
  border: 1px solid var(--ink);
}
.dots i.e {
  border-style: dashed;
  opacity: 0.45;
}
.picker-title {
  font-weight: 600;
  font-size: 16px;
}
.boxes {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.boxbtn {
  background: none;
  border: 2.5px solid transparent;
  border-radius: 14px;
  padding: 6px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 44px;
  color: inherit;
}
.boxbtn.on {
  border-color: var(--ink);
  background: var(--card);
}
.bn {
  font-weight: 600;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}
.bp {
  font-size: 13px;
  line-height: 1.25;
  color: var(--ink-2);
  white-space: nowrap;
}
.another {
  background: none;
  border: 0;
  padding: 8px 0;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-align: left;
}

/* tray: an open cardboard box seen from above */
.tbox {
  background: var(--board);
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 5px 5px 0 var(--board-dark);
}
.well {
  --cs: 44px;
  background: var(--board-dark);
  border: 2.5px solid var(--ink);
  border-radius: 8px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--cs));
  gap: 6px;
}
.tbox[style*="--cs"] .well {
  --cs: inherit;
}
.cell {
  width: var(--cs);
  height: var(--cs);
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--ink) 40%, transparent);
  display: grid;
  place-items: center;
}
.cell.filled {
  border-color: transparent;
}
.cell .cookie {
  width: 100%;
  height: 100%;
}
.cell.arriving .cookie {
  opacity: 0;
}
.cell.landed .cookie {
  animation: land 0.32s ease-out;
}
@keyframes land {
  0% {
    transform: scale(1.18, 0.84);
  }
  60% {
    transform: scale(0.94, 1.06);
  }
  100% {
    transform: none;
  }
}
.tlabel {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 4px 0;
  font-size: 13px;
  color: var(--ink);
}

.msg {
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-left-width: 8px;
  border-left-color: var(--warn);
  font-weight: 500;
  line-height: 1.4;
}
.msg:empty {
  display: none;
}

/* receipt */
.r-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.r-head h2 {
  font: 600 19px var(--serif);
}
.r-count {
  font-size: 14px;
  color: var(--ink-2);
}
.r-list {
  margin-top: 6px;
}
.rrow {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.rrow.on .rsel {
  font-weight: 700;
}
.rrow.on::before {
  content: "";
  width: 4px;
  align-self: stretch;
  margin: 4px 8px 4px 0;
  border-radius: 2px;
  background: var(--tomato);
}
.rsel {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 4px 0;
  min-height: 34px;
  text-align: left;
}
.rn {
  font-weight: 600;
  white-space: nowrap;
}
.rsel .dots {
  flex: none;
}
.rp {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}
.rdel {
  background: none;
  border: 0;
  width: 34px;
  height: 34px;
  font-size: 22px;
  line-height: 1;
  color: var(--ink-2);
}
.r-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.r-total strong {
  font: 600 22px var(--serif);
}
.r-note {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.3;
}
.empty {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 15px;
}
.link-cta {
  background: none;
  border: 0;
  padding: 8px 0 2px;
  font: 600 18px/1.2 var(--serif);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-decoration-color: var(--ink-2);
  text-align: left;
}
.link-cta.ready {
  text-decoration-color: var(--tomato);
}
.link-cta.ready span {
  display: inline-block;
  animation: nudge 1.9s ease-in-out infinite;
}
@keyframes nudge {
  0%,
  70%,
  100% {
    transform: none;
  }
  80% {
    transform: translateX(5px);
  }
}

/* ---------- mobile (default): floating cookies, pinned bars ---------- */
.s-order.narrow {
  display: flex;
  flex-direction: column;
}
.narrow .picker {
  --bs: 0.5;
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--bg);
  border-bottom: 2.5px solid var(--ink);
  display: flex;
  align-items: flex-end;
  padding: 8px max(60px, calc((100% - 620px) / 2)) 8px
    max(12px, calc((100% - 620px) / 2));
}
.narrow .picker-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.narrow .boxes {
  gap: 6px;
}
.narrow .vats {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 12px 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.narrow .vat {
  padding: 14px 0 16px;
  border-bottom: 1.5px dashed var(--line);
}
.narrow .vat:last-child {
  border-bottom: 0;
}
.narrow .vat-head h2 {
  font-size: 25px;
}
.narrow .step {
  width: 46px;
  height: 46px;
}
.vat-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.vat-top .ctl {
  gap: 8px;
}
.vat-stage {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: 4px;
}
.tank {
  position: relative;
  width: 132px;
  height: 112px;
  flex: none;
}
.tank > svg,
.tank > .heap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hatch {
  fill: var(--board-dark);
  stroke: var(--ink);
  stroke-width: 2.5px;
}
.ledge {
  position: absolute;
  left: 120px;
  top: 103px;
  width: 30px;
  height: 8px;
  border-radius: 0 4px 4px 0;
  background: var(--board-dark);
  border: 2.5px solid var(--ink);
}
.sky {
  position: relative;
  flex: 1;
  height: 124px;
  min-width: 0;
}
.skyc {
  position: absolute;
  width: 34px;
  height: 34px;
}
.skyc.pending,
.skyc.hidden {
  opacity: 0;
}
.skyc.rise {
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.3, 1) both;
  animation-delay: calc(var(--i) * 60ms);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(70px) scale(0.5);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.skyb {
  display: block;
  width: 100%;
  height: 100%;
  animation: bob 3.4s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(var(--r));
  }
  50% {
    transform: translateY(-6px) rotate(calc(var(--r) + 5deg));
  }
}

.bar {
  position: sticky;
  bottom: 0;
  z-index: 15;
  margin-top: auto;
  background: var(--belt);
  color: var(--ink);
  border-top: 3px solid var(--ink);
  border-radius: 20px 20px 0 0;
  padding: 12px max(14px, calc((100% - 620px) / 2))
    calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bar .msg {
  margin: 0;
}
.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chips {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 2px 4px;
}
.chip {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: 2.5px solid transparent;
  border-radius: 12px;
  padding: 3px 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  min-width: 44px;
  min-height: 44px;
  justify-content: flex-end;
}
.chip .boxsvg {
  width: calc(var(--w) * 1px);
}
.chip.on {
  border-color: var(--ink);
  background: var(--card);
}
.chip.add {
  border: 2.5px dashed var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  justify-content: center;
  white-space: nowrap;
}
.sum {
  flex: none;
  background: none;
  border: 0;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 4px 2px;
  min-height: 44px;
  line-height: 1.25;
}
.sum .s1 {
  font-size: 14px;
}
.sum .s1 strong {
  font-size: 18px;
}
.sum .s2 {
  font: 600 19px var(--serif);
  font-variant-numeric: tabular-nums;
}
.sheet {
  background: var(--card);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 8px 14px 12px;
  max-height: 42svh;
  overflow: auto;
}
.sheet[hidden] {
  display: none;
}
.sheet .rsel {
  flex-wrap: wrap;
  row-gap: 0;
}
.sheet .rd {
  order: 3;
  flex-basis: 100%;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 400;
}
.sheet .rrow,
.sheet li {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.place.pill {
  width: 100%;
  min-height: 52px;
  font-size: 18px;
}
.place.pill.ready {
  box-shadow: 0 0 0 3px var(--card);
}

/* ---------- flying cookies and the mobile box scene ---------- */
.scene {
  position: fixed;
  inset: 0;
  z-index: 80;
  touch-action: none;
}
.scene-dim {
  position: absolute;
  inset: 0;
  background: rgba(43, 26, 16, 0.6);
}
.scene-box {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}
.scene-box .tbox {
  padding: 10px;
  border-radius: 16px;
}
.scene-box .well {
  padding: 8px;
}
.sbc.landed .cookie {
  animation: land 0.32s ease-out;
}
.sb-lid {
  position: absolute;
  inset: 0;
  transform: scaleY(0);
  transform-origin: top;
  background: var(--board-lid);
  border: 3px solid var(--ink);
  border-radius: 16px;
  display: grid;
  place-items: center;
}
.sb-lid i {
  position: absolute;
  left: 43%;
  width: 14%;
  top: 0;
  bottom: 0;
  background: var(--board-tape);
  border-left: 2.5px solid var(--ink);
  border-right: 2.5px solid var(--ink);
}
.sb-lid b {
  position: relative;
  font: 600 22px var(--serif);
  background: var(--board-lid);
  padding: 2px 12px;
  border-radius: 8px;
  color: var(--ink);
}

/* ---------- details screen ---------- */
.s-details {
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.d-summary {
  background: var(--belt);
  color: var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  background: var(--card);
  border: 2.5px solid var(--ink);
  padding: 10px 12px;
  border-radius: 14px;
  width: fit-content;
  max-width: 100%;
}
.strip .cookie {
  width: 36px;
  height: 36px;
}
.more {
  font-weight: 700;
  padding: 0 8px;
  color: var(--ink);
}
.dlines,
.totals {
  background: var(--card);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
}
.dlines {
  padding: 6px 16px;
}
.dlines li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.dlines li:last-child {
  border-bottom: 0;
}
.rline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rdesc {
  color: var(--ink-2);
  font-size: 15px;
}
.totals {
  padding: 12px 16px;
}
.totals > div {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  font-variant-numeric: tabular-nums;
}
.totals dd {
  margin: 0;
}
.totals .grand {
  font-weight: 700;
  font-size: 19px;
  border-top: 2px solid var(--ink);
  margin-top: 6px;
  padding-top: 10px;
}
.d-form {
  width: 100%;
  max-width: 560px;
  padding: 40px 24px 64px;
}
.back {
  margin-bottom: 20px;
}
.d-form h1 {
  font: 600 clamp(32px, 6vw, 44px)/1.08 var(--serif);
  letter-spacing: -0.01em;
  margin-bottom: 36px;
  outline: none;
}
.fld {
  margin-bottom: 26px;
}
.fld > label {
  display: block;
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 8px;
}
.fld input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
}
.fld input::placeholder {
  color: var(--ink-2);
  opacity: 0.8;
}
.fld input[aria-invalid="true"] {
  border-color: var(--err);
  border-width: 2.5px;
}
.err {
  color: var(--err);
  font-size: 14px;
  font-weight: 500;
  margin-top: 6px;
}
.fnote {
  display: block;
  color: var(--ink-2);
  font-size: 14px;
  margin-top: 8px;
}
.combo {
  position: relative;
}
.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 10;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--belt);
  overflow: hidden;
}
.suggest[hidden] {
  display: none;
}
.suggest li {
  padding: 13px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.suggest li:last-child {
  border-bottom: 0;
}
.suggest li:hover,
.suggest li.hi {
  background: var(--card-2);
}
.price-out {
  display: block;
  font: 600 30px var(--serif);
}
.stripe-ph {
  border: 2px dashed var(--ink-2);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 8px 0 28px;
  color: var(--ink-2);
  font-size: 15px;
}
.stripe-ph strong {
  color: var(--ink);
}

/* confirmation */
.s-done {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 540px;
}
.done h1 {
  font: 600 clamp(34px, 7vw, 56px)/1.05 var(--serif);
  letter-spacing: -0.01em;
  outline: none;
}
.done .small {
  color: var(--ink-2);
  font-size: 15px;
}

/* ---------- prototype controls (temporary) ---------- */
.gear {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top, 0px));
  right: 10px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--card);
  font-size: 22px;
  line-height: 1;
}
.ppanel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  width: min(390px, 100vw);
  overflow: auto;
  background: var(--card);
  color: var(--ink);
  border-left: 3px solid var(--ink);
  padding: calc(64px + env(safe-area-inset-top, 0px)) 18px 32px;
}
.ppanel[hidden] {
  display: none;
}
.ppanel.open {
  left: 0;
  width: min(520px, 100vw);
  border-left: 0;
  margin: 0 auto;
}
.back-link {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 16px;
  z-index: 60;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
}
.ppanel h2 {
  font: 600 22px var(--serif);
}
.ppanel h3 {
  font: 600 15px var(--sans);
  margin: 18px 0 4px;
}
.pnote {
  color: var(--ink-2);
  font-size: 14px;
  margin: 4px 0 8px;
}
.pf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
  font-size: 15px;
}
.pf input,
.pa input {
  width: 110px;
  min-height: 38px;
  padding: 4px 8px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
}
.pal {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px 10px;
  margin: 8px 0;
}
.pal legend {
  font-size: 14px;
  font-weight: 600;
  padding: 0 6px;
}
.pa {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.pa input {
  flex: 1;
  width: auto;
}
.pa button {
  width: 38px;
  border: 1.5px solid var(--ink);
  background: none;
  border-radius: 8px;
  font-size: 18px;
}
.padd {
  background: none;
  border: 0;
  text-decoration: underline;
  font-size: 14px;
  padding: 4px 0;
}
.pbtns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.pbtns button {
  border: 2px solid var(--ink);
  background: var(--bg);
  border-radius: 999px;
  padding: 7px 14px;
  min-height: 38px;
  font-size: 14px;
  font-weight: 500;
}

@media (min-width: 640px) {
  .d-summary {
    padding: 40px 48px;
  }
  .d-form {
    padding: 56px 48px 80px;
    margin: 0 auto;
  }
}
@media (min-width: 960px) {
  .s-details {
    display: grid;
    grid-template-columns: minmax(340px, 36%) minmax(0, 1fr);
    align-items: start;
  }
  .d-summary {
    position: sticky;
    top: 0;
    height: 100svh;
    justify-content: flex-end;
    padding: 56px 44px 0;
    border-bottom: 0;
    border-right: 3px solid var(--ink);
  }
  .d-form {
    padding: 80px 56px 120px;
  }
}

/* ---------- desktop: dispensers above a conveyor belt that carries the boxes ---------- */
@media (min-width: 1180px) {
  .s-order.wide {
    --padx: clamp(32px, 4.5vw, 72px);
    display: grid;
    min-height: 100svh;
    padding: 0 var(--padx);
    column-gap: 32px;
    grid-template-columns: clamp(230px, 19vw, 280px) minmax(0, 1fr) clamp(
        268px,
        21vw,
        320px
      );
    grid-template-rows: minmax(32px, 1fr) auto clamp(210px, 26vh, 270px) 112px;
  }
  .lede {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    padding-top: 8px;
  }
  .lede h2 {
    font: 600 clamp(36px, 3.5vw, 52px)/1.04 var(--serif);
    letter-spacing: -0.015em;
  }
  .lede p {
    margin-top: 18px;
    color: var(--ink-2);
    max-width: 22ch;
  }
  .vats {
    grid-column: 2;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
  .vat {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    justify-items: center;
    text-align: center;
    gap: 0;
  }
  .vat-meta {
    justify-content: center;
  }
  .vat .ctl {
    width: 176px;
  }

  .receipt {
    grid-column: 3;
    grid-row: 2;
    align-self: start;
    margin-top: 6px;
    background: var(--card);
    color: var(--ink);
    border: 3px solid var(--ink);
    border-radius: 14px;
    box-shadow: 5px 5px 0 var(--belt);
    padding: 14px 16px 12px;
  }
  .r-list {
    max-height: 210px;
    overflow: auto;
  }
  .msg {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    justify-self: center;
    max-width: 640px;
    text-align: center;
  }
  .picker {
    grid-column: 1;
    grid-row: 3;
    align-self: end;
    position: relative;
    z-index: 2;
    margin-bottom: -4px;
    display: flex;
    flex-direction: column;
  }
  .picker-title {
    order: 1;
    margin-bottom: 8px;
  }
  .another {
    order: 2;
    align-self: flex-start;
    margin-bottom: 8px;
  }
  .boxes {
    order: 3;
  }
  .picker .boxbtn {
    --bs: 0.72;
  }
  .track {
    grid-column: 2;
    grid-row: 3;
    align-self: end;
    height: 172px;
    position: relative;
    z-index: 2;
  }
  .tray {
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: transform 0.3s cubic-bezier(0.3, 0.7, 0.2, 1);
    will-change: transform;
  }
  .tray.swap {
    animation: swap 0.4s cubic-bezier(0.3, 0.8, 0.3, 1);
  }
  @keyframes swap {
    from {
      opacity: 0;
      margin-left: 36px;
    }
    to {
      opacity: 1;
      margin-left: 0;
    }
  }

  .stack {
    grid-column: 3;
    grid-row: 3;
    align-self: end;
    justify-self: center;
    z-index: 2;
    margin-bottom: -4px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
  }
  .stack-more {
    order: 99;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--ink-2);
  }
  .sbox {
    position: relative;
    width: calc(var(--w) * 1px);
    background: none;
    border: 0;
    padding: 0;
    margin-top: -3px;
    transform: translateX(var(--dx)) rotate(var(--rot));
    transition: transform 0.2s ease;
  }
  .sbox:hover {
    transform: translateX(var(--dx)) translateY(-4px) rotate(var(--rot));
  }
  .sbox .boxsvg {
    width: 100%;
  }
  .sb-n {
    position: absolute;
    left: 0;
    right: 0;
    top: 49%;
    font: 600 20px/1 var(--serif);
    color: var(--ink);
  }
  .sbox .dots {
    position: absolute;
    left: 50%;
    bottom: 9%;
    transform: translateX(-50%);
    grid-template-columns: repeat(var(--dc, 6), 6px);
    gap: 2px;
  }
  .sbox.fresh {
    animation: settle 0.45s cubic-bezier(0.3, 0.8, 0.3, 1);
  }
  @keyframes settle {
    from {
      transform: translateX(var(--dx)) translateY(-70px) rotate(var(--rot));
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  /* the belt: tinted fill off its ink outline, tread ticks, rollers, legs */
  .belt {
    grid-column: 1 / -1;
    grid-row: 4;
    margin: 0 calc(var(--padx) * -1);
    position: relative;
    z-index: 1;
    filter: url(#wob);
  }
  .belt::before {
    content: "";
    position: absolute;
    left: -30px;
    right: -30px;
    top: 0;
    height: 52px;
    border-radius: 26px;
    background: var(--belt);
    transform: translate(5px, 5px);
  }
  .belt::after {
    content: "";
    position: absolute;
    left: -30px;
    right: -30px;
    top: 0;
    height: 52px;
    border-radius: 26px;
    border: 3px solid var(--ink);
  }
  .tread {
    position: absolute;
    z-index: 1;
    left: 50px;
    right: 50px;
    top: 9px;
    height: 34px;
    background: var(--ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cpath d='M8 28l10-22' stroke='black' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E")
      repeat-x 0 0 / 34px 34px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cpath d='M8 28l10-22' stroke='black' stroke-width='2.2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E")
      repeat-x 0 0 / 34px 34px;
  }
  .roller {
    position: absolute;
    z-index: 2;
    top: 7px;
    width: 38px;
    height: 38px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--card);
  }
  .roller::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 2.2px solid var(--ink);
    border-radius: 50%;
  }
  .roller.l {
    left: 8px;
  }
  .roller.r {
    right: 8px;
  }
  .leg {
    position: absolute;
    top: 52px;
    width: 0;
    height: 52px;
    border-left: 3px solid var(--ink);
  }
  .leg::after {
    content: "";
    position: absolute;
    left: -34px;
    bottom: 0;
    width: 68px;
    border-bottom: 3px solid var(--ink);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skyb,
  .link-cta.ready span {
    animation: none;
  }
  .tray {
    transition: none;
  }
}

/* ---------- round 4: light by default, calmer page, belt travel ---------- */
.theme-btn {
  position: fixed;
  top: calc(8px + env(safe-area-inset-top, 0px));
  right: 10px;
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--card);
  font-size: 20px;
  line-height: 1;
}
.narrow .picker {
  padding-right: max(112px, calc((100% - 620px) / 2));
}
.allergens:empty {
  display: none;
}
.allergen-note {
  color: var(--ink-2);
  font-size: 16px;
}
.narrow .allergen-note {
  padding: 10px 0 0;
}
.bp {
  visibility: hidden;
}
.boxbtn.on .bp,
.boxbtn:hover .bp,
.boxbtn:focus-visible .bp,
.narrow .bp {
  visibility: visible;
}
.tbox {
  position: relative;
}
.tbox > .sb-lid {
  border-radius: 9px;
}
.traveler {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  will-change: transform;
}
.traveler .boxsvg {
  width: 100%;
}
.traveler .sb-n {
  position: absolute;
  left: 0;
  right: 0;
  top: 49%;
  font: 600 20px/1 var(--serif);
  text-align: center;
  color: var(--ink);
}
.s-order.leaving {
  animation: fadeout 0.26s ease forwards;
}
@keyframes fadeout {
  to {
    opacity: 0;
  }
}
.stage.enter {
  animation: fadein 0.4s ease-out;
}
@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes tread-r {
  to {
    -webkit-mask-position: 44px 0;
    mask-position: 44px 0;
  }
}
@keyframes tread-l {
  to {
    -webkit-mask-position: -44px 0;
    mask-position: -44px 0;
  }
}

@media (min-width: 1180px) {
  .lede h2 {
    font-size: clamp(30px, 2.7vw, 40px);
  }
  .vats {
    gap: 44px;
  }
  .vat-head h2 {
    font-size: clamp(23px, 1.9vw, 28px);
    white-space: nowrap;
  }
  .vat .ctl {
    width: 156px;
  }
  .hopper {
    transform: scale(0.88);
    transform-origin: top center;
    margin-bottom: -24px;
  }
  .allergen-note {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 4px;
  }
  .receipt {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin-top: 14px;
  }
  .receipt .r-head {
    border-bottom: 1.5px solid var(--ink);
    padding-bottom: 6px;
  }
  .tray {
    transition-duration: 0.46s;
  }
  .belt {
    filter: none;
  }
  .belt::before,
  .belt::after {
    content: none;
  }
  .belt-art {
    position: absolute;
    inset: 0;
    filter: url(#wob);
  }
  .belt-art::before {
    content: "";
    position: absolute;
    left: -30px;
    right: -30px;
    top: 0;
    height: 52px;
    border-radius: 26px;
    background: var(--belt);
    transform: translate(5px, 5px);
  }
  .belt-art::after {
    content: "";
    position: absolute;
    left: -30px;
    right: -30px;
    top: 0;
    height: 52px;
    border-radius: 26px;
    border: 3px solid var(--ink);
  }
  .tread {
    opacity: 0.5;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='34'%3E%3Cpath d='M10 28l10-22' stroke='black' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3C/svg%3E")
      repeat-x 0 0 / 44px 34px;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='34'%3E%3Cpath d='M10 28l10-22' stroke='black' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3C/svg%3E")
      repeat-x 0 0 / 44px 34px;
  }
  .belt.roll-r .tread {
    animation: tread-r 0.5s linear infinite;
  }
  .belt.roll-l .tread {
    animation: tread-l 0.5s linear infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  .belt .tread {
    animation: none !important;
  }
  .s-order.leaving,
  .stage.enter {
    animation: none;
  }
}

/* ---------- round 5: redrawn boxes, vertical sizes, per-box strips, chevrons ---------- */
:root {
  --box-front: var(--board);
  --box-top: var(--board-lid);
  --box-side: var(--board-dark);
  --box-floor: #a56e2e;
  --box-tape: var(--board-tape);
  --box-shadow: #c99a5b;
}
:root[data-theme="dark"] {
  --box-floor: #5a391b;
  --box-shadow: #4a2f16;
}
.bx-front {
  fill: var(--box-front);
}
.bx-side {
  fill: var(--box-side);
}
.bx-top {
  fill: var(--box-top);
}
.bx-floor {
  fill: var(--box-floor);
}
.bx-tape {
  fill: var(--box-tape);
}
.bx-sh {
  fill: var(--box-shadow);
}
.bk.thin {
  stroke-width: 1.6px;
}
.sbox .boxsvg,
.traveler .boxsvg {
  width: 100%;
}

/* tray: the open box with cookies on its floor */
.tray3 {
  position: relative;
}
.tray-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.well3 {
  position: absolute;
  box-sizing: border-box;
  display: grid;
  align-content: start;
}
.sb-lid {
  background: var(--box-top);
  border: 2.4px solid var(--ink);
  border-radius: 2px;
}
.sb-lid i {
  background: var(--box-tape);
}
.sb-lid b {
  background: var(--box-top);
}

/* sizes: icon over text on mobile, a vertical list on desktop */
.boxbtn .bi {
  display: block;
}
.boxbtn .bt {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bp {
  visibility: visible;
}

/* "New box?" is plain text, not a button */
.newbox {
  background: none;
  border: 0;
  padding: 6px 0;
  color: var(--ink-2);
  font: 500 15px var(--sans);
  text-align: left;
  text-underline-offset: 3px;
}
.newbox:hover,
.newbox:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}
.newbox-row {
  border-bottom: 0;
}
.chips .newbox {
  flex: none;
  align-self: center;
  padding: 8px 6px;
  color: var(--ink);
  font-weight: 600;
}

/* hand-inked chevron */
.chev {
  display: inline-block;
  width: 0.5em;
  height: 0.82em;
  margin-left: 0.4em;
  vertical-align: -0.06em;
  overflow: visible;
}
.chev path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.chev.l {
  margin: 0 0.4em 0 0;
  transform: scaleX(-1);
}
.link-cta.ready .chev {
  animation: nudge 1.9s ease-in-out infinite;
}
.btn .chev {
  width: 0.5em;
  height: 0.85em;
}

/* checkout and confirmation: one strip per box */
.dboxes {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dbox {
  background: var(--card);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 12px 14px 10px;
  text-align: left;
}
.dbox header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dbox .bi {
  flex: none;
  display: block;
}
.dbox h3 {
  font: 600 17px var(--sans);
  flex: 1;
}
.dstrip {
  --cs: 34px;
  display: grid;
  grid-template-columns: repeat(var(--c), var(--cs));
  gap: 6px;
  margin-top: 10px;
}
.dstrip .cookie {
  width: var(--cs);
  height: var(--cs);
  --sw: 1.8px;
}
.dbox.big .dstrip {
  --cs: 46px;
  justify-content: start;
}
.dbox .rdesc {
  margin-top: 8px;
}
.d-summary {
  overflow: auto;
}
.s-done .dboxes {
  width: min(100%, 440px);
}
.s-done .dbox {
  box-shadow: 5px 5px 0 var(--belt);
}

/* the left rail: headline, a faint arrow, then the sizes */
.hint-arrow {
  opacity: 0.5;
  transition: opacity 0.7s ease;
}
.hint-arrow.gone {
  opacity: 0;
}
.hint-arrow path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

@media (min-width: 1180px) {
  .s-order.wide {
    grid-template-rows: minmax(32px, 1fr) auto clamp(284px, 35vh, 330px) 90px;
  }
  .vats {
    row-gap: 0;
  }
  .vat-head {
    align-self: start;
    padding-bottom: 16px;
  }
  .vat-head:has(.vat-meta:not(:empty), .allergens:not(:empty)) {
    padding-bottom: 26px;
  }
  .hopper {
    transform: scale(0.84);
    margin-bottom: -32px;
  }
  .vat .ctl {
    width: 148px;
    margin-bottom: 14px;
  }
  .rail-l {
    grid-column: 1;
    grid-row: 2 / 4;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
  }
  .rail-l .lede {
    padding-top: 8px;
  }
  .hint-arrow {
    flex: 1;
    min-height: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 10px 0 8px 14px;
  }
  .hint-stem {
    flex: 1;
    width: 44px;
    min-height: 12px;
    display: block;
  }
  .hint-head {
    width: 26px;
    height: 20px;
    margin: -2px 0 0 13px;
    display: block;
    flex: none;
  }
  .rail-l .picker {
    grid-column: auto;
    grid-row: auto;
    align-self: stretch;
    margin: 0 0 -4px;
    display: block;
  }
  .boxes {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .boxbtn {
    flex-direction: row;
    align-items: flex-end;
    gap: 14px;
    width: 100%;
    padding: 6px 10px;
    border-radius: 14px;
  }
  .boxbtn .bi {
    width: 118px;
    flex: none;
    display: flex;
    align-items: flex-end;
  }
  .boxbtn .bt {
    align-items: flex-start;
    text-align: left;
    padding-bottom: 6px;
  }
  .bn {
    font-size: 14px;
  }
  .allergen-note {
    margin: 20px 0 28px;
  }
  .receipt {
    background: var(--card);
    border-radius: 16px;
    padding: 16px 18px 14px;
    margin-top: 14px;
  }
  .receipt .r-head {
    border-bottom: 1.5px solid var(--line);
  }
  .msg {
    padding: 8px 14px;
  }
  .tray {
    bottom: -6px;
  }
  .track {
    height: 230px;
  }
  .stack {
    display: block;
    position: relative;
    width: 170px;
    z-index: 2;
    margin-bottom: -4px;
  }
  .sbox {
    position: absolute;
    left: 50%;
    bottom: calc(var(--i) * var(--step));
    margin: 0;
    z-index: calc(var(--i) + 1);
    transform: translateX(calc(-50% + var(--dx))) rotate(var(--rot));
  }
  .sbox.slot {
    pointer-events: none;
  }
  .sbox:hover {
    transform: translateX(calc(-50% + var(--dx))) translateY(-4px)
      rotate(var(--rot));
  }
  .sbox.fresh {
    animation: settle2 0.45s cubic-bezier(0.3, 0.8, 0.3, 1);
  }
  @keyframes settle2 {
    from {
      transform: translateX(calc(-50% + var(--dx))) translateY(-70px)
        rotate(var(--rot));
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  .leg {
    height: 34px;
  }
}
h1[tabindex]:focus-visible {
  outline: none;
  box-shadow: none;
}

/* ---------- round 6: price tag, sold-out, space beside the receipt, scrolling summary ---------- */
.tag-slot {
  display: contents;
}
.tag25 {
  position: absolute;
  z-index: 3;
  width: 94px;
  height: 52px;
  pointer-events: none;
  transform: rotate(-8deg);
  transform-origin: 15% 50%;
}
.tag25 svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.tg-fill {
  fill: var(--belt);
}
.tg-ink {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.tg-t {
  position: absolute;
  left: 33%;
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  line-height: 1.05;
  color: var(--ink);
}
.tg-t b {
  display: block;
  font: 700 14px var(--sans);
}
.tg-t i {
  display: block;
  font: 500 11px var(--sans);
  font-style: normal;
}
.tank .tag25 {
  left: 82px;
  top: -16px;
}

.vat.soldout .vat-head h2 {
  color: var(--ink-2);
  opacity: 0.55;
}
.vat.soldout .dispenser,
.vat.soldout .tank {
  filter: grayscale(1);
  opacity: 0.5;
}

.tray {
  transition:
    transform 0.46s cubic-bezier(0.3, 0.7, 0.2, 1),
    opacity 0.25s ease;
}

@media (min-width: 960px) {
  .d-summary {
    justify-content: flex-start;
  }
  .d-summary .dboxes {
    margin-top: auto;
  }
  .d-summary .d-foot {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 0 -44px;
    padding: 24px 44px 56px;
    background: var(--belt);
  }
  .d-summary .d-foot::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -24px;
    height: 24px;
    background: linear-gradient(to bottom, transparent, var(--belt));
    pointer-events: none;
  }
}

@media (min-width: 1180px) {
  .s-order.wide {
    column-gap: 30px;
    grid-template-columns: clamp(230px, 19vw, 280px) minmax(0, 1fr) 28px clamp(
        268px,
        21vw,
        320px
      );
  }
  .vats {
    column-gap: 36px;
    row-gap: 0;
  }
  .receipt,
  .stack {
    grid-column: 4;
  }
  .dispenser {
    position: relative;
    width: 176px;
    height: 200px;
    margin: 0 auto -32px;
  }
  .dispenser .hopper {
    margin: 0;
  }
  .dispenser .tag25 {
    left: 138px;
    top: -4px;
    width: 84px;
    height: 47px;
  }
}
@media (min-width: 1180px) and (max-width: 1279px) {
  .s-order.wide {
    --padx: 36px;
    column-gap: 22px;
    grid-template-columns: 212px minmax(0, 1fr) 12px 236px;
  }
  .vats {
    column-gap: 20px;
    row-gap: 0;
  }
}

/* people who ask for reduced motion get none of the decorative CSS animation either */
@media (prefers-reduced-motion: reduce) {
  .sbox.fresh,
  .tray.swap,
  .skyc.rise,
  .hopper.kick .g1,
  .hopper.kick .g2,
  .heap.bump,
  .link-cta.ready .chev {
    animation: none;
  }
}
