/* Values copied from Paper "BB APP" and app/DESIGN.md. */

/* Barlow, kept on our own site (SIL Open Font License, see /fonts/OFL-*.txt).
   latin-ext carries the rupee sign. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/barlow-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/barlow-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/barlow-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/barlow-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/barlow-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/barlow-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/barlow-condensed-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/barlow-condensed-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --maroon: #6B0A20;
  --maroon-edge: #6B0920;
  --maroon-50: #6B0A2080;
  --maroon-20: #6B0A2033;
  --maroon-15: #6B0A2026;
  --yellow: #FFB100;
  --page: #FFF8EC;
  --cream: #FFEECA;
  --tag: #FFE6B8;
  --brown: #5A463B;
  --muted: #7A6659;
  --off: #EDE4D6;
  --off-text: #6B5A4E;
  --past: #B8A89C;
  --green: #1E6B4F;
  --body: "Barlow", system-ui, sans-serif;
  --head: "Barlow Condensed", "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
h1, h2, h3, p, ol, figure { margin: 0; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { float: left; width: 100%; padding: 0; }
ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; margin: 0; }
button { background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
svg { display: inline-block; flex-shrink: 0; }
[hidden] { display: none !important; }

html {
  background: var(--page);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-bottom: 140px;
}
body {
  margin: 0;
  font: 500 16px/24px var(--body);
  color: var(--maroon);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
}
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
form { flex: 1; display: flex; flex-direction: column; }
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 2px; }
.head :focus-visible { outline-color: var(--cream); }

/* ---------- headers ---------- */
.head {
  /* The design leaves 62px for the phone's own status bar. A web page sits
     below it already, so only a little room is kept. */
  --top: var(--top-override, max(env(safe-area-inset-top, 0px), var(--top-min)));
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--maroon);
  border-radius: 0 0 24px 24px;
  color: var(--page);
}
.head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/img/grid.webp") no-repeat center calc(var(--top) - 62px) / max(100%, 390px) auto;
}
.head > * { position: relative; }
.head-home { --top-min: 32px; display: flex; flex-direction: column; align-items: center; padding: calc(var(--top) + 8px) 0 var(--top); }
.plate {
  width: 288px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  background: var(--maroon);
  border: 1.5px solid var(--cream);
  border-radius: 8px;
}
.logo { width: 224px; height: 66px; display: flex; }
.tagline { font-size: 17px; line-height: 24px; color: var(--cream); }
.head-slim { --top-min: 16px; padding: var(--top) 0 10px; }
.head-row { display: flex; align-items: center; gap: 12px; padding: 0 24px; min-height: 48px; }
.head-row.has-back { padding-left: 16px; }
.back { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.title { flex: 1; min-width: 0; font: 700 32px/34px var(--head); letter-spacing: -0.02em; }
.head-call { width: 48px; height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--cream); border-radius: 24px; }

/* ---------- home ---------- */
.home { flex: 1; display: flex; flex-direction: column; }
.home-notice { padding: 24px 24px 0; }
.notice { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--cream); border: 1px solid var(--maroon-20); border-radius: 16px; }
.notice p { flex: 1; font-size: 18px; line-height: 26px; font-weight: 600; text-wrap: pretty; }
.home-actions { display: flex; flex-direction: column; gap: 16px; padding: 32px 24px 0; }
.order-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-height: 120px;
  padding: 16px 24px;
  background: var(--yellow);
  border: 2px solid var(--maroon-edge);
  border-radius: 16px;
}
.order-tile.is-closed { background: var(--off); border-color: var(--maroon-20); color: var(--off-text); }
.tile-title { font: 700 36px/34px var(--head); letter-spacing: -0.02em; }
.tile-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-right: 32px; }
.tile-label { font-size: 14px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; }
.tile-closed { font-size: 16px; line-height: 24px; }
.tile-arrow { position: absolute; right: 22px; top: 48px; display: flex; }
.tag {
  display: inline-block;
  padding: 4px 8px;
  background: var(--tag);
  border: 1px solid var(--maroon-20);
  border-radius: 6px;
  font: 700 16px/20px var(--head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag-small { font-size: 12px; }
.call { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 72px; padding: 0 24px; border: 2px solid var(--maroon); border-radius: 16px; font-size: 24px; line-height: 30px; }
.call-soft { border-color: var(--maroon-50); }
.more { flex: 1; padding: 32px 24px 0; }
.more-label { font-size: 14px; line-height: 22px; color: var(--muted); }
.row { display: flex; align-items: center; gap: 16px; min-height: 72px; border-bottom: 1px solid var(--maroon-15); }
.row-tall { min-height: 104px; padding: 12px 0; }
.row-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; }
.row-sub { font-size: 14px; line-height: 20px; color: var(--brown); }
.chev { width: 24px; flex-shrink: 0; display: flex; justify-content: center; }
.foot { padding: 0 24px 40px; font-size: 12px; line-height: 20px; color: var(--brown); }
.home-closed .foot { padding-top: 32px; }

/* ---------- shared blocks ---------- */
.body { flex: 1; display: flex; flex-direction: column; gap: 32px; padding: 32px 24px 40px; }
.body-tight { gap: 24px; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.big { font: 700 40px/40px var(--head); letter-spacing: -0.02em; }
.lead { font-size: 18px; line-height: 26px; }
.ref { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--brown); }
.done-row { display: flex; align-items: center; gap: 12px; }
.done-mark { width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 22px; background: var(--green); }

.btn { display: flex; align-items: center; justify-content: center; gap: 12px; height: 64px; flex-shrink: 0; padding: 0 16px; border-radius: 16px; font: 700 30px/32px var(--head); letter-spacing: -0.02em; white-space: nowrap; }
.btn-yellow { background: var(--yellow); border: 2px solid var(--maroon-edge); color: var(--maroon); }
.btn-maroon { background: var(--maroon); color: var(--page); }
.btn.wide { flex: 1; }
.btn.is-busy { opacity: 0.6; }
.btn:active, .step:active:not(:disabled), .order-tile:not(.is-closed):active, .call:active { transform: translateY(1px); }

.text-link, .link-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px; font-size: 18px; line-height: 26px; font-weight: 600; text-decoration: underline 1px; text-underline-position: from-font; }
.links { display: flex; flex-direction: column; gap: 16px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { gap: 12px; }
.label { display: block; font-size: 18px; line-height: 24px; font-weight: 600; }
fieldset.field-wide { display: flex; }
.input { display: block; width: 100%; height: 56px; padding: 0 16px; background: transparent; border: 2px solid var(--maroon-50); border-radius: 12px; font-size: 18px; line-height: 24px; appearance: none; -webkit-appearance: none; }
.area { height: 96px; padding: 12px 16px; resize: none; }
.input::placeholder { color: var(--muted); opacity: 1; }
.input:focus, .phone-box:focus-within { border-color: var(--maroon); outline: 2px solid var(--maroon-20); outline-offset: 0; }
.phone-box { display: flex; height: 56px; border: 2px solid var(--maroon-50); border-radius: 12px; overflow: hidden; }
.prefix { width: 64px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--cream); border-right: 2px solid var(--maroon-20); font-size: 18px; font-weight: 600; }
.phone-box input { flex: 1; min-width: 0; padding: 0 16px; border: 0; background: transparent; font-size: 18px; outline: none; }
.hint { font-size: 14px; line-height: 22px; color: var(--muted); }
.hint-brown { font-size: 14px; line-height: 22px; color: var(--brown); }
.privacy { font-size: 12px; line-height: 20px; color: var(--brown); }
.details { display: flex; flex-direction: column; gap: 20px; }

.has-error .input, .has-error .phone-box, .has-error .date-btn { border-color: var(--maroon); }
.field-error { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 24px; font-weight: 600; }
.send-error { display: flex; flex-direction: column; gap: 16px; }
.error-box { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: var(--cream); border: 1px solid var(--maroon-20); border-radius: 16px; font-size: 18px; line-height: 26px; font-weight: 600; }
.error-box p { flex: 1; }
.no-script-help { visibility: hidden; justify-content: center; animation: show-later 0s linear 5s forwards; }
@keyframes show-later { to { visibility: visible; } }

/* ---------- order ---------- */
.items { display: flex; flex-direction: column; gap: 12px; }
.item { display: flex; flex-direction: column; gap: 16px; padding: 16px; border: 2px solid var(--maroon); border-radius: 16px; }
.item-head { display: flex; flex-direction: column; gap: 6px; }
.item-line { display: flex; align-items: center; gap: 12px; }
.item-price { font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; }
.item-contents { font-size: 16px; line-height: 24px; color: var(--brown); }
.stepper { display: flex; align-items: center; gap: 16px; }
.step { width: 56px; height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 12px; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.step-minus { border: 2px solid var(--maroon-50); }
.step-plus { background: var(--maroon); }
.count { flex: 1; text-align: center; font: 700 48px/52px var(--head); }
.bulk-box { padding: 12px 16px; background: var(--tag); border: 1px solid var(--maroon-20); border-radius: 12px; font-size: 16px; line-height: 24px; font-weight: 600; }

.date-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 56px; padding: 0 16px; border: 2px solid var(--maroon-50); border-radius: 12px; font-size: 18px; line-height: 24px; text-align: left; }
.date-btn[aria-expanded="true"] { border-color: var(--maroon); }
.calendar { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--page); border: 2px solid var(--maroon); border-radius: 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-nav { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; }
.cal-nav:disabled { opacity: 0.3; }
.cal-month { font: 700 28px/32px var(--head); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-week { font-size: 14px; line-height: 22px; font-weight: 600; text-align: center; color: var(--muted); }
.day { height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 18px; line-height: 24px; font-weight: 600; }
.day:disabled { color: var(--past); }
.day.is-blocked:disabled { background: var(--off); color: var(--off-text); }
.day.is-selected { background: var(--maroon); color: var(--page); }

.times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.time { height: 52px; display: flex; align-items: center; justify-content: center; background: var(--cream); border: 1px solid var(--maroon-20); border-radius: 12px; font-size: 18px; line-height: 24px; font-weight: 600; white-space: nowrap; }
.time[aria-checked="true"] { background: var(--maroon); border-color: var(--maroon); color: var(--page); }
.time-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* A full 48px tap area without pushing the rest of the form down. */
.time-foot .link-btn { margin: -13px 0; padding: 0 0 0 8px; font-size: 16px; line-height: 22px; white-space: nowrap; }

.delivery { display: flex; flex-direction: column; gap: 16px; }
.delivery-more { display: flex; flex-direction: column; gap: 16px; }
.check-row { position: relative; display: flex; align-items: center; gap: 16px; min-height: 48px; font-size: 18px; line-height: 24px; font-weight: 600; cursor: pointer; }
.check-row input, .chip input, .choice input, .rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-row .box { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 2px solid var(--maroon); border-radius: 8px; }
.check-row .box svg { visibility: hidden; }
.check-row input:checked + .box { background: var(--maroon); }
.check-row input:checked + .box svg { visibility: visible; }
.check-row input:focus-visible + .box { outline: 3px solid var(--maroon); outline-offset: 2px; }

.bar { position: sticky; bottom: 0; z-index: 5; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px max(32px, env(safe-area-inset-bottom, 0px)); background: var(--page); border-top: 1px solid var(--maroon-15); }
.total { min-width: 0; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; }
.send-order { padding: 0 20px 0 24px; }
.bar.is-bulk .total, .bar.is-retry .total { font-size: 18px; }
.bar.is-bulk .send-order { padding: 0 16px 0 20px; }
.bar .btn.send-order.wide { padding: 0 16px; }

/* ---------- sent and status ---------- */
.summary { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--cream); border: 1px solid var(--maroon-20); border-radius: 16px; }
.summary-title { font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; }
.summary-line { font-size: 16px; line-height: 24px; color: var(--brown); }
.summary-strong { font-size: 16px; line-height: 24px; font-weight: 600; }
.pay-card { display: flex; flex-direction: column; gap: 16px; padding: 16px; border: 2px solid var(--maroon); border-radius: 16px; }
.pay-title { font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; }
.pay-apps { font-size: 14px; line-height: 20px; color: var(--brown); text-align: center; }
.qr-row, .photo-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 16px; border: 2px solid var(--maroon-50); border-radius: 12px; font-size: 16px; line-height: 24px; font-weight: 600; text-align: left; }
.qr-row { justify-content: space-between; }
.qr-row[aria-expanded="true"] svg { transform: rotate(180deg); }
.photo-row.centred { justify-content: center; }
.qr-plate { align-self: center; width: 176px; height: 176px; padding: 8px; background: #fff; border-radius: 12px; }
.qr-plate img { display: block; }
.help-link { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 4px 8px; font-size: 16px; line-height: 24px; font-weight: 600; text-align: center; }
.shot-area { display: flex; flex-direction: column; gap: 16px; }
.shot-card { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--cream); border: 1px solid var(--maroon-20); border-radius: 16px; }
.thumb { width: 96px; height: 160px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--off); border: 1px solid var(--maroon-20); border-radius: 8px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.shot-text { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.shot-title { font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; }
.shot-text .link-btn { justify-content: flex-start; padding: 0; text-align: left; }

.status-tag { display: inline-block; padding: 6px 12px; border: 1px solid var(--maroon-20); border-radius: 6px; font: 700 18px/22px var(--head); letter-spacing: 0.04em; text-transform: uppercase; }
.tag-wait { background: var(--yellow); }
.tag-ok { background: var(--green); color: var(--page); }
.tag-grey { background: var(--off); }
.tag-muted { color: var(--off-text); }
.stages { display: flex; flex-direction: column; }
.stage { display: flex; gap: 16px; }
.rail { width: 28px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.dot { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 14px; }
.wire { flex: 1; width: 2px; min-height: 24px; background: var(--maroon-20); }
.stage:nth-child(2) .wire { min-height: 20px; }
.stage-text { display: flex; flex-direction: column; padding-bottom: 20px; }
.stage:last-child .stage-text { padding-bottom: 0; }
.stage-title { font-size: 20px; line-height: 28px; font-weight: 600; }
.stage-sub { font-size: 16px; line-height: 24px; color: var(--brown); }
.is-done .dot, .is-done .wire { background: var(--maroon); }
.is-now .dot { background: var(--cream); border: 2px solid var(--maroon); }
.is-next .dot { border: 2px solid var(--maroon-50); }
.is-next .stage-title { color: var(--brown); }

/* ---------- event ---------- */
.type-hint { line-height: 20px; }
.extras { display: flex; flex-direction: column; gap: 4px; }
.extras .check-row .box { border-color: var(--maroon-50); }
.extras .check-row input:checked + .box { border-color: var(--maroon); }
.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chip { position: relative; display: block; cursor: pointer; }
.chip .face { display: flex; align-items: center; justify-content: center; height: 52px; padding: 0 16px; background: var(--cream); border: 1px solid var(--maroon-20); border-radius: 12px; font-size: 18px; line-height: 24px; font-weight: 600; }
.chip input:checked + .face { background: var(--maroon); border-color: var(--maroon); color: var(--page); }
.soft-note { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--cream); border: 1px solid var(--maroon-20); border-radius: 16px; }
.soft-note p { font-size: 16px; line-height: 24px; color: var(--brown); }
.small-call { align-self: flex-start; display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 16px; border: 2px solid var(--maroon-50); border-radius: 12px; font-size: 16px; line-height: 24px; font-weight: 600; }
.menu { display: flex; flex-direction: column; gap: 12px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice .face { display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 16px; border: 2px solid var(--maroon-50); border-radius: 16px; font-size: 18px; line-height: 24px; font-weight: 600; }
.radio { width: 28px; height: 28px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 2px solid var(--maroon-50); border-radius: 14px; }
.choice input:checked + .face { background: var(--cream); border-color: var(--maroon); }
.choice input:checked + .face .radio { border-color: var(--maroon); }
.choice input:checked + .face .radio::after { content: ""; width: 14px; height: 14px; border-radius: 7px; background: var(--maroon); }
.dependent { padding-top: 8px; }
.has-error .choice .face, .has-error .chip .face, .has-error .rate .face { border-color: var(--maroon); }
.dependent .choice .face { border-color: var(--maroon-50); }

/* ---------- feedback ---------- */
.rating { display: flex; flex-direction: column; gap: 16px; }
.rates { display: flex; gap: 8px; }
.rate { position: relative; flex: 1; min-width: 0; display: flex; cursor: pointer; }
.rate .face { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 88px; background: var(--cream); border: 1px solid var(--maroon-20); border-radius: 12px; text-align: center; }
.rate-num { font: 700 40px/40px var(--head); }
.rate-word { font-size: 14px; line-height: 18px; font-weight: 600; }
.rate input:checked + .face { background: var(--maroon); border-color: var(--maroon); color: var(--page); }
.chip input:focus-visible + .face, .choice input:focus-visible + .face, .rate input:focus-visible + .face { outline: 3px solid var(--maroon); outline-offset: 2px; }

@media (max-width: 359px) {
  .body, .home-actions, .more, .foot, .home-notice { padding-left: 16px; padding-right: 16px; }
  .head-row { padding-right: 16px; }
  .title { font-size: 26px; line-height: 30px; }
  .btn { font-size: 26px; }
  .bar { padding-left: 16px; padding-right: 16px; gap: 8px; }
  .bar .total { font-size: 16px; }
  .bar .send-order { padding: 0 12px; gap: 6px; }
  .calendar { padding: 8px; }
  .time { font-size: 16px; }
  .rates { gap: 4px; }
  .rate-word { font-size: 12px; }
}
