/* Shukrona Kafe guest site. The brand is the owner's: the logo (bun orange, chocolate lettering, fries red, ice-cream
   pink, flag green) and the printed menu (a rust wall of food doodles, white rounded panels, condensed headings, rust
   price tags). Rust means "the brand speaks", orange means "add", chocolate is the text. */

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/nunito-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: "Nunito";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Oswald";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/oswald-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: "Oswald";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/oswald-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --rust: #a33b11;
  --rust-deep: #7f2c0b;
  --rust-soft: #fcebe2;
  --orange: #e97027;
  --orange-deep: #d25f22;
  --choco: #4a2f14;
  --choco-soft: #6e4b2c;
  --cream: #fdebc6;
  --peach: #f3c283;
  --paper: #fffaf4;
  --card: #ffffff;
  --line: #f1e1cf;
  --muted: #8a6a52;
  --green: #5f8c1f;
  --green-bright: #8bb535;
  --pink: #e48fb1;
  --yellow: #fdc404;
  --red: #ba2730;
  --shadow: 0 18px 40px rgba(74, 47, 20, 0.16);
  --shadow-card: 0 1px 2px rgba(74, 47, 20, 0.05), 0 6px 18px rgba(74, 47, 20, 0.07);
  --display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --text: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 16px;
  --bar-h: 120px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--choco);
  font: 500 16px/1.45 var(--text);
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(100px + env(safe-area-inset-bottom));
}
body.locked { overflow: hidden; }

button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- hero: the brand on its doodle wall ---------- */
.hero {
  position: relative;
  background: var(--rust);
  color: #fff;
  overflow: hidden;
}
.hero__pattern { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top)) var(--gutter) 58px;
  text-align: center;
}
.hero__top { display: flex; align-items: center; justify-content: space-between; }
.hero__logo {
  width: 216px;
  margin: 10px auto 0;
  padding: 10px 14px 8px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(60, 20, 4, 0.35);
}
.hero__logo img { width: 100%; height: auto; }
.hero__line {
  margin: 16px auto 0;
  max-width: 30ch;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  text-wrap: balance;
}
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  padding: 6px 14px 6px 12px;
  border-radius: 999px;
  background: rgba(64, 20, 4, 0.35);
  font-size: 14px;
  font-weight: 700;
}
.hero__status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(139, 181, 53, 0.35);
}
.hero__status.is-closed::before { background: var(--yellow); box-shadow: 0 0 0 3px rgba(253, 196, 4, 0.3); }

.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: rgba(64, 20, 4, 0.35);
}
.lang button {
  min-width: 50px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--rust); }

.me {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--rust);
  box-shadow: 0 6px 16px rgba(60, 20, 4, 0.3);
}
.me svg { width: 22px; height: 22px; }
.me__dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- the page: a white sheet over the hero ---------- */
.page {
  position: relative;
  margin-top: -32px;
  border-radius: 32px 32px 0 0;
  background: var(--paper);
}

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-radius: 32px 32px 0 0;
  transition: box-shadow 0.2s;
}
.bar.is-stuck { border-radius: 0; box-shadow: 0 6px 16px rgba(74, 47, 20, 0.08); }
.bar__inner { max-width: 1080px; margin: 0 auto; padding: 18px var(--gutter) 10px; }
.search { position: relative; display: block; }
.search__icon {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 15px;
  height: 15px;
  margin-top: -9px;
  border: 2.2px solid var(--muted);
  border-radius: 50%;
}
.search__icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 7px;
  height: 2.2px;
  border-radius: 2px;
  background: var(--muted);
  transform: rotate(45deg);
}
.search input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 44px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  font-size: 16px;
  font-weight: 600;
}
.search input::placeholder { color: #b39a86; font-weight: 500; }
.search input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(233, 112, 39, 0.14); }

.chips {
  display: flex;
  gap: 8px;
  margin: 12px calc(-1 * var(--gutter)) 0;
  padding: 0 var(--gutter) 2px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  scroll-snap-align: start;
  min-height: 40px;
  padding: 0 15px 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--choco);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
.chip svg { width: 18px; height: 18px; color: var(--rust); }
.chip[aria-current="true"] { background: var(--rust); border-color: var(--rust); color: #fff; }
.chip[aria-current="true"] svg { color: #fff; }

/* ---------- the menu ---------- */
.menu { max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter) 28px; }
.menu__state { margin: 32px 0; color: var(--muted); font-weight: 700; }
.menu__state.is-error { color: var(--red); }

.section { padding-top: 22px; }
.section__title {
  margin: 0 0 14px;
  font: 700 26px/1.1 var(--display);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--rust);
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; } }
@media (min-width: 940px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.dish {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.dish.is-off .pic { filter: grayscale(0.9); opacity: 0.6; }
.dish__open {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.pic {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: var(--cream);
  overflow: hidden;
}
.pic img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s; }
.pic img.is-loaded { opacity: 1; }
/* no photo yet: a warm plate with the dish's kind drawn on it */
.pic--empty { display: grid; place-items: center; background: linear-gradient(160deg, #fff3de, var(--cream)); }
.pic--empty .plate {
  display: grid;
  place-items: center;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 8px #fff8ec, 0 8px 18px rgba(163, 59, 17, 0.12);
  color: var(--rust);
}
.pic--empty .plate svg { width: 46%; height: 46%; }
/* the price tag of the printed menu */
.tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--rust);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(127, 44, 11, 0.3);
}
.tag small { font-size: 12px; font-weight: 800; opacity: 0.9; }
.dish__body { display: flex; flex-direction: column; gap: 3px; padding: 12px 12px 0; }
.dish__name {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish__sizes { display: block; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dish__foot { padding: 10px 10px 12px; margin-top: auto; }

.price { font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* the card's action: quiet until the dish is in the cart, then orange */
.buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--rust-soft);
  color: var(--rust);
  font-size: 14px;
  font-weight: 900;
}
.buy:active { background: #f8dccd; }
.buy__plus {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}
.buy__n {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--choco);
  color: #fff;
  font-size: 12px;
  line-height: 22px;
}
.buy--off { background: #f6eeea; color: var(--muted); font-size: 13px; cursor: default; }

.stepper {
  display: inline-flex;
  align-items: center;
  height: 40px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
}
.stepper button {
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}
.stepper button:disabled { opacity: 0.45; cursor: default; }
.stepper output { min-width: 24px; text-align: center; font-weight: 900; font-variant-numeric: tabular-nums; }
.stepper--quiet { background: var(--rust-soft); color: var(--rust); }
.stepper--wide { display: flex; justify-content: space-between; width: 100%; height: 42px; }
.stepper--wide button { width: 52px; height: 42px; }

.empty { margin: 24px 0; color: var(--muted); font-weight: 700; }

/* loading: calm placeholders in the shape of the cards */
.skeleton { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding-top: 22px; }
@media (min-width: 600px) { .skeleton { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.skeleton span { aspect-ratio: 0.72; border-radius: 24px; background: linear-gradient(100deg, #f7ead9 30%, #fff6ea 50%, #f7ead9 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- footer ---------- */
.foot {
  max-width: 1080px;
  margin: 8px auto 0;
  padding: 28px var(--gutter) 36px;
  border-top: 1.5px dashed var(--line);
  color: var(--choco-soft);
  font-size: 14px;
}
.foot p { margin: 0 0 6px; max-width: 62ch; }
.foot__logo { width: 116px; margin-bottom: 14px; border-radius: 16px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.foot__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-card);
  color: var(--choco);
  font-weight: 800;
  text-decoration: none;
}
.foot__link svg { width: 18px; height: 18px; color: var(--rust); }

.notice { max-width: 1080px; margin: 4px auto 0; padding: 0 var(--gutter); }
.notice__box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 14px;
  border-radius: 20px;
  background: var(--choco);
  color: #fff;
}
.notice__box svg { width: 28px; height: 28px; flex: none; color: var(--peach); }
.notice__text { flex: 1; font-weight: 800; line-height: 1.25; }
.notice__text small { display: block; color: var(--peach); font-weight: 700; }
.notice__box button {
  flex: none;
  min-height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
}

/* ---------- the cart bar: the only floating thing ---------- */
.cartbar {
  position: fixed;
  z-index: 30;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  min-height: 62px;
  margin: 0 auto;
  padding: 0 20px 0 10px;
  border: 0;
  border-radius: 22px;
  background: var(--choco);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(74, 47, 20, 0.38);
}
.cartbar__count {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 8px;
  border-radius: 14px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.cartbar__count.is-bump { animation: bump 0.35s ease-out; }
@keyframes bump { 40% { transform: scale(1.18); } }
.cartbar__label { flex: 1; text-align: left; font-size: 17px; }
.cartbar__sum { color: var(--cream); font-weight: 900; font-variant-numeric: tabular-nums; }

/* ---------- sheets: a dish, the cart, the order form, an order, my orders ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(46, 26, 10, 0.55); }
.sheet {
  position: fixed;
  z-index: 50;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 560px;
  max-height: 92vh;
  max-height: 92dvh;
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 28px 28px 0 0;
  background: var(--paper);
  padding-bottom: env(safe-area-inset-bottom);
  animation: rise 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sheet:focus { outline: none; }
@keyframes rise { from { transform: translateY(28px); opacity: 0.4; } to { transform: none; opacity: 1; } }
@media (min-width: 640px) { .sheet { bottom: 24px; border-radius: 28px; max-height: 88vh; } }

.sheet__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 12px 10px 20px;
  background: var(--paper);
}
.sheet__title { margin: 0; font: 700 22px/1.15 var(--display); letter-spacing: 0.01em; text-transform: uppercase; color: var(--rust); }
.close {
  flex: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--rust-soft);
  color: var(--rust);
  font-size: 24px;
  line-height: 1;
}
.sheet__body { padding: 0 20px 20px; }
.sheet__foot { position: sticky; bottom: 0; padding: 12px 20px 16px; background: var(--paper); border-top: 1.5px solid var(--line); }
.sheet .pic { aspect-ratio: 4 / 3; border-radius: 22px; margin-bottom: 16px; }
.sheet .pic--empty .plate { width: auto; height: 74%; }

.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0 20px;
  border: 0;
  border-radius: 18px;
  background: var(--rust);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(163, 59, 17, 0.28);
}
.primary:active { background: var(--rust-deep); }
.primary:disabled { background: #e6d6c6; color: var(--muted); box-shadow: none; cursor: not-allowed; }
.primary--center { justify-content: center; }
.secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--rust);
  font-weight: 800;
}
.linkbtn { border: 0; background: none; padding: 8px 0; color: var(--muted); font-weight: 700; text-decoration: underline; }

/* sizes of a dish */
.options { display: grid; gap: 8px; margin: 4px 0 16px; padding: 0; border: 0; }
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  cursor: pointer;
}
.option input { width: 20px; height: 20px; margin: 0; accent-color: var(--rust); }
.option span { flex: 1; font-weight: 800; }
.option.is-off { opacity: 0.5; cursor: not-allowed; }
.option.is-off span::after { content: attr(data-off); margin-left: 8px; color: var(--red); font-weight: 700; font-size: 13px; }
.option:has(input:checked) { border-color: var(--rust); box-shadow: 0 0 0 1px var(--rust); }
/* «Qoʻshing — mazaliroq»: add-ons under the dish */
.options__title { margin: 0 0 4px; padding: 0; font: 700 17px/1.2 var(--display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--rust); }
.option--addon { min-height: 50px; }
.option--addon .price { color: var(--choco); font-weight: 800; }
.qtyrow { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.qtyrow .price { font-size: 20px; }

/* cart lines */
.lines { margin: 0 0 16px; padding: 0; list-style: none; }
.line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1.5px solid var(--line);
}
.line__name { font-weight: 800; }
.line__sum { grid-column: 2; grid-row: 1; }
.line .stepper { grid-column: 1; justify-self: start; height: 36px; }
.line .stepper button { height: 36px; width: 38px; }
.line__note { color: var(--red); font-size: 13px; font-weight: 700; }
/* add-ons of a cart line, and of a placed order */
.line__extras { grid-column: 1 / -1; display: grid; gap: 2px; margin-top: -2px; }
.line__extra { color: var(--muted); font-size: 14px; font-weight: 700; }
.line__extra.is-off { text-decoration: line-through; }
.line__extra small { color: var(--red); text-decoration: none; }
.line--extra { padding-top: 0; border-top: 0; }
.line--extra .line__name { padding-left: 14px; color: var(--muted); font-weight: 700; font-size: 14px; }
.line--extra .line__sum { color: var(--muted); font-size: 14px; }
.totalrow { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 10px; font-weight: 800; }
.totalrow strong { font: 700 26px/1.1 var(--display); color: var(--choco); font-variant-numeric: tabular-nums; }
.fine { margin: 0 0 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.fine a { color: var(--rust); font-weight: 800; }

/* compact additions under the cart: one dessert, fries, sauce and drink, only while that kind is absent */
.recs { margin: 18px 0 12px; padding-top: 18px; border-top: 1.5px dashed var(--line); }
.recs__title { margin: 0; font: 700 20px/1.15 var(--display); color: var(--rust); }
.recs__hint { margin: 4px 0 12px; color: var(--muted); font-size: 13px; font-weight: 650; }
.recs__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(142px, 44%);
  gap: 10px;
  padding: 2px 2px 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
  scrollbar-width: thin;
}
.rec {
  min-width: 0;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  scroll-snap-align: start;
}
.sheet .rec .pic { aspect-ratio: 4 / 3; margin: 0; border-radius: 0; }
.rec__body { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 10px; }
.rec__name {
  grid-column: 1 / -1;
  min-height: 36px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec__price { align-self: center; font-size: 13px; }
.rec__add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.rec__add > span:first-child { font-size: 18px; line-height: 1; }
@media (min-width: 480px) {
  .recs__list { grid-auto-flow: initial; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; }
}

/* the order form */
.field { display: block; margin-bottom: 14px; }
.field__label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 800; }
.field__hint { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.field__error { display: block; margin-top: 4px; color: var(--red); font-size: 13px; font-weight: 800; }
.input {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  font-size: 16px;
  font-weight: 600;
}
textarea.input { resize: vertical; min-height: 76px; }
.input::placeholder { color: #b8a08c; font-weight: 500; }
.input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(233, 112, 39, 0.14); }
.input.is-bad { border-color: var(--red); }
.phone { display: flex; align-items: stretch; }
.phone__code {
  display: grid;
  place-items: center;
  padding: 0 13px;
  border: 1.5px solid var(--line);
  border-right: 0;
  border-radius: 16px 0 0 16px;
  background: var(--cream);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.phone .input { border-radius: 0 16px 16px 0; font-variant-numeric: tabular-nums; }

.switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border-radius: 18px;
  background: var(--rust-soft);
}
.switch button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--rust);
  font-weight: 800;
}
.switch button[aria-pressed="true"] { background: var(--card); color: var(--choco); box-shadow: 0 2px 6px rgba(74, 47, 20, 0.12); }

.geo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: -4px 0 16px;
  padding: 0 15px 0 12px;
  border: 1.5px dashed var(--rust);
  border-radius: 14px;
  background: none;
  color: var(--rust);
  font-weight: 800;
}
.geo svg { width: 20px; height: 20px; }
.geo.is-set { border-style: solid; border-color: var(--green); color: var(--green); }

.pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.pay label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  font-weight: 800;
  cursor: pointer;
}
.pay input { width: 20px; height: 20px; margin: 0; accent-color: var(--rust); }
.pay label:has(input:checked) { border-color: var(--rust); box-shadow: 0 0 0 1px var(--rust); }

.formerror { margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; background: #fbe7e5; color: var(--red); font-weight: 800; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* an order after sending */
.order__no { margin: 0; font: 700 46px/1 var(--display); color: var(--rust); font-variant-numeric: tabular-nums; }
.order__when { margin: 6px 0 0; color: var(--muted); font-weight: 700; }
.steps { margin: 20px 0 18px; padding: 0; list-style: none; }
.step { position: relative; display: grid; grid-template-columns: 34px 1fr auto; gap: 0 12px; padding-bottom: 18px; }
.step__dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--line);
  color: var(--line);
}
.step__dot svg { width: 18px; height: 18px; }
.step::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 36px;
  bottom: 2px;
  width: 2px;
  background: var(--line);
}
.step:last-child::after { display: none; }
.step.is-done .step__dot { background: var(--green); border-color: var(--green); color: #fff; }
.step.is-done::after { background: var(--green); }
.step.is-now .step__dot { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 0 0 6px rgba(233, 112, 39, 0.18); }
.step.is-bad .step__dot { background: var(--red); border-color: var(--red); color: #fff; }
.step__title { font-weight: 900; padding-top: 6px; }
.step__text { grid-column: 2 / 4; margin: 2px 0 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.step__time { padding-top: 6px; color: var(--muted); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .step.is-now .step__dot { animation: pulse 1.8s ease-in-out infinite; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(233, 112, 39, 0.06); } }
}

/* my orders */
.hello { margin: 0 0 16px; color: var(--muted); font-weight: 700; }
.hello strong { color: var(--choco); }
.history { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.hist {
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.hist__top { display: flex; align-items: baseline; gap: 10px; }
.hist__no { font: 700 22px/1 var(--display); color: var(--rust); }
.hist__when { flex: 1; color: var(--muted); font-size: 13px; font-weight: 700; }
.hist__items { margin: 8px 0 10px; font-size: 14px; font-weight: 600; color: var(--choco-soft); }
.hist__bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hist__actions { display: flex; gap: 8px; margin-top: 12px; }
.hist__actions .secondary { flex: 1; min-height: 40px; font-size: 14px; }
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--choco);
  font-size: 12.5px;
  font-weight: 900;
  white-space: nowrap;
}
.badge--live { background: #fde3cf; color: var(--orange-deep); }
.badge--done { background: #e7f1d6; color: var(--green); }
.badge--bad { background: #fbe7e5; color: var(--red); }

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom));
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 16px;
  background: var(--choco);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transform: translateX(-50%);
  box-shadow: var(--shadow);
}

@media (prefers-reduced-motion: reduce) {
  .sheet, .cartbar__count.is-bump { animation: none; }
  .skeleton span { animation: none; }
  .pic img { transition: none; }
}
