/* Order page: "Fill your box" (design approved 2026-11-06, docs/mockups/fill-your-box.html).
   Builds on home.css for the header, footer and fonts; everything else is scoped under .fill
   so the shared names (.btn, .label, .order) can't collide.
   One column on a phone (case, then box, then the order); case beside box from 900px. */

body.order-page {
  background: linear-gradient(180deg, #FCEFC4 0%, #F9E3A0 100%);
  --ink-soft: rgba(74, 36, 22, 0.95);   /* keeps hints and labels ≥4.5:1 on the darker end */
}
.order-page .site-footer { background: transparent; padding-bottom: 120px; }  /* room for the bar */

.fill {
  --butter: #F7D774; --caramel: #C8954F; --brown: #4A2416; --brown-2: #5B3426;
  --paper: #FFF8E7; --brass: #B8925A; --brass-hi: #E2C48A; --soft: rgba(74, 36, 22, .88);
  --ease: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.34, 1.36, .5, 1);
  --kraft: #C49A60; --kraft-2: #AE8248; --ribbon: #5E6B4E;
  --script: 'Mrs Saint Delafield', cursive;
  color: var(--brown);
}
.fill [hidden] { display: none !important; }
.fill button { font: inherit; color: inherit; cursor: pointer; }
.fill button:focus-visible, .fill input:focus-visible, .fill textarea:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }
.fill main { max-width: 1100px; margin: 0 auto; padding-block: 64px 72px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.fill .label { display: block; font-family: var(--label); font-weight: 500; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--brown); }
.fill h1 { margin: 16px -.18em 0 0; font-weight: 300; font-size: clamp(34px, 8vw, 60px); letter-spacing: .18em; text-transform: uppercase; line-height: 1.08; text-wrap: balance; }
.fill .lede { margin: 18px auto 0; font-style: italic; font-weight: 300; font-size: clamp(19px, 2.4vw, 23px); line-height: 1.45; color: var(--soft); max-width: 36ch; }
.fill .head { text-align: center; }
.fill .lede .short { display: none; }

/* box sizes, with a brown highlight that slides to the one chosen */
.fill .sizes { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 44px auto 0; max-width: 580px; }
.fill .sizes .pill { position: absolute; top: 0; left: 0; height: 100%; background: var(--brown); box-shadow: 0 8px 16px -8px rgba(74,36,22,.6); transition: transform .5s var(--ease), width .5s var(--ease); }
.fill .sizes button { position: relative; border: 1px solid var(--brown); background: transparent; padding: 12px 4px 10px; display: grid; gap: 2px; transition: color .35s var(--ease), background .25s ease; }
.fill .sizes button b { font-family: var(--label); font-weight: 500; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; }
.fill .sizes button span { font-size: 18px; }
.fill .sizes button[aria-pressed="true"] { color: var(--paper); }

.fill .stage { display: grid; gap: 40px; margin-top: 48px; }
@media (min-width: 900px) { .fill .stage { grid-template-columns: 1.15fr 1fr; align-items: start; gap: 64px; } }

/* the glass case */
.fill .case { position: relative; padding: 18px 14px 0; border-radius: 120px 120px 10px 10px / 70px 70px 10px 10px; background: linear-gradient(180deg, rgba(255,255,255,.34), rgba(255,255,255,.10) 45%, rgba(255,255,255,.18)); border: 3px solid var(--brass); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), inset 0 30px 60px -30px rgba(255,255,255,.7), 0 24px 30px -14px rgba(74,36,22,.35); overflow: hidden; }
.fill .case::before { content: ""; position: absolute; top: 10px; left: 12%; width: 14%; height: 70%; background: linear-gradient(100deg, rgba(255,255,255,.55), rgba(255,255,255,0)); transform: skewX(-12deg); pointer-events: none; }
.fill .case::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.28) 50%, transparent 60%); transform: translateX(-100%); animation: sheen 9s var(--ease) 1.5s infinite; pointer-events: none; }
@keyframes sheen { 0% { transform: translateX(-100%); } 22%, 100% { transform: translateX(100%); } }
.fill .case .tip { text-align: center; font-family: var(--label); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--soft); margin: 6px 0 4px; }
.fill .shelf { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 6px; padding: 18px 4px 14px; position: relative; }
.fill .shelf::after { content: ""; position: absolute; left: -14px; right: -14px; bottom: 0; height: 9px; background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(184,146,90,.55)); border-top: 1px solid rgba(255,255,255,.8); }
.fill .paused { grid-column: 1 / -1; margin: 18px 12px 26px; text-align: center; font-style: italic; color: var(--soft); }
.fill .flav { display: grid; justify-items: center; gap: 8px; }
.fill .plate { width: min(100%, 132px); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: radial-gradient(circle at 50% 45%, #FFFDF6 0 54%, #F1E6CC 55% 60%, #FBF5E6 61% 100%); box-shadow: 0 10px 12px -8px rgba(74,36,22,.45); display: grid; place-items: center; transition: transform .45s var(--spring), box-shadow .45s var(--ease); -webkit-tap-highlight-color: transparent;
  touch-action: none; user-select: none; -webkit-user-drag: none; cursor: grab; }   /* a finger on a cookie picks it up instead of scrolling */
@media (hover: hover) { .fill .plate:hover { transform: translateY(-4px); box-shadow: 0 16px 16px -10px rgba(74,36,22,.45); } }
.fill .plate:active { transform: scale(.95); transition-duration: .12s; }
.fill .plate img { width: 80%; filter: drop-shadow(0 6px 6px rgba(74,36,22,.35)); -webkit-user-drag: none; }
.fill .tag { background: var(--paper); border: 1px solid rgba(74,36,22,.25); padding: 5px 8px 4px; border-radius: 2px; box-shadow: 0 2px 4px rgba(74,36,22,.12); transform: rotate(-2deg); max-width: 100%; text-align: center; transition: box-shadow .25s ease; -webkit-tap-highlight-color: transparent; }
.fill .flav:nth-child(2) .tag { transform: rotate(1.5deg); }
.fill .tag[aria-expanded="true"] { box-shadow: 0 0 0 2px var(--brass-hi), 0 2px 4px rgba(74,36,22,.12); }
.fill .tag b { display: block; font-family: var(--label); font-weight: 500; font-size: 9px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.fill .tag i { display: block; font-size: 13px; line-height: 1.2; color: var(--soft); }
.fill .counter-top { height: 26px; margin: 0 -14px; background: linear-gradient(180deg, var(--brown-2), var(--brown)); border-top: 2px solid var(--brass); }
.fill .allergen-card { margin: 12px 4px 0; padding: 12px 16px; background: var(--paper); border: 1px solid rgba(74,36,22,.25); border-radius: 4px; box-shadow: 0 6px 14px -10px rgba(74,36,22,.5); animation: rise .35s var(--ease) both; }
.fill .allergen-card b { font-family: var(--label); font-weight: 500; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; }
.fill .allergen-card p { margin: 4px 0 0; font-size: 17px; line-height: 1.4; white-space: pre-line; }

/* the box: always sized to the cookies it holds, so a single gets a small box of its own.
   Its size eases between sizes; the lid stands open behind it and closes, with a ribbon,
   when the box goes into the order. */
.fill .boxstage { display: grid; justify-items: center; }
.fill .boxwrap { position: relative; width: var(--bw); padding-top: var(--lidspace); perspective: var(--lidview, 1100px); transition: width .7s var(--spring), padding-top .7s var(--spring); }
.fill .box { position: relative; height: var(--bh); border-radius: 7px; padding: 12px;
  background: repeating-linear-gradient(92deg, rgba(255,255,255,.035) 0 2px, rgba(0,0,0,.025) 2px 5px), linear-gradient(180deg, var(--kraft), var(--kraft-2));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.08), 0 30px 34px -16px rgba(74,36,22,.5), 0 6px 10px -6px rgba(74,36,22,.3);
  transition: height .7s var(--spring), box-shadow .3s var(--ease), transform .3s var(--ease); }
.fill .boxwrap.over .box { transform: scale(1.03); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 0 0 3px var(--brass-hi), 0 30px 34px -16px rgba(74,36,22,.5); }
.fill .liner { position: relative; height: 100%; border-radius: 4px; padding: 12px; background: #F6EBCB url(/img/box-lining.png) 10px 8px / 190px auto; box-shadow: inset 0 0 22px rgba(184,138,79,.42), inset 0 0 0 1px rgba(255,255,255,.4); overflow: hidden; }
.fill .liner::before { content: ""; position: absolute; inset: 0; background: rgba(246,235,203,.9); pointer-events: none; }
.fill .slots { position: relative; display: grid; gap: 10px; justify-content: center; align-content: center; height: 100%; }
.fill .slot { width: var(--s); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: radial-gradient(circle, rgba(184,138,79,.16) 0 58%, transparent 60%); box-shadow: inset 0 3px 6px -2px rgba(120,80,40,.3); }
.fill .slot.appear { animation: appear .5s var(--spring) both; }
@keyframes appear { from { opacity: 0; transform: scale(.6); } }
.fill .slot button { border: 0; background: none; padding: 0; width: 100%; height: 100%; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.fill .slot img { width: 100%; filter: drop-shadow(0 6px 6px rgba(74,36,22,.4)); }
.fill .slot .x { position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--brown); color: var(--paper); font: 500 12px/20px var(--label); text-align: center; opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--spring); }
.fill .slot:hover .x, .fill .slot:focus-within .x { opacity: 1; transform: none; }
.fill .lid { position: absolute; left: 0; right: 0; top: var(--lidspace); height: var(--bh); z-index: 3; transform-origin: 50% 0; transform: rotateX(var(--lidopen, 128deg)); transform-style: preserve-3d; transition: transform .8s var(--ease), height .7s var(--spring), top .7s var(--spring); pointer-events: none; }
.fill .lid.shut { transform: rotateX(0deg); }
.fill .lid > div { position: absolute; inset: 0; border-radius: 7px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.fill .lid .out { display: grid; place-items: center; overflow: visible; background: repeating-linear-gradient(92deg, rgba(255,255,255,.035) 0 2px, rgba(0,0,0,.025) 2px 5px), linear-gradient(180deg, #CCA46A, var(--kraft)); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), 0 14px 22px -12px rgba(74,36,22,.5); }
.fill .lid .out .mark { position: relative; z-index: 2; font-family: var(--script); font-size: clamp(22px, calc(var(--bw) * .15), 54px); line-height: 1; white-space: nowrap; color: #EFD9A6; text-shadow: 0 1px 0 rgba(255,255,255,.35), 0 -1px 0 rgba(90,55,25,.45); transition: opacity .25s; }
.fill .lid .out::before, .fill .lid .out::after { content: ""; position: absolute; z-index: 1; transition: transform .5s var(--ease); }
.fill .lid .out::before { top: 0; bottom: 0; left: 50%; width: 20px; margin-left: -10px; transform: scaleY(0); background: linear-gradient(90deg, #4E5A40, var(--ribbon) 30%, #7C8A68 50%, var(--ribbon) 70%, #4E5A40); }
.fill .lid .out::after { left: 0; right: 0; top: 50%; height: 20px; margin-top: -10px; transform: scaleX(0); background: linear-gradient(180deg, #4E5A40, var(--ribbon) 30%, #7C8A68 50%, var(--ribbon) 70%, #4E5A40); }
.fill .lid.tied .out::before { transform: none; } .fill .lid.tied .out::after { transform: none; transition-delay: .12s; }
.fill .lid.tied .mark { opacity: 0; }
.fill .lid .bow { --w: min(190px, calc(var(--bw) * .8), calc(var(--bh) * 1.1)); position: absolute; z-index: 3; left: 50%; top: 50%; width: var(--w); max-width: none; height: auto; margin: calc(var(--w) * -.25) 0 0 calc(var(--w) * -.5); overflow: visible; visibility: hidden; filter: drop-shadow(0 3px 3px rgba(40,30,15,.35)); }
.fill .lid.tied .bow { visibility: visible; }
.fill .bow .wing, .fill .bow .tail, .fill .bow .knot { transform-box: view-box; transform-origin: 80px 40px; }
.fill .lid.tied .bow .knot { animation: knot .45s cubic-bezier(.34,1.5,.5,1) .2s both; }
.fill .lid.tied .bow .wing.l { animation: wingL 1.3s cubic-bezier(.37,0,.2,1) .3s both; }
.fill .lid.tied .bow .wing.r { animation: wingR 1.3s cubic-bezier(.37,0,.2,1) .3s both; }
.fill .lid.tied .bow .tail.l { animation: tailL 1.1s cubic-bezier(.22,1,.36,1) .6s both; }
.fill .lid.tied .bow .tail.r { animation: tailR 1.1s cubic-bezier(.22,1,.36,1) .66s both; }
@keyframes knot { from { transform: scale(0); } }
@keyframes wingL { 0% { transform: scale(0) rotate(28deg); } 30% { transform: scale(.92, 1) rotate(-5deg); } 46% { transform: scale(.5, 1) rotate(2deg); } 62% { transform: scale(1.04, 1) rotate(-2deg); } 78% { transform: scale(.82, 1); } 100% { transform: none; } }
@keyframes wingR { 0% { transform: scale(0) rotate(-28deg); } 30% { transform: scale(.92, 1) rotate(5deg); } 46% { transform: scale(.5, 1) rotate(-2deg); } 62% { transform: scale(1.04, 1) rotate(2deg); } 78% { transform: scale(.82, 1); } 100% { transform: none; } }
@keyframes tailL { 0% { transform: scale(.6, 0) rotate(8deg); } 55% { transform: scale(1, 1.03) rotate(-3deg); } 80% { transform: rotate(1.5deg); } 100% { transform: none; } }
@keyframes tailR { 0% { transform: scale(.6, 0) rotate(-8deg); } 55% { transform: scale(1, 1.03) rotate(3deg); } 80% { transform: rotate(-1.5deg); } 100% { transform: none; } }
.fill .lid .in { transform: rotateX(180deg); background: #F3E5C0 url(/img/box-lining.png) 0 0 / 190px auto; box-shadow: inset 0 0 26px rgba(184,138,79,.45); }
.fill .lid .in::before { content: ""; position: absolute; inset: 0; border-radius: 7px; background: linear-gradient(0deg, rgba(243,229,192,.94), rgba(243,229,192,.8)); }
.fill .register { position: relative; z-index: 4; margin-top: 16px; display: inline-flex; gap: 14px; align-items: baseline; padding: 9px 18px 8px; background: var(--brown); color: var(--paper); border: 2px solid var(--brass); border-radius: 3px; box-shadow: 0 8px 14px -8px rgba(74,36,22,.6); }
.fill .register .total { font-family: var(--label); font-size: 22px; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.fill .register .count { font-family: var(--label); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; opacity: .8; }
.fill .register.bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.06); } }
.fill .boxnote { margin: 14px 0 0; min-height: 1.5em; text-align: center; font-style: italic; font-size: 17px; color: var(--soft); }

/* buttons */
.fill .actions { display: grid; gap: 10px; margin-top: 22px; }
.fill .btn { display: block; border: 1px solid var(--brown); background: transparent; padding: 17px 20px; font-family: var(--label); font-weight: 500; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; text-align: center; transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .25s ease, opacity .25s ease, border-color .25s ease; }
@media (hover: hover) {
  .fill .btn:not(:disabled):hover { background: var(--brown); color: var(--paper); box-shadow: 0 12px 20px -12px rgba(74,36,22,.6); transform: translateY(-1px); }
  .fill .btn.solid:not(:disabled):hover { background: var(--brown-2); }
  .fill .sizes button:not([aria-pressed="true"]):hover { background: rgba(74,36,22,.06); }
  .fill .how button:not(:disabled):not([aria-pressed="true"]):hover, .fill .flipper > button:not(:disabled):hover { background: rgba(74,36,22,.07); }
  .fill .basket .rm:hover, .fill .card .close:hover { opacity: .7; }
}
.fill .btn:not(:disabled):active { transform: translateY(1px); transition-duration: .1s; }
.fill .btn.solid { background: var(--brown); border-color: var(--brown); color: var(--paper); }
.fill .btn:disabled { opacity: .45; cursor: not-allowed; }

/* the order list, and its lines in the checkout card */
.fill .basket { margin-top: 40px; border-top: 1px solid rgba(74,36,22,.35); padding-top: 16px; }
.fill .basket ul, .fill .card .lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 12px; }
.fill .line { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; }
.fill .line.new { animation: slidein .6s var(--ease) both; }
@keyframes slidein { from { opacity: 0; transform: translateY(-12px); } }
.fill .line small { display: block; font-style: italic; font-size: 15px; color: var(--soft); }
.fill .line .gone { color: #8E1A2C; font-style: normal; }
.fill .line .rm { border: 0; background: none; transition: opacity .25s ease; font-family: var(--label); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; text-decoration: underline; padding: 8px 0 8px 10px; }
.fill .salt { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 10px; margin-top: 4px; padding: 4px 0; border: 0; background: none; font-style: italic; font-size: 16px; color: var(--soft); }
.fill .salt::before { content: ""; width: 34px; height: 20px; flex: none; border-radius: 10px; border: 1px solid var(--brown); background: radial-gradient(circle at 10px 50%, var(--brown) 0 6px, transparent 7px); transition: background .25s ease; }
.fill .salt[aria-pressed="true"]::before { background: radial-gradient(circle at 24px 50%, var(--paper) 0 6px, transparent 7px), var(--brown); }
.fill .empty { font-style: italic; color: var(--soft); margin: 8px 0 0; }

/* the bar at the foot */
.fill .paybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: var(--brown); color: var(--paper); padding-bottom: env(safe-area-inset-bottom, 0px); transform: translateY(110%); visibility: hidden; transition: transform .35s ease, visibility 0s linear .35s; }
.fill .paybar.on { transform: none; visibility: visible; transition: transform .35s ease; }
.fill .paybar .in { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 14px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.fill .paybar .sum { font-size: 28px; font-weight: 300; }
.fill .paybar .sub { display: block; font-family: var(--label); font-size: 9px; letter-spacing: .22em; text-transform: uppercase; opacity: .75; }
.fill .paybar .btn { border-color: var(--brass-hi); color: var(--butter); }
@media (max-width: 600px) { .fill .added { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }
.fill .paybar .btn.go { background: var(--butter); border-color: var(--butter); color: var(--brown); }
.fill .paybar .btn:disabled { opacity: .55; }
.fill .paybar .btn.swap { transition: none; }

/* the bag at the left of the bar: tap it to see what is in the order */
.fill .cart { display: flex; align-items: center; gap: 12px; padding: 4px 8px 4px 0; border: 0; background: none; color: var(--paper); text-align: left; -webkit-tap-highlight-color: transparent; }
.fill .cart:disabled { cursor: default; }
.fill .cart .bag { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(226,196,138,.6); border-radius: 50%; color: var(--butter); flex: none; }
.fill .cart .count { position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--butter); color: var(--brown); font: 500 11px/20px var(--label); text-align: center; }
.fill .cart .count.pop { animation: pop .5s var(--spring); }
@keyframes pop { 40% { transform: scale(1.4); } }
.fill .cart:not(:disabled) .sub { text-decoration: underline; text-underline-offset: 3px; }
/* the note that slides up after a box goes in */
.fill .added { position: fixed; left: 50%; z-index: 16; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); width: min(calc(100% - 32px), 420px); display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px 16px; background: var(--paper); border: 1px solid rgba(74,36,22,.2); border-radius: 12px; box-shadow: 0 18px 30px -14px rgba(43,24,16,.55); transform: translate(-50%, 0); animation: note .45s var(--ease) both; }
@keyframes note { from { opacity: 0; transform: translate(-50%, 16px); } }
.fill .added b { display: block; font-family: var(--label); font-weight: 500; font-size: 10px; letter-spacing: .24em; text-transform: uppercase; }
.fill .added span { display: block; font-size: 17px; line-height: 1.3; }
/* a little picture of each cookie in a box */
.fill .minis { display: flex; flex-wrap: wrap; gap: 3px; max-width: 132px; }
.fill .minis img { width: 20px; height: 20px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(74,36,22,.3)); }
.fill .added .minis { max-width: 96px; }
.fill .line .minis { margin-top: 6px; max-width: none; }
/* the bag's own card */
.fill .cart-card .body { position: relative; padding-top: 22px; }
.fill .cart-card h2 { margin-top: 4px; }
.fill .card .close.plain { top: 14px; right: 14px; border: 1px solid rgba(74,36,22,.25); background: transparent; }
.fill .cart-card .more { width: 100%; margin-top: 10px; }

/* the checkout card */
/* closed, it is hidden from the keyboard and screen readers too; visibility waits for the fade */
.fill .sheet { position: fixed; inset: 0; z-index: 30; display: grid; align-items: end; justify-items: center; background: rgba(43,22,15,.55); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility 0s linear .3s; }
.fill .sheet.on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s; }
.fill .card { width: min(100%, 560px); max-height: 92vh; overflow: auto; overscroll-behavior: contain; background: var(--paper); border-radius: 18px 18px 0 0; padding: 0 0 calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateY(40px); transition: transform .45s var(--ease); }
.fill .sheet.on .card { transform: none; }
@media (min-width: 700px) { .fill .sheet { align-items: center; } .fill .card { border-radius: 18px; } }
.fill .card .pic { position: relative; }
.fill .card .pic img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.fill .card .close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(253,247,232,.92); font: 400 24px/40px var(--serif); transition: opacity .25s ease; }
.fill .card .body { padding: 18px 20px 0; }
.fill .card h2 { margin: 0; font-weight: 400; font-style: italic; font-size: 32px; letter-spacing: 0; text-transform: none; line-height: 1.1; }
.fill .card .lines { border-bottom: 1px solid rgba(74,36,22,.2); padding-bottom: 12px; }
.fill .card .tot { display: flex; justify-content: space-between; margin-top: 10px; font-size: 22px; }
.fill .q { margin: 24px 0 10px; font-family: var(--label); font-weight: 500; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; }
.fill .how { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fill .how button { border: 1px solid var(--brown); background: transparent; padding: 14px 12px; transition: background .25s ease, color .25s ease; font-family: var(--label); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; }
.fill .how button[aria-pressed="true"] { background: var(--brown); color: var(--paper); }
.fill .how button:disabled { opacity: .5; border-style: dashed; cursor: not-allowed; }
.fill .hint { margin: 10px 0 0; font-size: 17px; font-style: italic; color: var(--soft); }
.fill .hint:empty { display: none; }
.fill .error { margin: 12px 0 0; color: #8E1A2C; font-size: 17px; }
.fill .error:empty { display: none; }
.fill label { display: block; margin: 22px 0 4px; font-family: var(--label); font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--soft); }
.fill .opt { text-transform: none; letter-spacing: .06em; }
.fill input, .fill textarea { width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid rgba(74,36,22,.3); border-radius: 0; background: transparent; color: var(--brown); font: 400 21px var(--serif); }
.fill input:focus, .fill textarea:focus { outline: none; border-bottom-color: var(--brown); }
.fill input::placeholder, .fill textarea::placeholder { color: rgba(74, 36, 22, .7); font-style: italic; }
.fill textarea { resize: vertical; }
.fill .row { display: flex; gap: 14px; align-items: flex-end; }
.fill .row input { flex: 1; min-width: 0; }
.fill .row .btn { padding: 13px 22px; }
.fill #quote s { opacity: .55; }
/* the flip clock */
.fill .clock { display: grid; gap: 8px; }
.fill .flipper { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; }
.fill .flipper > button { height: 44px; border-radius: 50%; border: 1px solid var(--brown); background: transparent; font-size: 20px; transition: background .25s ease, transform .25s ease, opacity .25s ease; }
.fill .flipper > button:active { transform: scale(.92); }
.fill .flipper > button:disabled { opacity: .3; cursor: default; }
.fill .digits { position: relative; min-height: 64px; padding: 8px; perspective: 400px; background: var(--brown); border: 2px solid var(--brass); border-radius: 6px; color: var(--butter); display: grid; place-items: center; align-content: center; overflow: hidden; }
.fill .digits span { font-family: var(--label); font-size: 22px; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.fill .digits.small span { font-size: 15px; letter-spacing: .26em; text-transform: uppercase; }
.fill .digits small { font-family: var(--label); font-size: 9px; letter-spacing: .24em; text-transform: uppercase; opacity: .8; }
.fill .digits small:empty { display: none; }
.fill .digits.flip > * { animation: flip .32s ease; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); opacity: .2; } 51% { transform: rotateX(-90deg); } 100% { transform: rotateX(0); } }
.fill .allergen-line { margin: 18px 0 0; font-size: 16px; line-height: 1.4; color: var(--soft); white-space: pre-line; }
.fill .allergen-line + .allergen-line { margin-top: 6px; }
.fill .allergen-line:empty { display: none; }
.fill .card .pay { width: 100%; margin-top: 18px; }
.fill .terms { margin: 10px 0 0; text-align: center; font-style: italic; font-size: 15px; color: var(--soft); }

/* a cookie flying into the box, or held under the finger */
.flyer { position: fixed; z-index: 40; pointer-events: none; max-width: none; filter: drop-shadow(0 10px 10px rgba(74,36,22,.4)); }
.held { position: fixed; z-index: 41; pointer-events: none; margin: 0; max-width: none; filter: drop-shadow(0 22px 18px rgba(74,36,22,.45)); transition: transform .18s cubic-bezier(.22, 1, .36, 1); will-change: left, top; }
.fill .flav.lifted .plate img { opacity: .35; }

/* the page settles in on arrival, one part after another; everything is visible once it has run */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.fill .head > *, .fill .sizes, .fill .stage > section { animation: rise .8s var(--ease) both; }
.fill .head > :nth-child(1) { animation-delay: .05s; } .fill .head > :nth-child(2) { animation-delay: .12s; } .fill .head > :nth-child(3) { animation-delay: .2s; }
.fill .sizes { animation-delay: .3s; } .fill .stage > section:nth-child(1) { animation-delay: .4s; } .fill .stage > section:nth-child(2) { animation-delay: .52s; }
.fill .flav { animation: rise .7s var(--ease) both; } .fill .flav:nth-child(1) { animation-delay: .55s; } .fill .flav:nth-child(2) { animation-delay: .63s; } .fill .flav:nth-child(3) { animation-delay: .71s; }
.fill .sheet.on .card .body > * { animation: rise .55s var(--ease) both; }
.fill .sheet.on .card .body > :nth-child(2) { animation-delay: .06s; } .fill .sheet.on .card .body > :nth-child(3) { animation-delay: .1s; } .fill .sheet.on .card .body > :nth-child(n+4) { animation-delay: .14s; }

/* phones: everything for filling a box fits on one screen, and the bar's one button says what's next */
@media (max-width: 600px) {
  .fill main { padding-block: 22px 40px; }
  .fill .head .label { display: none; }
  .fill h1 { margin-top: 0; font-size: 26px; }
  .fill .lede { margin-top: 6px; font-size: 17px; }
  .fill .lede .long { display: none; } .fill .lede .short { display: inline; }
  .fill .sizes { margin-top: 18px; gap: 6px; }
  .fill .sizes button { padding: 11px 2px 9px; }
  .fill .sizes button b { font-size: 9px; letter-spacing: .16em; }
  .fill .sizes button span { font-size: 16px; }
  .fill .stage { gap: 12px; margin-top: 16px; }
  .fill .case { padding: 8px 10px 0; border-radius: 90px 90px 10px 10px / 46px 46px 10px 10px; }
  .fill .case .tip { margin: 4px 0 0; font-size: 9px; }
  .fill .shelf { gap: 4px; padding: 8px 0 10px; }
  .fill .plate { width: min(100%, 94px); }
  .fill .tag { padding: 4px 5px 3px; } .fill .tag b { font-size: 8px; letter-spacing: .14em; } .fill .tag i { font-size: 12px; }
  .fill .counter-top { height: 16px; }
  /* the lid stands nearly upright and the view is from further away, so the open lid stays a slim
     band above the box instead of leaning out over the case */
  .fill .boxwrap { perspective: 2600px; }
  .fill .lid { transform: rotateX(100deg); }
  .fill .box { padding: 8px; }
  .fill .liner { padding: 8px; }
  .fill .register { margin-top: 10px; padding: 7px 14px 6px; } .fill .register .total { font-size: 19px; }
  .fill .boxnote { margin-top: 8px; font-size: 16px; }
  .fill .actions { margin-top: 10px; } .fill #addBox { display: none; }   /* the bar at the foot does this */
  .fill #mix { padding: 13px; font-size: 11px; }
  .fill .basket { margin-top: 26px; }
  .fill .paybar .in { padding-block: 10px; }
  .fill .paybar .sum { font-size: 22px; line-height: 1.1; }
  .fill .paybar .btn { flex: 1; min-width: 0; max-width: 64%; padding: 16px 10px; letter-spacing: .2em; }
  .fill .cart { gap: 10px; flex: none; }
  .fill .paybar .sub { white-space: nowrap; }
}
@media (max-width: 600px) and (max-height: 760px) {
  .fill main { padding-top: 14px; }
  .fill .lede { display: none; }
  .fill .sizes { margin-top: 12px; }
  .fill .plate { width: min(100%, 80px); }
  .fill .case .tip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fill *, .fill *::before, .fill *::after { animation: none !important; }
  .fill .paybar, .fill .sheet, .fill .card, .fill .boxwrap, .fill .box, .fill .lid, .fill .sizes .pill { transition: none; }
}

/* ---------- Brand guidelines (since 2026-11-08): DM Serif Display heading in sentence case with
   its second half in italics, the intro in Poppins, every other italic in DM Serif Display ---------- */
.fill h1 { margin: 16px 0 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; text-transform: none; }
.fill h1 em { font-style: italic; }
.fill .lede { font-family: var(--label); font-style: normal; font-weight: 300; }
.fill .boxnote, .fill .hint, .fill .terms, .fill .empty, .fill .paused, .fill .line small, .fill i, .fill em,
.fill input::placeholder, .fill textarea::placeholder { font-family: var(--serif); }
.fill input, .fill textarea { font: 400 17px var(--label); }
@media (max-width: 600px) { .fill h1 { margin-top: 0; font-size: 34px; } .fill .lede { font-size: 15px; } }

/* every phone and laptop (the owner, 2026-11-08): the case's plates and the spacing follow the screen's
   height too, so the sizes, the case and the box fit one screen (the box itself is sized in order.js) */
@media (max-width: 600px) {
  .fill .plate { width: min(100%, 94px, 11svh); }
  .fill .sizes button { padding-block: min(11px, 1.2svh) min(9px, 1svh); }
  .fill .stage { gap: min(12px, 1.4svh); }
}
@media (min-width: 601px) {
  .fill main { padding-top: min(64px, 6svh); }
  .fill .sizes { margin-top: min(44px, 4svh); }
  .fill .stage { margin-top: min(48px, 4svh); }
  .fill .plate { width: min(100%, 132px, 17svh); }
  .fill h1 { margin-top: min(16px, 1.4svh); font-size: min(60px, 8vw, 7.5svh); }
  .fill .lede { margin-top: min(18px, 1.6svh); max-width: 54ch; font-size: min(21px, 2.8svh); }
}

/* the calendar and time buttons (since 2026-11-08; they replace the flip clock) */
.fill .cal { display: grid; gap: 10px; }
.fill .cal[hidden] { display: none; }
.fill .cal-month { margin: 0; font-family: var(--label); font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--soft); }
.fill .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.fill .cal-grid .wd { text-align: center; font-family: var(--label); font-size: 10px; font-weight: 500; letter-spacing: .12em; color: var(--soft); }
.fill .cal-grid button { position: relative; aspect-ratio: 1; min-height: 40px; padding: 0; border: 1px solid rgba(74,36,22,.55); border-radius: 10px; background: transparent; color: var(--brown);
  display: grid; place-items: center; align-content: center; gap: 0; transition: background .2s ease, color .2s ease, transform .2s ease; -webkit-tap-highlight-color: transparent; }
.fill .cal-grid button b { font-family: var(--label); font-size: 17px; font-weight: 400; line-height: 1; font-variant-numeric: tabular-nums; }
.fill .cal-grid button small { font-family: var(--label); font-size: 8px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; line-height: 1.3; }
.fill .cal-grid button:disabled { border-color: transparent; opacity: .32; cursor: default; }
.fill .cal-grid button.full b { text-decoration: line-through; }
.fill .cal-grid button[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: var(--butter); box-shadow: 0 6px 12px -6px rgba(74,36,22,.55); }
.fill .cal-grid button:not(:disabled):active, .fill .cal-times button:not(:disabled):active { transform: scale(.94); }
@media (hover: hover) { .fill .cal-grid button:not(:disabled):not([aria-pressed="true"]):hover, .fill .cal-times button:not(:disabled):not([aria-pressed="true"]):hover { background: rgba(74,36,22,.07); } }
.fill .cal-when { margin: 6px 0 0; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--brown); }
.fill .cal-times { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fill .cal-times button { padding: 12px 6px 10px; border: 1px solid rgba(74,36,22,.55); border-radius: 10px; background: transparent; color: var(--brown); display: grid; gap: 3px; justify-items: center;
  transition: background .2s ease, color .2s ease, transform .2s ease; -webkit-tap-highlight-color: transparent; }
.fill .cal-times button b { font-family: var(--label); font-size: 17px; font-weight: 400; letter-spacing: .04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fill .cal-times button small { font-family: var(--label); font-size: 9px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.fill .cal-times button:disabled { opacity: .35; cursor: default; }
.fill .cal-times button[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: var(--butter); box-shadow: 0 6px 12px -6px rgba(74,36,22,.55); }
@media (prefers-reduced-motion: reduce) { .fill .cal-grid button, .fill .cal-times button { transition: none; } }

/* Reassurance and shortcuts (2026-11-11): the next collection time under the sizes, "Order it again"
   for customers who asked to be remembered, the single-to-box-of-3 upgrade, and a review by Pay. */
.fill .nextslot { margin: 14px auto 0; text-align: center; font-family: var(--label); font-weight: 400; font-size: 13px; letter-spacing: .04em; color: var(--soft); font-variant-numeric: tabular-nums; }
.fill .nextslot::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ribbon); margin-right: 8px; vertical-align: 1px; }
.fill .usual { max-width: 580px; margin: 28px auto 0; padding: 14px 16px; border: 1px solid var(--brass); background: var(--paper); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.fill .usual p { margin: 0; flex: 1 1 240px; min-width: 0; font-family: var(--label); font-size: 14px; line-height: 1.45; }
.fill .usual .acts { display: flex; align-items: center; gap: 14px; }
.fill .usual .btn { padding: 11px 16px; font-size: 11px; letter-spacing: .22em; }
.fill .usual .plain { background: none; border: none; padding: 6px 2px; font-family: var(--label); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; color: var(--soft); }
.fill .upsell { margin: 14px 0 0; padding: 12px 14px; border: 1px dashed var(--brass); background: rgba(247, 215, 116, .22); display: grid; gap: 10px; }
.fill .upsell p { margin: 0; font-family: var(--label); font-size: 14px; line-height: 1.45; }
.fill .upsell .btn { justify-self: start; padding: 10px 14px; font-size: 11px; letter-spacing: .22em; }
.fill .paytrust { margin: 18px 0 0; padding: 4px 0 4px 14px; border-left: 2px solid var(--brass); }
.fill .paytrust .stars { display: block; color: var(--caramel); letter-spacing: .2em; font-size: 13px; }
.fill .paytrust blockquote { margin: 4px 0 0; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1.35; }
.fill .paytrust figcaption { margin-top: 6px; font-family: var(--label); font-size: 10px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--soft); }
.fill label.remember { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; font-family: var(--label); font-size: 14px; font-weight: 400; line-height: 1.4; letter-spacing: 0; text-transform: none; color: var(--soft); cursor: pointer; }
.fill label.remember input { margin: 1px 0 0; width: 18px; height: 18px; accent-color: var(--brown); flex: none; }
.fill .usual .later { display: none; }
/* the "Your order" label is a block that ran under the close button and took its taps (2026-11-11) */
.fill .card .close { z-index: 3; }
/* Swipe a bag line left to delete it (2026-11-11): the row slides over a red strip */
.fill .line.swipe { display: block; position: relative; overflow: hidden; border-radius: 4px; }
.fill .line.swipe > .row { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; padding: 6px 0; background: var(--paper); touch-action: pan-y; }
.fill .line.swipe > .row.snap { transition: transform .28s var(--ease); }
.fill .line.swipe .del { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; padding: 0 22px; border: 0; background: #8E1A2C; color: var(--paper); font-family: var(--label); font-weight: 500; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; transition: background .2s ease; }
.fill .line.swipe .del.armed { background: #B0243A; }
@media (prefers-reduced-motion: reduce) { .fill .line.swipe > .row.snap, .fill .line.swipe .del { transition: none; } }
/* "Empty box" (2026-11-11): a small tag on the box's top-right corner, so it takes no height on a phone */
.fill .emptybox { position: absolute; z-index: 8; right: -10px; top: calc(var(--lidspace) - 14px); display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 9px; background: var(--paper); border: 1px solid var(--brass); border-radius: 2px; font-family: var(--label); font-weight: 500; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--brown); box-shadow: 0 6px 12px -8px rgba(74, 36, 22, .55); transition: background .2s ease, color .2s ease; }
.fill .emptybox b { font-size: 15px; font-weight: 400; line-height: 1; letter-spacing: 0; margin-top: -1px; }
.fill .emptybox::before { content: ""; position: absolute; inset: -9px -6px; }
@media (hover: hover) { .fill .emptybox:hover { background: var(--brown); color: var(--paper); border-color: var(--brown); } }
/* Phones: nothing may sit above the box (the box of 12 has a few pixels to spare on a 390x664 screen),
   so the next time goes into the bar at the foot and "Welcome back" floats just above that bar. */
@media (max-width: 600px) {
  .fill .nextslot { display: none; }
  .fill .usual { position: fixed; z-index: 30; margin: 0; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(var(--above, 71px) + 10px); padding: 12px 40px 12px 14px; gap: 10px; box-shadow: 0 14px 30px -12px rgba(74, 36, 22, .45); }
  .fill .usual p { flex-basis: 100%; font-size: 13px; }
  .fill .usual .later { display: block; position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; background: none; border: none; font-size: 22px; line-height: 1; color: var(--soft); }
}
