/* preorder.css — lunch pre-ordering, loaded after order.css.
   Only the parts the four catering builders do not already have: the ordering
   window banner, the three-step spine, and the PayNow panel. Everything else
   (rows, chips, steppers, the sticky summary, the form fields) is order.css. */

/* ── The ordering window ──────────────────────────────────────────────────
   This bar is the most important thing on the page: a customer who does not
   realise ordering has closed for today will pay for a bowl nobody is cooking.
   It sits directly under the hero and states, in order: whether we are open,
   what the deadline is, and how long is left. */
.window-bar{background:var(--cream-dk);border-bottom:3px solid var(--rule)}
.window-inner{max-width:1200px;margin:0 auto;padding:16px 24px;display:flex;align-items:center;justify-content:center;gap:14px 22px;flex-wrap:wrap;text-align:center}
.window-dot{width:11px;height:11px;border-radius:50%;background:var(--wa);flex:0 0 auto;box-shadow:0 0 0 4px rgba(37,211,102,.2)}
.window-bar.closed .window-dot{background:var(--green-dp);box-shadow:0 0 0 4px rgba(35,66,47,.16)}
.window-state{font-family:var(--disp);font-weight:800;font-size:clamp(19px,2.6vw,25px);text-transform:uppercase;color:var(--ink);line-height:1.1}
.window-detail{font-weight:600;font-size:14.5px;color:var(--ink-2);max-width:60ch}
.window-detail b{color:var(--ink);font-weight:800}
.window-count{font-family:var(--disp);font-weight:800;font-size:clamp(19px,2.6vw,25px);color:var(--green);font-variant-numeric:tabular-nums;white-space:nowrap}
.window-bar.closed .window-count{color:var(--ink-2)}

/* ── Step spine ───────────────────────────────────────────────────────────
   Three numbered stops so it is always obvious how much is left. Purely
   informational — the page never blocks a step behind the previous one, since
   people legitimately jump back to change a bowl after seeing the total. */
.steps{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:0 0 34px}
.step-chip{display:inline-flex;align-items:center;gap:9px;border:2px solid var(--rule);border-radius:999px;padding:8px 17px;font-weight:800;font-size:13.5px;color:var(--ink-2);background:#FFF}
.step-chip .n{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:var(--cream-dk);color:var(--ink);font-family:var(--disp);font-size:15px;line-height:1}
.step-chip.on{border-color:var(--green);color:var(--ink)}
.step-chip.on .n{background:var(--green);color:#FFF}
.step-chip.done .n{background:var(--wa);color:#FFF}

/* ── One bowl ─────────────────────────────────────────────────────────────
   A bowl has six decisions attached to it, which is far more than a frozen
   jar. Boxing each bowl keeps those decisions visibly attached to their own
   line once there are three of them stacked up. */
.bowl-card{border:2px solid var(--rule);border-radius:18px;padding:6px 18px 14px;margin-bottom:14px;background:#FFF}
.bowl-card .cat-row{border-bottom:0;padding-bottom:6px}
.bowl-card .cat-row-name{font-size:16px}
.bowl-no{font-family:var(--disp);font-weight:800;font-size:15px;color:var(--green);letter-spacing:.04em;text-transform:uppercase}

/* ── Collection slot ──────────────────────────────────────────────────────*/
.slotgrid{display:flex;gap:9px;flex-wrap:wrap}
.slot-opt{position:relative;display:inline-flex;align-items:center;border:2px solid var(--rule);border-radius:999px;padding:10px 20px;font-family:var(--disp);font-weight:800;font-size:18px;color:var(--ink);cursor:pointer;margin:0;transition:border-color .16s ease-out,background .16s ease-out}
.slot-opt:has(input:checked){border-color:var(--green);background:var(--cream)}
.slot-opt input{position:absolute;opacity:0;width:0;height:0;margin:0}
.slot-opt.gone{opacity:.38;cursor:not-allowed;text-decoration:line-through}
.slot-empty{font-weight:600;font-size:14px;color:var(--ink-2);margin:0}

/* ── PayNow ───────────────────────────────────────────────────────────────
   The QR is the payload; the reference beneath it is what makes a payment
   matchable in the bank statement. Both are given equal visual weight on
   purpose — a paid order with no reference costs the outlet a phone call. */
.pay-panel{background:#FFF;border:3px solid var(--orange-dp);border-radius:24px;padding:32px;box-shadow:0 8px 28px rgba(0,0,0,.06);text-align:center}
.pay-amount{font-family:var(--disp);font-weight:800;font-size:clamp(42px,7vw,64px);line-height:1;color:var(--ink)}
.pay-amount .cur{font-size:.5em;vertical-align:.35em;margin-right:4px;color:var(--ink-2)}
.pay-sub{font-weight:600;font-size:15px;color:var(--ink-2);margin:8px 0 22px}
.qr-box{width:min(280px,72vw);margin:0 auto;padding:14px;background:#FFF;border:2px solid var(--rule);border-radius:18px}
.qr-box svg{display:block;width:100%;height:auto}
.qr-caption{font-weight:700;font-size:13.5px;color:var(--ink-2);margin:12px 0 0}
.ref-row{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:22px 0 0}
.ref-label{font-weight:800;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-2)}
.ref-code{font-family:var(--disp);font-weight:800;font-size:23px;letter-spacing:.04em;color:var(--ink);background:var(--cream);border:2px dashed var(--orange-dp);border-radius:12px;padding:7px 15px}
.ref-copy{background:none;border:0;color:var(--green);font-weight:800;font-size:13.5px;cursor:pointer;text-decoration:underline;text-underline-offset:3px;padding:6px 4px}
.ref-copy:hover{color:var(--green-dp)}
.pay-steps{list-style:none;margin:24px auto 0;padding:0;max-width:44ch;text-align:left;display:flex;flex-direction:column;gap:9px}
.pay-steps li{font-weight:600;font-size:14.5px;color:var(--ink-2);padding-left:30px;position:relative;line-height:1.45}
.pay-steps li b{color:var(--ink);font-weight:800}
.pay-steps li::before{counter-increment:paystep;content:counter(paystep);position:absolute;left:0;top:0;width:21px;height:21px;border-radius:50%;background:var(--cream-dk);color:var(--ink);font-family:var(--disp);font-size:14px;display:grid;place-items:center}
.pay-steps{counter-reset:paystep}
.pay-unconfigured{background:var(--cream);border:2px dashed var(--rule);border-radius:16px;padding:22px;font-weight:600;font-size:15px;color:var(--ink-2);line-height:1.55}
.pay-unconfigured b{color:var(--ink);font-weight:800}
.pay-actions{display:flex;gap:14px;flex-wrap:wrap;justify-content:center;margin-top:26px}
.btn-paid{display:inline-flex;align-items:center;gap:10px;background:var(--green);color:#FFF;border:0;font-family:var(--mark);font-weight:700;font-size:17px;padding:14px 28px;border-radius:999px;box-shadow:0 4px 0 rgba(0,0,0,.25);cursor:pointer;transition:background .16s ease-out,transform .16s ease-out}
.btn-paid:hover{background:var(--green-dp);transform:translateY(-2px)}
.btn-back{display:inline-flex;align-items:center;background:var(--cream-dk);color:var(--ink);border:0;font-family:var(--mark);font-weight:700;font-size:17px;padding:14px 28px;border-radius:999px;cursor:pointer;text-decoration:none;box-shadow:0 4px 0 rgba(0,0,0,.25)}
.btn-back:hover{background:var(--cream-lt);color:var(--ink);transform:translateY(-2px)}

/* The receipt shown after "I've paid" — deliberately printable/screenshottable,
   because that screenshot is what gets held up at the counter. */
.receipt{max-width:520px;margin:0 auto;text-align:left;border-top:3px solid rgba(0,0,0,.14);margin-top:26px;padding-top:20px}
.receipt dl{display:grid;grid-template-columns:auto 1fr;gap:8px 18px;margin:0}
.receipt dt{font-weight:800;font-size:12.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2)}
.receipt dd{margin:0;font-weight:700;font-size:15px;color:var(--ink)}

@media (max-width:599.5px){
  .pay-panel{padding:24px 18px}
  .window-inner{padding:14px 18px}
  .bowl-card{padding:4px 12px 12px}
}
