/* The app's own fonts on app.ruvo.ac (app/build.mjs → web/assets/fonts): no font comes from another server, so a tablet
   on the restaurant's Wi-Fi asks nothing of Google and the screens look the same offline. Variable fonts — every
   weight in one file — in the three alphabets of the app: Latin (English), Latin Extended (Serbian: č ć đ š ž) and
   Cyrillic (Russian, Serbian). From Fontsource (@fontsource-variable/onest 5.3.1, unbounded 5.3.0, jetbrains-mono
   5.3.0); SIL Open Font License 1.1 — LICENSE-onest, LICENSE-unbounded, LICENSE-jetbrains-mono. */
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/onest-cyrillic.68e5e01d62.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/onest-latin-ext.14e7d3079b.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(fonts/onest-latin.052df74533.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: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900; src: url(fonts/unbounded-cyrillic.e30bf6a606.woff2) format("woff2"); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900; src: url(fonts/unbounded-latin-ext.845e1c9fe2.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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900; src: url(fonts/unbounded-latin.22f9b928aa.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; }

/* The page of orders in RUVO's own look (9 November, the owner: «Фир стиль бери с нашего приложения»): the app's cool
   greys (its ground #EAEDF3 for the top bar and the bands, white for the tiles, its lines between them), one colour —
   the restaurant's, RUVO's enamel blue unless it chose its own — for what is chosen and for every action (look.js puts
   it in: --plate as it is; --accent-*-day / -night — the fill that reads on the page's ground, the ink on it, the same
   colour as words, its light shade). Square, as the app's keys and tiles: no rounded corners (the owner, 9 November:
   «без закруглений - в нашем стиле»). Onest for every word; Unbounded for the restaurant's name and an order's number,
   as the app's wordmark. */
:root {
  --paper: #FFFFFF;
  --ground: #EAEDF3;
  --ground-2: #DEE1E9;
  --ink: #131824;
  --ink-2: #49505E;
  --ink-3: #5D6370;
  --line: #D5D9E1;
  --line-2: #BFC4CF;
  --ok: #007440;
  --ok-soft: #CBEFD6;
  --bad: #BE2E31;
  --bad-soft: #FEDBD7;
  --warn: #805202;
  --warn-soft: #FAE0C1;
  --scrim: rgb(19 24 36 / 0.46);
  --lift: 0 1px 2px rgb(19 24 36 / 0.12), 0 2px 8px rgb(19 24 36 / 0.06);
  --shadow-sheet: 0 -8px 40px rgb(19 24 36 / 0.18);
  --on: var(--paper); /* the chosen part of a segmented control */

  --plate: #1E44B0;
  --plate-ink: #FFFFFF;
  --accent: var(--accent-day, #1E44B0);
  --accent-ink: var(--accent-ink-day, #FFFFFF);
  --accent-text: var(--accent-text-day, #1E44B0);
  --accent-soft: var(--accent-soft-day, #E1E7F5);

  --font-ui: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-plate: "Unbounded", "Onest", system-ui, sans-serif;

  /* square, as the app's keys and tiles */
  --r-sm: 0;
  --r-md: 0;
  --r-lg: 0;
  --r-pill: 0;
  --key: 52px; /* a key's height: the folders, to take away or delivered, the basket */
  --gutter: 16px;
  color-scheme: light;
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1016;
    --ground: #161920;
    --ground-2: #1F232B;
    --ink: #ECEEF4;
    --ink-2: #B5BBC5;
    --ink-3: #969BA7;
    --line: #272B34;
    --line-2: #3A3F4A;
    --ok: #5AC485;
    --ok-soft: #0B3A22;
    --bad: #F17074;
    --bad-soft: #4E201E;
    --warn: #EFB146;
    --warn-soft: #442A00;
    --scrim: rgb(0 0 0 / 0.62);
    --lift: 0 1px 2px rgb(0 0 0 / 0.5);
    --shadow-sheet: 0 -8px 40px rgb(0 0 0 / 0.6);
    --on: #2C313C;
    --accent: var(--accent-night, #81A8FF);
    --accent-ink: var(--accent-ink-night, #0E1016);
    --accent-text: var(--accent-text-night, #81A8FF);
    --accent-soft: var(--accent-soft-night, #1E2F54);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.45 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
body.locked { overflow: hidden; }
a { color: var(--accent-text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-appearance: none; appearance: none; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ic { flex: none; display: block; }

.page { min-height: 100vh; min-height: 100dvh; padding-bottom: 104px; }
.narrow { max-width: 560px; margin: 0 auto; padding: 0 var(--gutter); }

/* the top of every page, in the app's shade with a line under it: back, the restaurant's logo, the language */
.topbar { background: var(--ground); box-shadow: inset 0 -1px 0 0 var(--line); padding-top: env(safe-area-inset-top); }
.topbar-in { display: flex; align-items: center; gap: 12px; max-width: 1120px; min-height: 60px; margin: 0 auto; padding: 0 var(--gutter); }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); text-decoration: none; font-weight: 500; }
.back:hover .back-text { text-decoration: underline; }
/* with the logo beside it, «back» is a square key of its own on a phone */
.back-key { justify-content: center; min-width: 44px; }
@media (max-width: 599px) { .back-key .back-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.brand { display: inline-flex; align-items: center; min-width: 0; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand-logo { display: block; max-width: 168px; max-height: 40px; width: auto; height: auto; }
.wordmark { overflow: hidden; font-family: var(--font-plate); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; text-overflow: ellipsis; }
.lang { position: relative; display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.lang select {
  -webkit-appearance: none; appearance: none; min-height: 44px; padding: 0 4px; border: 0; background: transparent;
  color: var(--ink); font-weight: 500; font-size: 15px; cursor: pointer;
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--key); padding: 0 20px; border: 0; border-radius: var(--r-pill);
  font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer;
}
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-main { background: var(--accent); color: var(--accent-ink); }
.btn-main:not(:disabled):active { filter: brightness(0.92); }
.btn-quiet { background: var(--ground-2); color: var(--ink); }
.btn-quiet:not(:disabled):active { filter: brightness(0.95); }
.btn.wide { display: flex; width: 100%; }
.btn.big { min-height: 56px; font-size: 17px; }
.grow { flex: 1; }

/* fields */
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; min-width: 0; }
.field-label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid var(--line-2); border-radius: var(--r-md); background: var(--paper); color: var(--ink); font-size: 16px;
}
.field textarea { resize: vertical; min-height: 76px; line-height: 1.4; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: 1; }
.field input:focus, .field textarea:focus { border-color: var(--accent-text); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.field-hint { font-size: 13px; color: var(--ink-3); }
.field-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* a segmented choice: keys side by side with a line between them, the chosen one in the colour (the app's categories) */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; padding: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.seg-b {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--key);
  border: 0; border-radius: 0; background: transparent; color: var(--ink); font-weight: 600; cursor: pointer;
  box-shadow: inset 1px 0 0 0 var(--line);
}
.seg-b:first-child { box-shadow: none; }
.seg-b:not(.on):hover { background: var(--ground); }
.seg-b.on { background: var(--accent); color: var(--accent-ink); box-shadow: none; }

/* more, fewer: three square keys in a frame of lines */
.stepper { display: inline-flex; align-items: stretch; gap: 0; padding: 0; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line-2); }
.step { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 0; background: transparent; color: var(--ink); cursor: pointer; }
.step:not(:disabled):hover { background: var(--ground); }
.step:disabled { opacity: 0.35; cursor: default; }
.stepper .step-n { display: grid; place-items: center; min-width: 44px; box-shadow: inset 1px 0 0 0 var(--line-2), inset -1px 0 0 0 var(--line-2); }
.step-n { min-width: 30px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* waiting, and what went wrong */
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 56px 0; color: var(--ink-2); }
.dot-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 0.9s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: 0.25; } to { opacity: 1; } }
.problem { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 0; text-align: center; }
.problem .ic { color: var(--bad); }
.problem p { margin: 0; max-width: 36ch; }
.gone { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px 0; text-align: center; }
.gone p { margin: 0; max-width: 36ch; font-size: 17px; }
.gone .plate { width: 100%; text-align: left; }
.empty { color: var(--ink-2); }

.foot { max-width: 680px; margin: 48px auto 0; padding: 24px var(--gutter) 8px; text-align: center; font-size: 13px; }
.foot a { color: var(--ink-3); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* The plate: Belgrade's enamel street sign — a field of one color with a line of the same white set in from its edge, the
   name in large letters, the street under it. The restaurant's color, as it is, by day and at night. */
.plate {
  position: relative; display: block; margin: 0;
  padding: 26px 26px 22px; border-radius: 0;
  background: var(--plate); color: var(--plate-ink);
}
.plate::before {
  content: ""; position: absolute; inset: 7px; pointer-events: none;
  border: 2px solid currentColor; border-radius: 0;
}
.plate-name {
  display: block; font-family: var(--font-plate); font-weight: 600;
  font-size: clamp(28px, 8.2vw, 46px); line-height: 1.06; letter-spacing: -0.015em;
  text-wrap: balance; overflow-wrap: anywhere;
}
.plate-line { display: block; margin-top: 10px; font-size: 15px; font-weight: 500; line-height: 1.3; opacity: 0.92; }

/* in the list of restaurants */
.plate-sm { padding: 18px 20px 16px; }
.plate-sm::before { inset: 5px; border-width: 2px; }
.plate-sm .plate-name { font-size: clamp(21px, 5.8vw, 27px); }
.plate-sm .plate-line { margin-top: 6px; font-size: 14px; }

/* an order's number: the house-number plate under the street's */
.plate-num { display: inline-flex; flex-direction: column; align-items: center; min-width: 156px; padding: 24px 30px 18px; text-align: center; }
.plate-num .plate-name { font-size: 68px; font-weight: 700; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.plate-num .plate-line { margin-top: 12px; font-size: 14px; }

/* ---------- the list of restaurants: a tile each — its main picture (or a band of its colour), its name, open or not ---------- */
.home { max-width: 1120px; margin: 0 auto; padding: 20px var(--gutter) 0; }
.home-title { margin: 8px 0 6px; font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.home-lead { margin: 0 0 24px; max-width: 46ch; color: var(--ink-2); font-size: 17px; }
.shops { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
@media (min-width: 720px) { .shops { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .shops { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.shops > li { box-shadow: inset -1px -1px 0 0 var(--line); }
.shop-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.shop-link:hover .shop-name { color: var(--accent-text); }
.shop-link:focus-visible { outline-offset: -3px; }
.shop-pic { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: inset 0 -1px 0 0 var(--line); }
.shop-band { display: flex; align-items: flex-end; aspect-ratio: 16 / 9; padding: 18px 20px; background: var(--plate); color: var(--plate-ink); }
.shop-band .wordmark { font-size: clamp(22px, 5vw, 28px); white-space: normal; }
.shop-body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 16px 20px 18px; }
.shop-name { font-family: var(--font-plate); font-size: 20px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
.shop-addr { color: var(--ink-2); font-size: 14px; }
.shop-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.shop-ways { margin-left: auto; }
.shop-note { display: block; color: var(--ink-3); font-size: 14px; }

/* ---------- a restaurant's page: the main picture over everything, then the menu and the basket at its side ---------- */
.hero { position: relative; background: var(--plate); color: var(--plate-ink); }
.hero-pic { display: block; width: 100%; height: 200px; object-fit: cover; background: var(--ground-2); }
.hero-in { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.hero-card { padding: 28px 0 26px; }
.hero-name {
  margin: 0; font-family: var(--font-plate); font-weight: 600; font-size: clamp(28px, 7vw, 44px); line-height: 1.06;
  letter-spacing: -0.015em; text-wrap: balance; overflow-wrap: anywhere;
}
.hero-note { margin: 10px 0 0; max-width: 46ch; font-size: 16px; line-height: 1.45; opacity: 0.92; }
.hero-addr { display: flex; align-items: center; gap: 6px; margin: 2px 0 0; font-size: 14px; opacity: 0.92; }
.hero .open-line { margin: 10px 0 0; color: inherit; }
.hero .tel { color: inherit; }
.hero:not(.has-pic) .open-dot { background: currentColor; opacity: 0.6; }
.hero:not(.has-pic) .open-dot.on { background: var(--plate-ink); opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--plate-ink) 30%, transparent); }
/* with a picture: on a phone the card under it; on a wide screen a white card at the picture's foot, the colour's bar
   at its edge (as the iPad's cards of delivery) */
.hero.has-pic { background: var(--paper); color: var(--ink); box-shadow: inset 0 -1px 0 0 var(--line); }
.hero.has-pic .hero-card { padding: 18px 0 18px; }
.hero.has-pic .hero-note, .hero.has-pic .hero-addr { color: var(--ink-2); opacity: 1; }
@media (min-width: 600px) {
  .hero-pic { height: clamp(280px, 34vw, 400px); }
  .hero.has-pic { box-shadow: none; }
  .hero.has-pic .hero-in { position: absolute; left: 0; right: 0; bottom: 0; }
  .hero.has-pic .hero-card { max-width: 540px; padding: 24px 28px 20px 32px; background: var(--paper); box-shadow: inset 4px 0 0 0 var(--accent); }
  .hero-card { padding: 40px 0 36px; }
}

.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1120px; margin: 0 auto; }
.menu-col { min-width: 0; padding: 0 var(--gutter); }
.side-col { display: none; }
@media (min-width: 960px) {
  .shop-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding: 0 var(--gutter); }
  .menu-col { padding: 0; }
  .side-col { display: block; }
  .page-shop { padding-bottom: 32px; }
}

.intro { padding: 24px 0 0; }
.open-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; color: var(--ink-2); font-size: 15px; }
.open-state { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.open-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); flex: none; }
.open-dot.on { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.tel { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--ink); font-weight: 500; text-decoration: none; }
.tel:hover { text-decoration: underline; }
.mode-hint { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; }

.last-order {
  display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 16px;
  background: var(--accent-soft); color: var(--ink); text-decoration: none; box-shadow: inset 4px 0 0 0 var(--accent);
}
.last-num { min-width: 40px; color: var(--accent-text); font: 700 22px/1 var(--font-plate); text-align: center; }
.last-text { display: flex; flex: 1; flex-direction: column; font-size: 14px; }
.last-text strong { font-weight: 600; font-size: 15px; }
.last-go { color: var(--accent-text); font-weight: 600; }

/* the folders: a strip of keys that stays at the top, a line between them, the folder in view in the colour */
.tabs {
  position: sticky; top: 0; z-index: 5; display: flex; overflow-x: auto; scrollbar-width: none;
  margin: 24px calc(-1 * var(--gutter)) 0; padding: 0; background: var(--paper);
  box-shadow: inset 0 1px 0 0 var(--line), inset 0 -1px 0 0 var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .tabs { margin-left: 0; margin-right: 0; box-shadow: inset 0 1px 0 0 var(--line), inset 0 -1px 0 0 var(--line), inset 1px 0 0 0 var(--line); } }
.tab {
  flex: none; min-height: var(--key); padding: 0 22px; border: 0; border-radius: 0;
  background: transparent; color: var(--ink); font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
  box-shadow: inset -1px 0 0 0 var(--line);
}
.tab:not(.on):hover { background: var(--ground); }
.tab.on { background: var(--accent); color: var(--accent-ink); }

/* a folder of dishes: tiles edge to edge, a line between them, as the iPad's menu */
.folder { padding-top: 28px; scroll-margin-top: calc(var(--key) + 8px); }
.folder-name { margin: 0 0 12px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.dishes { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0 calc(-1 * var(--gutter)); padding: 0; list-style: none; border-top: 1px solid var(--line); }
.dish {
  display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 14px; align-items: end;
  padding: 16px var(--gutter); background: var(--paper); box-shadow: inset 0 -1px 0 0 var(--line);
}
@media (min-width: 600px) {
  .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-left: 1px solid var(--line); }
  .dish { min-height: 148px; padding: 16px 18px; box-shadow: inset -1px -1px 0 0 var(--line); }
}
.dish-open { display: flex; flex-direction: column; align-self: stretch; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.dish-open:focus-visible { outline-offset: 4px; }
.dish-open:hover .dish-name { color: var(--accent-text); }
.dish-name { font-size: 17px; font-weight: 600; line-height: 1.3; }
.dish-desc {
  display: -webkit-box; margin-top: 4px; overflow: hidden;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  color: var(--ink-2); font-size: 14.5px; line-height: 1.45;
}
.dish-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; color: var(--ink-3); font-size: 13px; }
.dish-price { margin-top: auto; padding-top: 12px; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pickup-tag { color: var(--warn); font-weight: 600; }
.dish.is-out .dish-name, .dish.is-out .dish-price { color: var(--ink-3); }
.dish.is-out .dish-price { font-weight: 500; }
.add {
  display: grid; place-items: center; width: 48px; height: 48px;
  border: 1.5px solid var(--accent); border-radius: 0; background: transparent; color: var(--accent-text); cursor: pointer;
}
.add:hover { background: var(--accent-soft); }
.add.has { background: var(--accent); color: var(--accent-ink); }
.add:active { transform: scale(0.96); }
.add-n { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.add-gap { width: 48px; }

/* the basket: a bar along the bottom of a phone, a panel at the side of a wide screen */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 0 0 env(safe-area-inset-bottom); background: var(--accent); }
@media (min-width: 960px) { .page-shop .bar { display: none; } }
.bar-b {
  display: flex; align-items: center; gap: 14px; width: 100%; max-width: 1120px; min-height: 64px; margin: 0 auto; padding: 0 var(--gutter);
  border: 0; border-radius: 0; background: transparent; color: var(--accent-ink); font-size: 17px; font-weight: 600; cursor: pointer;
}
.bar-n { display: grid; place-items: center; min-width: 36px; height: 36px; background: color-mix(in srgb, var(--accent-ink) 20%, transparent); font-variant-numeric: tabular-nums; }
.bar-label { flex: 1; text-align: left; }
.bar-sum { font-variant-numeric: tabular-nums; }

.panel { position: sticky; top: 24px; margin-top: 24px; padding: 20px 20px 22px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.panel-title { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.panel-empty { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; }
.panel-sum { display: flex; justify-content: space-between; margin: 4px 0 14px; padding-top: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }

.lines { margin: 0; padding: 0; list-style: none; }
.line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text text" "step sum";
  gap: 8px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.line-text { grid-area: text; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.line-name { font-weight: 600; }
.line-mods { display: block; color: var(--ink-2); font-size: 13.5px; }
.line-bad { color: var(--bad); font-size: 13px; font-weight: 600; }
.line.is-bad .line-name { color: var(--ink-3); }
.line .stepper { grid-area: step; justify-self: start; }
.line-sum { grid-area: sum; justify-self: end; font-weight: 600; font-variant-numeric: tabular-nums; }

/* a dish with its choices: a sheet from the bottom of a phone, a card in the middle of a wide screen */
.shade {
  position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center;
  background: var(--scrim); animation: fade 0.18s ease-out;
}
.sheet {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 560px;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  background: var(--paper); border-radius: 0; box-shadow: var(--shadow-sheet); outline: none;
  animation: rise 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (min-width: 720px) {
  .shade { align-items: center; padding: 32px; }
  .sheet { max-height: min(840px, calc(100vh - 64px)); }
}
.sheet-x {
  position: absolute; top: 0; right: 0; z-index: 2; display: grid; place-items: center; width: var(--key); height: var(--key);
  border: 0; border-radius: 0; background: var(--paper); color: var(--ink); cursor: pointer; box-shadow: inset 1px -1px 0 0 var(--line);
}
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 24px 20px 12px; }
.sheet-foot { display: flex; align-items: center; gap: 12px; padding: 12px 20px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet-note { flex: 1; margin: 0; padding: 10px 0; color: var(--ink-2); font-weight: 600; text-align: center; }

.dish-art-box { display: grid; place-items: center; height: 230px; margin: -24px -20px 18px; overflow: hidden; background: #F4F1EC; box-shadow: inset 0 -1px 0 0 var(--line); }
.dish-art-box svg { width: 100%; height: 100%; }
.sheet-title { margin: 0; padding-right: 44px; font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.sheet-price { margin: 6px 0 0; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); font-weight: 400; }
.sheet-desc { margin: 12px 0 0; color: var(--ink-2); line-height: 1.5; }
.allergens { margin: 10px 0 0; color: var(--ink-2); font-size: 14px; }
.allergens span { color: var(--ink); font-weight: 600; }

.opts { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.opts legend { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; margin-bottom: 6px; padding: 0; }
.opts-name { font-weight: 700; }
.opts-rule { color: var(--ink-3); font-size: 13px; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 0 -10px; padding: 0 10px; border-radius: var(--r-md); cursor: pointer; }
.opt:hover { background: var(--ground); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-mark { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 2px solid var(--line-2); border-radius: 50%; }
.opt input[type="checkbox"] + .opt-mark { border-radius: 0; }
.opt.on .opt-mark { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 4px var(--paper); }
.opt.on input[type="checkbox"] + .opt-mark { box-shadow: inset 0 0 0 3px var(--paper); }
.opt input:focus-visible + .opt-mark { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.opt-name { flex: 1; }
.opt-price { color: var(--ink-2); font-variant-numeric: tabular-nums; }

@keyframes rise { from { transform: translateY(28px); opacity: 0.6; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* the basket and the order */
.cart-title { margin: 6px 0 2px; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.cart-from { margin: 0 0 4px; color: var(--ink-2); }
.page-cart { padding-bottom: 24px; }
.block { padding: 22px 0; border-bottom: 1px solid var(--line); }
.block-title { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.block-text { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.block-text .ic { margin-top: 2px; }
.block-text.bad { color: var(--bad); font-weight: 600; }
.addr .btn { margin-top: 18px; }
.quote { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: var(--r-md); background: var(--ok-soft); }
.quote .ic { margin-top: 2px; color: var(--ok); }
.quote strong { display: block; font-weight: 600; }
.quote-sub { display: block; margin-top: 2px; color: var(--ink-2); font-size: 14px; }

.times { display: flex; flex-wrap: wrap; gap: 8px; }
.time {
  min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
}
.time.on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

.pays { display: flex; flex-direction: column; gap: 8px; }
.pay { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r-md); cursor: pointer; }
.pay input { position: absolute; opacity: 0; pointer-events: none; }
.pay .ic { margin-top: 1px; color: var(--ink-2); }
.pay.on { border-color: var(--accent); box-shadow: inset 4px 0 0 0 var(--accent); }
.pay.on .ic { color: var(--accent-text); }
.pay:has(input:focus-visible) { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.pay-text { display: flex; flex-direction: column; gap: 2px; }
.pay-name { font-weight: 600; }
.pay-hint { color: var(--ink-2); font-size: 14px; }

.totals { border-bottom: 0; padding-bottom: 8px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sum-total { padding-top: 10px; color: var(--ink); font-size: 19px; font-weight: 700; }

.send { position: sticky; bottom: 0; z-index: 4; padding: 14px 0 max(16px, env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--paper) 78%, color-mix(in srgb, var(--paper) 0%, transparent)); }
.send-err { margin: 0 0 10px; padding: 12px 14px; border-radius: var(--r-md); background: var(--bad-soft); color: var(--ink); font-weight: 500; }
.send-hint { margin: 0 0 10px; color: var(--ink-2); font-size: 14px; text-align: center; }
.send-small { margin: 10px 0 0; color: var(--ink-3); font-size: 13px; text-align: center; }

/* the demo bank: plainly not the restaurant's page */
.page-bank { --bank: #1F2633; --bank-ink: #FFFFFF; }
@media (prefers-color-scheme: dark) { .page-bank { --bank: #E3E7EE; --bank-ink: #10141C; } }
.bank { margin-top: 20px; padding: 24px 20px; border-radius: var(--r-lg); background: var(--ground); }
.bank-head { display: flex; align-items: center; gap: 12px; }
.bank-head h1 { margin: 0; font-size: 22px; }
.bank-mark { display: grid; place-items: center; width: 46px; height: 46px; background: var(--bank); color: var(--bank-ink); }
.bank-text { margin: 14px 0 20px; color: var(--ink-2); line-height: 1.5; }
.bank-facts { display: grid; gap: 10px; margin: 0 0 22px; }
.bank-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bank-facts dt { color: var(--ink-2); }
.bank-facts dd { margin: 0; font-weight: 600; text-align: right; }
.bank-sum { font-size: 22px; font-variant-numeric: tabular-nums; }
.btn-bank { background: var(--bank); color: var(--bank-ink); }
.bank .btn + .btn { margin-top: 10px; }

/* the order's page: its number on a house-number plate, where it is, how it is paid */
.page-order { padding-bottom: 40px; }
.order-head { display: flex; flex-direction: column; align-items: center; padding: 12px 0 4px; text-align: center; }
.order-stage { margin: 24px 0 0; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.order-when { margin: 8px 0 0; color: var(--ink-2); font-size: 17px; font-variant-numeric: tabular-nums; }
.order-reason { margin: 12px 0 0; padding: 12px 16px; border-radius: var(--r-md); background: var(--bad-soft); }
.order-small { margin: 8px 0 0; color: var(--ink-2); font-size: 14px; }
.st-cancelled .plate, .st-expired .plate { filter: grayscale(1); opacity: 0.55; }

.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 26px 0 20px; padding: 0; list-style: none; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; line-height: 1.25; text-align: center; }
.steps li::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 2px; background: var(--line-2); }
.steps li:first-child::before { display: none; }
.steps li.step-done::before, .steps li.step-now::before { background: var(--ok); }
.step-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--line-2); border-radius: 0; background: var(--paper); color: var(--paper); }
.step-done .step-dot { border-color: var(--ok); background: var(--ok); }
.step-now .step-dot { border-color: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.step-now .step-name { color: var(--ink); font-weight: 600; }
.step-done .step-name { color: var(--ink-2); }
.page-order > main > .btn { margin-top: 6px; }

.ips { margin: 8px 0 4px; padding: 22px 20px; border: 1.5px solid var(--line-2); border-radius: var(--r-lg); }
.ips .block-title { text-align: center; }
.qr { width: min(256px, 72vw); margin: 0 auto 6px; padding: 6px; background: #FFFFFF; }
.qr svg { display: block; width: 100%; height: auto; }
.ips-facts { display: grid; gap: 8px; margin: 16px 0 0; }
.ips-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ips-facts dt { color: var(--ink-2); }
.ips-facts dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.num { font-variant-numeric: tabular-nums; }
.link-b { padding: 6px 0 6px 10px; border: 0; background: none; color: var(--accent-text); font-weight: 600; cursor: pointer; }

.o-lines { margin: 0 0 8px; padding: 0; list-style: none; }
.o-lines li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; padding: 8px 0; }
.o-qty { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.o-sum { font-variant-numeric: tabular-nums; }
.paid-line { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; color: var(--ink-2); font-size: 15px; }
.contact { border-bottom: 0; }
.contact .btn { margin-top: 14px; }
