/* OrderSeedha — customer PWA.
 * Component styles follow orderseedha-customer-v3.html closely. Additions
 * beyond the reference are marked; the biggest is the variant chip row, which
 * v3 had no equivalent for.
 */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 130px; }

/* --- header --------------------------------------------------------------- */
header { padding: 18px 0 0; }
.logo { font-family: var(--disp); font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.logo em { font-style: italic; color: var(--chili); }
.logo a { color: inherit; text-decoration: none; }
.seedha {
  height: 3px; margin: 10px 0 0;
  background: linear-gradient(90deg, var(--green) 0 33.3%, var(--turmeric) 33.3% 66.6%, var(--chili) 66.6%);
}
.loc {
  display: flex; align-items: center; gap: 7px; padding: 12px 0;
  border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2);
}
.loc b { color: var(--ink); font-weight: 600; }
.chg {
  color: var(--green); font-weight: 600; font-size: 12.5px; cursor: pointer;
  text-decoration: underline; background: none; border: none; font-family: inherit; padding: 0;
}

/* --- screens -------------------------------------------------------------- */
.screen { display: none; }
.screen.on { display: block; animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen.on { animation: none; } }

/* --- search + veg toggle -------------------------------------------------- */
.searchrow { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.search {
  flex: 1; display: flex; align-items: center; gap: 9px; border: none; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow); padding: 11px 16px;
  font-size: 13.5px; color: var(--ink-3);
}
.search input { border: none; outline: none; flex: 1; font: inherit; font-size: 14px; color: var(--ink); background: none; }
.vegtgl { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9px; font-weight: 700; color: var(--ink-2); letter-spacing: .04em; }
.vt { position: relative; width: 40px; height: 22px; border-radius: 11px; background: #D8DDD9; cursor: pointer; border: none; transition: background .15s; }
.vt::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.vt[aria-checked="true"] { background: var(--veg); }
.vt[aria-checked="true"]::after { transform: translateX(18px); }

/* --- craving rail --------------------------------------------------------- */
.crave { display: flex; gap: 14px; overflow-x: auto; margin: 18px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; }
.crave::-webkit-scrollbar { display: none; }
.cv { flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; border: none; font: inherit; cursor: pointer; color: var(--ink-2); }
.cv .ic { position: relative; overflow: hidden; width: 56px; height: 56px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); display: grid; place-items: center; font-size: 26px; border: 2px solid transparent; }
.cv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cv.on .ic { border-color: var(--green); background: var(--green-soft); }
.cv.on { color: var(--green); font-weight: 700; }
.cv span { font-size: 11px; font-weight: 600; }

/* --- masthead ------------------------------------------------------------- */
.masthead { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 16px -16px 0; padding: 0 16px; scrollbar-width: none; }
.masthead::-webkit-scrollbar { display: none; }
.mast {
  flex: 0 0 92%; scroll-snap-align: center; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow); min-height: 118px; display: flex; flex-direction: column;
  justify-content: center; padding: 18px 20px; position: relative;
  border: none; text-align: left; font: inherit; cursor: default; color: inherit;
}
.mast[data-link] { cursor: pointer; }
/* The promise card: a trust strip, not a competing hero. Slimmer than the
   offers above it, dressed in the same layered-gradient language so the
   stack reads as one designed page, with the kicker in gold. Ambient by
   design - trust copy works by quiet repetition, never as a popup. */
.mast.house {
  background: linear-gradient(125deg, #0B3D2E, #14503B 60%, #185F45); color: #fff;
  min-height: 96px; position: relative; overflow: hidden;
}
.mast.house::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 90% -40%, rgba(255,255,255,.2), transparent 55%);
}
.mast.house::after {
  content: "✓"; position: absolute; right: 10px; bottom: -10px; font-size: 74px;
  font-weight: 700; color: rgba(232,161,28,.22); line-height: 1; pointer-events: none;
}
.mast.house .m-top { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #E8C979; font-weight: 800; }
.mast.house h3 em { font-style: italic; color: var(--turmeric); }
.mast.house h3, .mast.house .m-sub { position: relative; max-width: 88%; }
.mast.sponsored { background: var(--turmeric-soft); color: var(--ink); }
.mast.sponsored .m-top { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--chili); font-weight: 700; }
.mast h3 { font-family: var(--disp); font-weight: 600; font-size: 19px; line-height: 1.25; margin-top: 4px; }
.mast .m-sub { font-size: 12.5px; margin-top: 5px; opacity: .85; }
.mast .m-emoji { position: absolute; right: 14px; bottom: 8px; font-size: 44px; opacity: .9; }
/* ASCI disclosure — every paid slide carries this, no exceptions */
.mast .sp {
  position: absolute; top: 10px; right: 12px; font-size: 9.5px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; background: rgba(255,255,255,.85);
  color: var(--ink-2); border-radius: 4px; padding: 2px 7px;
}
.mastdots { display: flex; gap: 5px; justify-content: center; margin-top: 9px; }
.mastdots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.mastdots span.on { background: var(--green); }

/* --- sections ------------------------------------------------------------- */
h2.section { font-family: var(--disp); font-weight: 600; font-size: 17px; margin: 22px 0 12px; }

/* --- restaurant card ------------------------------------------------------ */
.resto {
  width: 100%; background: var(--card); border: none; border-radius: 16px; margin-bottom: 12px;
  cursor: pointer; text-align: left; font: inherit; color: inherit; display: flex;
  overflow: hidden; box-shadow: var(--shadow); padding: 0; transition: transform .12s;
}
.resto:active { transform: scale(.985); }
.r-photo { position: relative; width: 92px; min-height: 100%; flex: none; display: grid; place-items: center; font-size: 36px; overflow: hidden; }
/* The merchant's logo sits over the emoji tile the same way an item photo
   does: fail to load and the emoji is simply visible again. An item photo,
   added later in the markup, paints over the logo in turn. */
.b-logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* On the marketplace card the tile is a tall band, and cover would crop the
   wordmark's edges off a square logo. contain shows the WHOLE mark; the tile
   behind it is painted the logo's own field colour (BRAND_ART.imgBg), so
   there is no visible letterbox seam. */
.r-photo .b-logo { object-fit: contain; }
.r-body { flex: 1; padding: 13px 15px 12px 14px; min-width: 0; }
.r-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.r-name { font-family: var(--disp); font-weight: 600; font-size: 16.5px; }
.r-eta { font-size: 11.5px; color: var(--ink-2); white-space: nowrap; font-weight: 500; }
.r-sub { font-size: 12.5px; color: var(--ink-2); }
.r-badges { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.badge { font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.badge.parity { border: 1px solid var(--green); color: var(--green); background: none; }
.badge.off { background: var(--chili-soft); color: var(--chili); }
.badge.km { background: #F1F0EA; color: var(--ink-2); font-weight: 500; }
.badge.newb { background: #F1F0EA; color: var(--ink-2); }
/* Closed outlets dim and sink to the bottom, but stay browsable — closing
   blocks ordering, not reading the menu. */
.r-closed { opacity: .55; }

.closedbar {
  background: var(--turmeric-soft); color: var(--turmeric-deep); border-radius: 12px;
  padding: 11px 14px; font-size: 13px; font-weight: 600; margin-top: 12px;
}

.empty { padding: 26px 4px; color: var(--ink-3); font-size: 13.5px; }

/* --- menu page ------------------------------------------------------------ */
.back { background: none; border: none; font: inherit; font-weight: 600; font-size: 13.5px; color: var(--ink-2); cursor: pointer; padding: 0; margin: 16px 0 8px; display: inline-flex; gap: 6px; }
.m-head h1 { font-family: var(--disp); font-weight: 600; font-size: 26px; letter-spacing: -.01em; }
.m-head .meta { font-size: 13px; color: var(--ink-2); margin-top: 3px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cat { margin-top: 22px; }
.cat-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 11px; }
.cat-h h3 { font-family: var(--disp); font-weight: 600; font-size: 17px; white-space: nowrap; }
.cat-h .rail { height: 1px; background: var(--line); flex: 1; align-self: center; }

.item { background: var(--card); border: none; border-radius: 16px; margin-bottom: 10px; display: flex; overflow: hidden; box-shadow: var(--shadow); }
/* A <button> since the tile opens the item sheet — the resets strip the
   browser's button chrome so it stays a picture, not a control. */
.i-photo { position: relative; width: 78px; flex: none; display: grid; place-items: center; font-size: 32px; overflow: hidden; border: none; padding: 0; font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* The photo sits over the emoji tile; if it fails to load and is removed, the
   tile is simply visible again. object-fit guards the one case where a stored
   image is not square. */
.i-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* A tile that carries an IMAGE is a fixed square, not the full-height band.
   Menu rows grow tall - description, size chips, prices - and a square photo
   cover-cropped into a 78px-wide full-height column shows a sliver of cake
   with the top and bottom cut off. The photos are square; a square tile shows
   all of them. Emoji-only tiles keep the band. */
.i-photo.sq {
  width: 78px; height: 78px; align-self: center;
  margin-left: 12px; border-radius: 12px;
}
/* Wider screens have room for a Zomato-sized photo. */
@media (min-width: 700px) {
  .i-photo.sq { width: 110px; height: 110px; }
}
.i-main { flex: 1; display: flex; align-items: center; gap: 11px; padding: 13px 14px 13px 11px; min-width: 0; }
.mark { width: 12px; height: 12px; border-radius: 2px; flex: none; border: 1.5px solid; display: grid; place-items: center; align-self: flex-start; margin-top: 3px; }
.mark.veg { border-color: var(--veg); }
.mark.veg::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--veg); }
.mark.nonveg { border-color: var(--chili); }
.mark.nonveg::after { content: ""; width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-bottom: 5px solid var(--chili); }
.i-body { flex: 1; min-width: 0; }
.i-name { font-weight: 600; font-size: 14px; }
.i-desc { font-size: 12px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.i-prices { text-align: right; flex: none; }
.i-was { font-size: 10.5px; color: var(--ink-3); text-decoration: line-through; display: block; }
.i-now { font-size: 14.5px; font-weight: 700; color: var(--chili); }

.add { flex: none; border: none; background: var(--green); color: #fff; font-family: var(--disp); font-weight: 600; font-size: 12.5px; border-radius: 999px; padding: 8px 17px; cursor: pointer; }
.qty { flex: none; display: flex; align-items: center; border: 1.5px solid var(--green); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { border: none; background: none; color: var(--green); width: 28px; height: 28px; font-size: 15px; font-weight: 700; cursor: pointer; }
.qty span { min-width: 22px; text-align: center; font-size: 13px; font-weight: 700; color: var(--green); }

/* Variant chips — NOT in v3. Half/Full sits under the dish name; tapping a
   chip switches the active variant and the price above updates in place. */
.variants { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.vchip {
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  font: inherit; font-size: 11.5px; font-weight: 600; border-radius: 999px;
  padding: 4px 11px; cursor: pointer; transition: border-color .12s, background .12s;
}
.vchip[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); color: var(--green); }

.item.unavail { opacity: .55; }
.item.unavail .i-prices { visibility: hidden; }
.unavail-tag { flex: none; font-size: 11px; font-weight: 600; color: var(--ink-3); border: 1px dashed var(--line); border-radius: 999px; padding: 6px 12px; }

/* --- cart bar ------------------------------------------------------------- */
.cartbar {
  position: fixed; bottom: 64px; left: 50%; transform: translateX(-50%);
  width: min(528px, calc(100% - 32px)); background: var(--green); color: #fff;
  border-radius: 999px; padding: 13px 22px; display: none; justify-content: space-between;
  align-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(14,77,58,.35);
  z-index: 40; border: none; font: inherit; text-align: left;
}
.cartbar.show { display: flex; }
.cartbar .l { font-size: 13.5px; }
.cartbar .l b { font-size: 14.5px; font-weight: 700; }
.cartbar .go { font-family: var(--disp); font-weight: 600; font-size: 15px; color: #fff; }

/* --- bill ----------------------------------------------------------------- */
.bill { background: var(--card); border: none; border-radius: 16px; padding: 16px 18px; margin-top: 12px; box-shadow: var(--shadow); }
.bill .row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 3px 0; color: var(--ink-2); gap: 12px; }
.bill .row .amt { color: var(--ink); font-weight: 500; white-space: nowrap; }
.bill .row.save .amt { color: var(--chili); font-weight: 700; }
.bill .row.total { border-top: 1px solid var(--line); margin-top: 9px; padding-top: 10px; font-weight: 600; color: var(--ink); font-size: 15px; }
.bill .row.total .amt { font-size: 17px; font-weight: 700; }
.bill .row .strike { color: var(--ink-3); text-decoration: line-through; margin-right: 4px; }

.field { margin-top: 10px; }
.field label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; display: block; margin-bottom: 5px; }
.field input {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  padding: 12px 14px; font: inherit; font-size: 14.5px; color: var(--ink); box-shadow: var(--shadow);
}
.field input:focus { outline: 2px solid var(--green); outline-offset: -1px; }

.place {
  width: 100%; margin-top: 16px; border: none; border-radius: 999px; background: var(--green);
  color: #fff; font-family: var(--disp); font-weight: 600; font-size: 17px; padding: 15px;
  cursor: pointer; box-shadow: 0 6px 18px rgba(14,77,58,.3);
}
.place:disabled { background: #C6CFC9; box-shadow: none; cursor: not-allowed; }

/* MOV blocks the order and reads in chili; the free-delivery nudge is only a
   nudge, so it reads in turmeric. Two different messages, two different jobs. */
.movwarn { margin-top: 10px; border: none; border-radius: 12px; padding: 11px 14px; font-size: 13px; font-weight: 600; display: none; }
.movwarn.show { display: block; }
.movwarn.block { background: var(--chili-soft); color: var(--chili); }
.movwarn.nudge { background: var(--turmeric-soft); color: var(--turmeric-deep); }

/* --- menu search ----------------------------------------------------------
   Sticks under the header so it survives a scroll: on a menu long enough to
   need searching, a box that scrolls away is a box nobody finds twice. */
.msearch {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  background: var(--bg); padding: 10px 0 12px; margin-bottom: 2px;
}
.msearch input {
  flex: 1; width: 100%; border: 1px solid var(--line); border-radius: 12px;
  background: #FBFBF9; font-family: var(--body); font-size: 15px; padding: 12px 14px;
  color: var(--ink);
}
.msearch input:focus { outline: 2px solid var(--green); outline-offset: -1px; background: var(--bg); }
/* iOS draws its own clear affordance on type=search; ours is the only one. */
.msearch input::-webkit-search-decoration,
.msearch input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.msearch button {
  border: none; background: var(--green-soft); color: var(--green); font-size: 14px;
  font-weight: 700; border-radius: 999px; width: 34px; height: 34px; cursor: pointer;
  flex: 0 0 auto;
}
.nomatch { padding: 34px 10px; text-align: center; color: var(--ink-2); font-size: 14px; }
.linkish {
  border: none; background: none; color: var(--green); font-weight: 700; font-size: 14px;
  text-decoration: underline; cursor: pointer; padding: 8px; font-family: var(--body);
}

/* --- payment (cash only) --------------------------------------------------
   Not a chooser. One method, stated — a single radio button would imply a
   second option is coming and invite a tap that does nothing. */
.paybox { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #FBFBF9; }
.pay-row { display: flex; align-items: flex-start; gap: 12px; }
.pay-ic { font-size: 20px; line-height: 1.2; }
.pay-main { display: flex; flex-direction: column; gap: 3px; }
.pay-main b { font-size: 15px; color: var(--ink); }
.pay-sub { font-size: 12.5px; color: var(--ink-2); }
.pay-note {
  margin-top: 11px; padding-top: 11px; border-top: 1px dashed var(--line);
  font-size: 12.5px; font-weight: 600; color: var(--turmeric-deep);
}

/* --- legal pages ----------------------------------------------------------
   Long-form reading rather than an app screen: wider measure than the cards,
   generous line height, and headings that let someone scan for the one section
   they came for. */
.legal { padding-top: 8px; }
.legal h1 { font-family: var(--disp); font-size: 28px; font-weight: 700; margin-top: 18px; color: var(--ink); }
.legal h2 { font-family: var(--disp); font-size: 17px; font-weight: 600; margin-top: 28px; color: var(--ink); }
.legal p, .legal li { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); margin-top: 10px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal ul { margin: 4px 0 0 20px; }
.legal li { margin-top: 8px; }
.legal a { color: var(--green); }
.legal-date { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.legal-lede { font-size: 15.5px; color: var(--ink); margin-top: 16px; }
.legal-foot {
  margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 13px;
}

/* --- site footer ----------------------------------------------------------
   Small, always present, and above the fixed bottom nav (.wrap already leaves
   130px of room for it). The policy links have to be reachable from every
   page: ad review checks the landing domain, not one page of it. */
.sitefoot {
  margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 11.5px; color: var(--ink-3); line-height: 1.6;
}
.sitefoot a { color: var(--ink-2); }
.sitefoot .seller { display: block; margin-top: 5px; }

.paritynote { margin-top: 12px; font-size: 12px; color: var(--ink-3); text-align: center; }
.footnote { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); }

/* --- bottom sheet (location picker) --------------------------------------- */
.sheetveil { position: fixed; inset: 0; background: rgba(18,38,27,.5); z-index: 70; display: none; }
.sheetveil.on { display: block; }
.sheet {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(560px, 100%);
  background: var(--bg); border-radius: 22px 22px 0 0; padding: 22px 18px 28px; z-index: 71; display: none;
  max-height: 80vh; overflow-y: auto;
}
.sheet.on { display: block; animation: up .2s ease-out; }
@keyframes up { from { transform: translate(-50%, 30px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet.on { animation: none; } }
.sheet h3 { font-family: var(--disp); font-weight: 600; font-size: 19px; margin-bottom: 4px; }
.sheet .sheet-sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 10px; }
/* --- item detail sheet ----------------------------------------------------- */
.isheet-img {
  display: block; width: 100%; max-height: 44vh; aspect-ratio: 1; object-fit: cover;
  border-radius: 16px; background: #F1F0EA; margin-bottom: 14px;
}
.isheet-head { display: flex; align-items: baseline; gap: 9px; }
.isheet-head .mark { align-self: center; margin-top: 0; }
.isheet-price { display: flex; align-items: baseline; gap: 7px; margin: 2px 0 10px; }
.isheet-price .i-was { display: inline; }
.isheet-price .i-now { font-size: 17px; }
.isheet-var { font-size: 12.5px; color: var(--ink-3); }
.isheet-desc { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.isheet-add { margin-top: 18px; }

.locopt {
  width: 100%; background: var(--card); border: none; border-radius: 14px; padding: 13px 16px;
  margin-top: 8px; display: flex; align-items: center; gap: 12px; font: inherit; font-size: 14.5px;
  font-weight: 600; cursor: pointer; text-align: left; color: var(--ink); box-shadow: var(--shadow);
}
.locopt .ic { font-size: 18px; width: 24px; text-align: center; }
.locopt .sub { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.locopt[aria-current="true"] { outline: 2px solid var(--green); outline-offset: -1px; }

/* --- bottom nav ----------------------------------------------------------- */
.bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(560px, 100%);
  background: var(--card); border-top: 1px solid var(--line); display: flex; z-index: 30;
  padding-bottom: env(safe-area-inset-bottom);
}
.bn {
  flex: 1; border: none; background: none; font: inherit; font-size: 10.5px; font-weight: 600;
  color: var(--ink-3); padding: 9px 0 8px; cursor: pointer; display: flex; flex-direction: column;
  gap: 2px; align-items: center; text-decoration: none;
}
.bn .i { font-size: 17px; }
.bn.on { color: var(--green); }

/* --- confirmation stub ---------------------------------------------------- */
.confirm { text-align: center; padding: 30px 0 6px; }
.ring { width: 82px; height: 82px; margin: 0 auto 15px; border-radius: 50%; border: 3px solid var(--green); display: grid; place-items: center; font-size: 30px; color: var(--green); }
.confirm h1 { font-family: var(--disp); font-weight: 600; font-size: 23px; }
.confirm p { font-size: 13px; color: var(--ink-2); margin-top: 5px; }
.stubnote { margin: 18px auto 0; max-width: 420px; background: var(--turmeric-soft); color: var(--turmeric-deep); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; text-align: left; }

/* Out of delivery range — a dead end, not a warning strip. The menu is not
   rendered behind this. */
.blocked { text-align: center; padding: 40px 18px 24px; }
.blocked-ic {
  width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--turmeric-soft); display: grid; place-items: center; font-size: 30px;
}
.blocked h2 { font-family: var(--disp); font-weight: 600; font-size: 21px; }
.blocked p { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; max-width: 340px; margin-inline: auto; }
.blocked .place { max-width: 320px; margin-inline: auto; }
/* The list of areas we actually cover, under a "we don't deliver here" state.
   Quieter than the body copy: it is reference, not the message. */
.blocked-areas {
  font-size: 12px !important; color: var(--ink-3) !important;
  margin-top: 16px !important; line-height: 1.6;
}
.blocked-alt {
  display: inline-block; margin-top: 16px; font-size: 13.5px; font-weight: 600;
  color: var(--green); text-decoration: none;
}

.skel { color: var(--ink-3); font-size: 13.5px; padding: 20px 4px; }
.errbox { background: var(--chili-soft); color: var(--chili); border-radius: 12px; padding: 12px 14px; font-size: 13px; font-weight: 600; margin-top: 12px; }

/* --- service worker update bar ---------------------------------------------
   Sits above the bottom nav, never blocks anything, and can be ignored: the
   next navigation picks up the new version regardless. It exists because a page
   loads its modules once, so nothing else can tell an open tab it is stale. */
.swbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(64px + env(safe-area-inset-bottom)); width: min(520px, calc(100% - 24px));
  background: var(--ink); color: #fff; border-radius: 12px; z-index: 60;
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  font-size: 13px; box-shadow: 0 6px 20px rgba(18,38,27,.28);
}
.swbar span { flex: 1; }
.swbar button {
  border: none; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  border-radius: 999px; padding: 6px 13px; background: var(--turmeric); color: var(--ink);
}
.swbar button:last-child { background: none; color: #B9C6BE; padding: 6px 4px; font-weight: 500; }

/* --- add to home screen ----------------------------------------------------
   Never on a first visit, never over the menu, silent for 30 days once
   dismissed. See install.js for the full rules. */
.installbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(64px + env(safe-area-inset-bottom)); width: min(520px, calc(100% - 24px));
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; z-index: 55;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  box-shadow: 0 6px 20px rgba(18,38,27,.16);
}
.ib-main { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ib-main b { font-size: 13.5px; }
.ib-main span { font-size: 12px; color: var(--ink-2); line-height: 1.45; }
.ib-go {
  border: none; background: var(--green); color: #fff; font: inherit; font-weight: 700;
  font-size: 13px; border-radius: 999px; padding: 9px 16px; cursor: pointer; flex: 0 0 auto;
}
.ib-x {
  border: none; background: none; color: var(--ink-3); font-size: 14px;
  cursor: pointer; padding: 4px 6px; flex: 0 0 auto;
}

/* --- the customer's own orders --------------------------------------------- */
.ordcard {
  display: flex; flex-direction: column; gap: 5px; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; margin-bottom: 10px;
  background: var(--card);
}
.ordcard:active { transform: scale(.99); }
.ordcard.gone { display: none; }
.ord-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ord-code { font-family: var(--disp); font-weight: 700; font-size: 16px; color: var(--green); }
.ord-status { font-size: 11.5px; font-weight: 700; color: var(--ink-2); }
.ord-status.s-delivered { color: var(--veg); }
.ord-status.s-cancelled, .ord-status.s-rejected, .ord-status.s-undelivered { color: var(--chili); }
.ord-status.s-placed, .ord-status.s-confirmed { color: var(--turmeric-deep); }
.ord-sub { font-size: 13px; color: var(--ink-2); }
.ord-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11.5px; color: var(--ink-3); margin-top: 2px;
}
.ord-amt { font-weight: 700; color: var(--ink); font-size: 13px; }

/* --- promo code (cart) ----------------------------------------------------- */
/* Breathing room around the promo box: the cart screen stacks the cooking
   field, this box, its suggestions and the bill — without margins the white
   rounded inputs read as one smeared column. */
.promo { margin: 16px 0 12px; }
.cookfield { margin: 18px 0 0; }
.promo-row { display: flex; gap: 8px; }
.promo-row input {
  flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px;
  font: inherit; font-size: 14px; letter-spacing: .06em; text-transform: uppercase;
}
.promo-row input:focus { outline: 2px solid var(--green); outline-offset: -1px; }
.promo-apply {
  border: none; border-radius: 12px; background: var(--green); color: #fff;
  font: inherit; font-weight: 700; font-size: 13px; padding: 0 18px; cursor: pointer;
}
.promo-apply:disabled { opacity: .5; }
.promo-suggest { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; }
.psug {
  display: flex; align-items: baseline; gap: 9px; text-align: left; width: 100%;
  border: 1.5px dashed var(--green); border-radius: 12px; background: var(--green-soft);
  padding: 9px 12px; font: inherit; font-size: 12.5px; color: var(--ink-2); cursor: pointer;
}
.psug b { font-size: 12.5px; letter-spacing: .06em; color: var(--green); flex: none; }
.promo-note { font-size: 12px; color: var(--ink-2); margin-top: 9px; min-height: 15px; }
.promo-note.ok { color: var(--green); font-weight: 600; }
.promo-note.bad { color: var(--chili); font-weight: 600; }

/* --- offer banners (home + outlet pages) ----------------------------------- */
/* A rotating carousel, one full-width banner per live promo. The track slides
   by transform; the wrapper clips. Each slide is DRESSED, not just filled:
   a kicker naming the kind of deal, a serif headline, a large low-opacity
   watermark, and a layered gradient with a sheen - flat single-gradient
   rectangles read as system chrome, not as an offer anyone chose to make.
   Palette classes pair with slideArt() in offers-banner.js. */
.offers { position: relative; overflow: hidden; border-radius: 18px; margin: 2px 0 14px; box-shadow: 0 4px 18px rgba(18,38,27,.14); }
.ob-track { display: flex; transition: transform .45s ease; }
.obslide {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start;
  gap: 4px; text-align: left; border: none; cursor: pointer; font: inherit; color: #fff;
  padding: 16px 18px 26px; position: relative; overflow: hidden;
}
/* the sheen: a soft light source top-right, shared by every theme */
.obslide::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 88% -30%, rgba(255,255,255,.28), transparent 55%);
}
.ob-percent, .ob-flat { background: linear-gradient(122deg, #0B3D2E, #12573F 55%, #1E7A57); }
.ob-percent .ob-kick, .ob-flat .ob-kick { color: var(--turmeric); }
.ob-bogo, .ob-freebie { background: linear-gradient(122deg, #A82D0F, #CE4420 48%, #E8A11C); }
.ob-bogo .ob-kick, .ob-freebie .ob-kick { color: #FFE9B8; }
/* the festive gift: the ad's rose-and-gold, not the menu's greens */
.ob-gift { background: linear-gradient(122deg, #5E1730, #93254A 52%, #C2486B); }
.ob-gift .ob-kick { color: #F3C86B; }
.ob-gift .ob-code { border-color: rgba(243,200,107,.8); color: #F8E3B0; }
.obslide.picked { outline: 3px solid var(--turmeric); outline-offset: -3px; }
.ob-mark {
  position: absolute; right: 6px; bottom: -6px; font-size: 64px; opacity: .3;
  transform: rotate(-8deg); pointer-events: none; line-height: 1;
}
/* The drawn rakhi is tonal (golds on maroon), so it can sit stronger than
   an emoji without shouting. */
.ob-gift .ob-mark { opacity: .5; right: 2px; bottom: 0; }
.ob-mark svg { display: block; }
.ob-kick { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .95; }
.ob-what { font-family: var(--disp); font-weight: 600; font-size: 19px; line-height: 1.22; letter-spacing: -.01em; max-width: 82%; position: relative; }
.ob-code {
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; margin-top: 4px;
  border: 1.5px dashed rgba(255,255,255,.75); border-radius: 999px; padding: 5px 12px;
  position: relative;
}
.ob-code b { letter-spacing: .12em; }
.ob-cta { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .7; position: relative; }
.ob-dots { position: absolute; left: 0; right: 0; bottom: 9px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.ob-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .3s; }
.ob-dot.on { background: #fff; }
