/* Restaurants on WataDish (watadish.com/restaurants; vault P060): this page only. Laid out as the food apps a customer
   knows (founder, 22 Oct 2026: "the best of Just Eat, Deliveroo and Uber Eats"): a strip under the bar with where to,
   delivery or pickup and the search; the sorts and filters in a column at the side (a sheet on a phone), the cuisines
   with how many serve each; wide photo cards in parts - open now, order for later, closed. WataDish's own: the plum and
   the magenta, El Messiri for the title and the names only, and the ticket on each photo - the time over a perforation,
   the fee on the stub, as the loyalty card's reward stub is torn. Logical properties only (CssLogicalPropertiesTest):
   the page reads right to left in Arabic as it is. */

.g-strip, .g-head, .g-main { --pink: #f4a6c8; --tint: #f4eff5; --tint-strong: #ebe3ee; }

/* The strip under the bar (Uber Eats'): stays at the top while the list scrolls. */
.g-strip { position: sticky; inset-block-start: 0; z-index: 30; background: var(--surface); border-block-end: 1px solid var(--line); box-shadow: 0 6px 18px -16px rgb(29 19 34 / 0.5); }
.g-strip-row { display: flex; align-items: center; gap: 0.75rem; padding-block: 0.6rem; }
.g-strip svg, .g-head svg, .g-main svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Where to: the button, and its panel - a popover here, a sheet on a phone (below). */
.g-where { position: relative; flex: 0 1 auto; min-inline-size: 0; }
.g-where-button { display: flex; align-items: center; gap: 0.5rem; min-block-size: 2.75rem; padding-inline: 0.8rem 0.7rem; border-radius: 999px; background: var(--tint); cursor: pointer; list-style: none; max-inline-size: 22rem; }
.g-where-button:hover { background: var(--tint-strong); }
.g-where-button > svg { flex: none; inline-size: 1.25rem; block-size: 1.25rem; color: var(--brand); }
.g-where-button > svg.g-chevron { inline-size: 1rem; block-size: 1rem; color: var(--ink); }
.g-where[open] .g-chevron { transform: rotate(180deg); }
.g-where-text { min-inline-size: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.95rem; }
.g-where-label { color: var(--muted); }
.g-sheet > summary::-webkit-details-marker { display: none; }
.g-sheet > summary:focus-visible, .g-modes a:focus-visible, .g-option:focus-visible, .g-chips a:focus-visible, .g-sheet-close:focus-visible, .g-search-go:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Delivery or pickup: two halves of one pill. */
.g-modes { flex: none; display: inline-flex; gap: 0.15rem; padding: 0.22rem; border-radius: 999px; background: var(--tint); }
.g-modes a { display: inline-flex; align-items: center; min-block-size: 2.3rem; padding-inline: 1rem; border-radius: 999px; color: var(--ink); font-size: 0.92rem; font-weight: 600; text-decoration: none; }
.g-modes a:hover { background: var(--tint-strong); }
.g-modes a[aria-current] { background: var(--mulberry); color: #fff; }

/* The search. */
.g-search { position: relative; flex: 1 1 16rem; display: flex; align-items: center; min-inline-size: 0; }
.g-search input { inline-size: 100%; min-block-size: 2.75rem; padding-block: 0.5rem; padding-inline: 2.7rem 1rem; border: 1px solid transparent; border-radius: 999px; background: var(--tint); color: var(--ink); font: inherit; }
.g-search input::placeholder { color: var(--muted); }
.g-search input:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 30%, transparent); border-color: var(--brand); background: var(--surface); }
.g-search-go { position: absolute; inset-inline-start: 0.35rem; display: grid; place-items: center; inline-size: 2.1rem; block-size: 2.1rem; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.g-search-go svg { inline-size: 1.15rem; block-size: 1.15rem; }

/* A sheet's panel: from the bottom on a phone, with a shade over the page behind it. */
.g-sheet-panel { position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 70; display: grid; gap: 0.75rem; max-block-size: 86dvh; overflow-y: auto; overscroll-behavior: contain; padding-block: 0.9rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); padding-inline: 1.25rem; background: var(--surface); color: var(--ink); border-start-start-radius: 1.25rem; border-start-end-radius: 1.25rem; box-shadow: 0 -12px 40px -8px rgb(29 19 34 / 0.35); }
.g-sheet[open]::before { content: ''; position: fixed; inset: 0; z-index: 65; background: rgb(29 19 34 / 0.45); pointer-events: none; }
.g-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.g-sheet-title { margin: 0; font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; }
.g-sheet-close { display: grid; place-items: center; flex: none; inline-size: 2.5rem; block-size: 2.5rem; border-radius: 50%; background: var(--tint); color: var(--ink); }
.g-sheet-close svg { inline-size: 1.1rem; block-size: 1.1rem; }
@media (prefers-reduced-motion: no-preference) {
  .g-sheet[open] > .g-sheet-panel { animation: g-rise 0.22s ease-out; }
  @keyframes g-rise { from { transform: translateY(1.5rem); opacity: 0; } }
}

/* What is inside the place's panel. */
.g-small { margin: 0; color: var(--muted); font-size: 0.88rem; }
.g-saved fieldset { border: 0; margin: 0 0 0.6rem; padding: 0; display: grid; gap: 0.4rem; }
.g-saved legend { font-weight: 650; margin-block-end: 0.4rem; }
.g-address { display: flex; align-items: flex-start; gap: 0.6rem; padding-block: 0.55rem; padding-inline: 0.7rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.g-address:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.g-address input { margin-block-start: 0.3rem; accent-color: var(--brand); }
.g-address > span { display: grid; min-inline-size: 0; }
.g-pin-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.g-pin-actions:not(:has(:not([hidden]))) { display: none; }
.g-pin-actions svg { inline-size: 1.05rem; block-size: 1.05rem; }
.g-note:empty { display: none; }
.g-pin { display: grid; justify-items: start; gap: 0.5rem; }
.g-pin > .g-map { justify-self: stretch; }
.g-forget { margin: 0; }
.g-link { padding: 0; border: 0; background: none; color: var(--brand-text); font: inherit; font-size: 0.92rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }

/* The title, and with no place yet what one would give (Uber Eats'). */
.g-head { padding-block: 1.6rem 0.25rem; }
.g-head h1 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.35rem); }
.g-prompt { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; margin-block-start: 1rem; padding-block: 0.7rem; padding-inline: 1rem; border: 1px solid color-mix(in srgb, var(--pink) 70%, var(--surface)); border-radius: var(--radius); background: color-mix(in srgb, var(--pink) 16%, var(--surface)); }
.g-prompt > svg { flex: none; inline-size: 1.4rem; block-size: 1.4rem; color: var(--brand); }
.g-prompt p { flex: 1 1 18rem; margin: 0; font-weight: 500; }
.g-prompt-actions { display: flex; align-items: center; gap: 1rem; }

/* The list and, on a wide screen, the column of choices beside it (Deliveroo's). */
.g-main { display: grid; gap: 2.5rem; padding-block: 1.25rem 3rem; }
.g-results { min-inline-size: 0; }
.g-side { display: none; }
.g-group + .g-group { margin-block-start: 1.4rem; }
.g-group-title { margin-block: 0 0.4rem; font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.g-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.g-option { display: flex; align-items: center; gap: 0.65rem; min-block-size: 2.4rem; padding-inline: 0.5rem; border-radius: 10px; color: var(--ink); font-size: 0.95rem; text-decoration: none; }
.g-option:hover { background: var(--tint); }
.g-option[aria-current] { font-weight: 650; }
.g-option-name { flex: 1; min-inline-size: 0; }
.g-mark { position: relative; flex: none; display: grid; place-items: center; inline-size: 1.15rem; block-size: 1.15rem; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.g-check .g-mark { border-radius: 5px; }
.g-option[aria-current] .g-mark { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 0.2rem var(--surface); }
.g-check[aria-current] .g-mark { box-shadow: none; }
.g-check[aria-current] .g-mark::after { content: ''; inline-size: 0.3rem; block-size: 0.6rem; margin-block-start: -0.12rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.g-n { margin-inline-start: auto; color: var(--muted); font-size: 0.82rem; font-weight: 500; font-variant-numeric: tabular-nums; }

/* On a phone: the sheet's button, then the cuisines on a rail that scrolls sideways (Just Eat's, with their numbers). */
.g-rail { display: flex; align-items: center; gap: 0.5rem; margin-block-end: 1rem; }
.g-more { flex: none; }
.g-more-button { display: inline-flex; align-items: center; gap: 0.4rem; min-block-size: 2.4rem; padding-inline: 0.85rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-size: 0.92rem; font-weight: 600; cursor: pointer; list-style: none; white-space: nowrap; }
.g-more-button svg { inline-size: 1.1rem; block-size: 1.1rem; }
.g-more-n { display: inline-grid; place-items: center; min-inline-size: 1.3rem; block-size: 1.3rem; padding-inline: 0.3rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: 0.75rem; font-weight: 750; }
.g-more .g-sheet-panel .g-group-title { margin-block-start: 0.25rem; }
.g-chips { display: flex; gap: 0.45rem; min-inline-size: 0; padding-block: 0.15rem; overflow-x: auto; scrollbar-width: none; }
.g-chips::-webkit-scrollbar { display: none; }
.g-chips a { flex: none; display: inline-flex; align-items: center; gap: 0.35rem; min-block-size: 2.4rem; padding-inline: 0.9rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 0.92rem; font-weight: 550; text-decoration: none; white-space: nowrap; }
.g-chips a:hover { border-color: var(--ink); }
.g-chips a[aria-current] { background: var(--mulberry); border-color: var(--mulberry); color: #fff; }
.g-chips a[aria-current] .g-n { color: var(--pink); }

.g-count { margin-block: 0 1.25rem; color: var(--muted); font-size: 0.92rem; }

/* The parts of the list (Just Eat's): open now, order for later, closed. */
.g-part + .g-part { margin-block-start: 2.5rem; }
.g-part-title { display: flex; align-items: baseline; gap: 0.5rem; margin-block: 0 1rem; font-family: var(--font-body); font-size: 1.15rem; font-weight: 700; }
.g-part-title .g-n { margin-inline-start: 0; font-size: 0.9rem; }
.g-part.is-later .g-part-title { margin-block-end: 0.2rem; }
.g-part.is-later > .g-small { margin-block-end: 1rem; }

/* The cards (Uber Eats'): a wide photo, the logo on its corner, the ticket on it, the name and the facts under it. */
.g-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.9rem 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.g-card { display: block; color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.g-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.g-visual { position: relative; display: block; }
.g-photo { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: radial-gradient(circle at 78% 18%, color-mix(in srgb, var(--pink) 55%, transparent), transparent 55%), linear-gradient(135deg, #5b1d52, var(--mulberry)); }
.g-photo img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .g-photo img { transition: transform 0.35s ease; }
  .g-card:hover .g-photo img { transform: scale(1.04); }
}
.g-card:hover .g-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.g-card.is-closed .g-photo img { filter: grayscale(0.85); opacity: 0.72; }
.g-badge { position: absolute; inset-block-end: -1.35rem; inset-inline-start: 0.85rem; inline-size: 3.3rem; block-size: 3.3rem; border-radius: 50%; border: 3px solid var(--surface); background: var(--surface); object-fit: cover; box-shadow: 0 4px 12px -2px rgb(29 19 34 / 0.28); }
.g-initial { display: grid; place-items: center; background: var(--mulberry); color: #fff; font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; }

/* The ticket: white, its two halves parted by a dotted tear with a notch cut from each side - the loyalty card's stub. */
.g-ticket { --cut: 2.6rem; --notch: 0.34rem; position: absolute; inset-block-end: 0.6rem; inset-inline-end: 0.6rem; display: grid; justify-items: center; min-inline-size: 4.5rem; max-inline-size: 9.5rem; padding-inline: 0.6rem; border-radius: 10px; background: #fff; color: var(--ink); text-align: center; line-height: 1.1; filter: drop-shadow(0 4px 10px rgb(29 19 34 / 0.3)); }
.g-ticket.is-torn { background: radial-gradient(circle at 0 var(--cut), transparent var(--notch), #fff calc(var(--notch) + 0.5px)) 0 0 / 51% 100% no-repeat, radial-gradient(circle at 100% var(--cut), transparent var(--notch), #fff calc(var(--notch) + 0.5px)) 100% 0 / 51% 100% no-repeat; }
.g-ticket-top { display: grid; align-content: center; justify-items: center; block-size: var(--cut); }
.g-ticket-top b { font-size: 1.22rem; font-weight: 750; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-ticket-top small { color: var(--muted); font-size: 0.7rem; font-weight: 600; }
.g-ticket.is-opens .g-ticket-top b { font-size: 1rem; }
.g-ticket-stub { display: block; align-self: stretch; padding-block: 0.32rem 0.42rem; color: var(--brand-text); font-size: 0.72rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-ticket.is-torn .g-ticket-stub { margin-inline: 0.15rem; border-block-start: 2px dotted #d3c6d8; }
.g-ticket:not(.is-torn) .g-ticket-stub { padding-block: 0.45rem; }
.g-ticket.is-pickup .g-ticket-stub, .g-ticket.is-far .g-ticket-stub, .g-ticket.is-menu .g-ticket-stub, .g-ticket.is-closed .g-ticket-stub { color: var(--ink); }

.g-body { display: grid; gap: 0.12rem; padding-block-start: 0.4rem; }
/* The name beside the logo, which hangs over the photo's edge; the facts under both. */
.g-name { min-block-size: 1.5rem; padding-inline-start: 4.6rem; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-meta { display: block; margin-block-start: 0.3rem; color: var(--muted); font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-meta + .g-meta { margin-block-start: 0; }
.g-meta > span + span::before { content: '·'; margin-inline: 0.35rem; color: var(--muted); }
.g-stars { color: var(--ink); font-weight: 650; }
.g-star { color: var(--brand); }
.g-rated { color: var(--muted); font-weight: 400; }
.g-part.is-closed .g-name { color: var(--muted); }

/* The dishes the words found on a restaurant's menu, under its card (Uber Eats'): a thumbnail, the name, the price. */
.g-dishes { margin-block-start: 0.65rem; padding-block-start: 0.6rem; border-block-start: 1px solid var(--line); }
.g-dishes-title { margin: 0 0 0.35rem; color: var(--muted); font-size: 0.8rem; font-weight: 600; }
.g-dishes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
.g-dish { display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: 0.65rem; padding: 0.25rem; border-radius: 12px; color: var(--ink); text-decoration: none; }
.g-dish:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.g-dish:focus-visible { outline: 3px solid var(--brand); outline-offset: 1px; }
.g-dish img, .g-dish-letter { inline-size: 3rem; block-size: 3rem; border-radius: 10px; object-fit: cover; }
.g-dish-letter { display: grid; place-items: center; background: color-mix(in srgb, var(--mulberry) 12%, var(--surface)); color: var(--mulberry); font-family: var(--font-heading); font-weight: 700; }
.g-dish-text { display: grid; min-inline-size: 0; }
.g-dish-text small { color: var(--muted); font-size: 0.76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-dish-name { min-inline-size: 0; font-size: 0.92rem; font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.g-dish-price { color: var(--ink); font-size: 0.88rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-dish.is-out { color: var(--muted); }
.g-dish.is-out img { filter: grayscale(1); opacity: 0.6; }
.g-dish.is-out .g-dish-price { color: var(--muted); font-weight: 500; }
.g-dishes-more { display: inline-block; margin-block-start: 0.3rem; color: var(--brand-text); font-size: 0.85rem; font-weight: 650; }

.g-empty { padding-block: 2.5rem; padding-inline: 1.25rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; }
.g-empty h2 { font-size: 1.4rem; }
.g-empty p { color: var(--muted); margin-block: 0 1rem; }
.g-yours { margin-block: 3rem 0; padding-block-start: 1.25rem; border-block-start: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.g-yours a { color: var(--brand-text); font-weight: 600; }

/* WataDish's offers (vault P061; founder, 22 Oct 2026: "like Uber Eats"), always in the magenta. A tag drawn in line. */
.g-tag { flex: none; inline-size: 1em; block-size: 1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* On a card's photo: its top corner on the reading side, clear of the ticket (bottom, other side) and the logo (bottom). */
.g-offer { position: absolute; inset-block-start: 0.6rem; inset-inline-start: 0.6rem; display: inline-flex; align-items: center; gap: 0.3rem; max-inline-size: calc(100% - 1.2rem); padding-block: 0.28rem; padding-inline: 0.5rem 0.6rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: 0.78rem; font-weight: 700; line-height: 1.2; box-shadow: 0 4px 12px -4px rgb(29 19 34 / 0.55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-offer > span[aria-hidden] { overflow: hidden; text-overflow: ellipsis; }
.g-card.is-closed .g-offer { background: color-mix(in srgb, var(--brand) 78%, #4a3a4f); }
/* The chip on the phone's rail, before the cuisines. */
.g-chips a.g-chip-offers { gap: 0.35rem; border-color: color-mix(in srgb, var(--brand) 45%, var(--surface)); color: var(--brand-text); font-weight: 650; }
.g-chips a.g-chip-offers:hover { border-color: var(--brand); }
.g-chips a.g-chip-offers[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* The rail of offers: coupons side by side (sideways on a phone), each with its perforated stub along its foot - the
   ticket's tear, with a notch cut from each side - holding where it works and what to do. */
.g-deals { margin-block-end: 2.25rem; }
.g-deals-head { margin-block-end: 0.8rem; }
.g-deals-head .g-part-title { margin-block-end: 0.15rem; }
.g-deal-list { list-style: none; margin: 0; padding-block: 0.25rem 0.6rem; padding-inline: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(15.5rem, 1fr); gap: 0.9rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; scrollbar-width: thin; }
.g-deal { --notch: 0.5rem; --deal-line: color-mix(in srgb, var(--brand) 22%, var(--surface)); display: flex; flex-direction: column; scroll-snap-align: start; border-radius: var(--radius); background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), color-mix(in srgb, var(--pink) 20%, var(--surface))); border: 1px solid var(--deal-line); }
.g-deal.is-claimed { background: var(--surface); }
.g-deal-main { flex: 1; display: grid; align-content: start; gap: 0.3rem; padding-block: 0.9rem 0.8rem; padding-inline: 1rem; min-inline-size: 0; }
.g-deal-benefit { display: flex; align-items: center; gap: 0.4rem; margin: 0; color: var(--brand-text); font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.g-deal-title { margin: 0; font-family: var(--font-body); font-size: 0.98rem; font-weight: 650; line-height: 1.3; }
.g-deal-rules { margin: 0; color: var(--muted); font-size: 0.84rem; line-height: 1.35; }
.g-deal-where { color: var(--brand-text); font-size: 0.84rem; font-weight: 650; white-space: nowrap; }
.g-deal-stub { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.5rem; min-block-size: 3.4rem; padding-block: 0.55rem; padding-inline: 1rem 0.75rem; border-block-start: 2px dotted color-mix(in srgb, var(--brand) 35%, var(--surface)); }
/* The notches where the stub tears off, cut from both sides. */
.g-deal-stub::before, .g-deal-stub::after { content: ''; position: absolute; inset-block-start: calc(-1 * var(--notch) - 1px); inline-size: calc(2 * var(--notch)); block-size: calc(2 * var(--notch)); border-radius: 50%; background: var(--bg, var(--surface)); border: 1px solid var(--deal-line); }
.g-deal-stub::before { inset-inline-start: calc(-1 * var(--notch) - 1px); }
.g-deal-stub::after { inset-inline-end: calc(-1 * var(--notch) - 1px); }
.g-deal-stub form { margin: 0; }
.g-claim { min-block-size: 2.4rem; padding-inline: 1.1rem; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-size: 0.92rem; font-weight: 700; cursor: pointer; }
.g-claim:hover { background: var(--brand-deep); }
.g-claim:focus-visible, .g-deal-where:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.g-claim[disabled] { opacity: 0.7; cursor: progress; }
.g-claimed { display: inline-flex; align-items: center; gap: 0.3rem; margin: 0; color: var(--ink); font-size: 0.9rem; font-weight: 700; }
.g-claimed svg { inline-size: 1.1rem; block-size: 1.1rem; color: var(--brand); stroke-width: 2.6; }
.g-code { margin: 0; padding-block: 0.1rem; padding-inline: 0.45rem; border: 1px dashed var(--brand); border-radius: 6px; background: var(--surface); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86rem; font-weight: 700; letter-spacing: 0.04em; }
.g-auto { margin: 0; padding-block: 0.15rem; padding-inline: 0.5rem; border-radius: 999px; background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand-text); font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.g-deal-stub > .g-kept, .g-deal-stub > .g-auto, .g-deal-stub > form { margin-inline-start: auto; }
.g-kept { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 0.3rem 0.5rem; }
.g-deal-note { flex: 1 1 100%; }
.g-deal-note:empty { display: none; }

/* Wide enough for the place's panel to drop from its button as a popover. */
@media (min-width: 48rem) {
  .g-where .g-sheet-panel { position: absolute; inset-inline: 0 auto; inset-block: calc(100% + 0.5rem) auto; inline-size: min(27rem, calc(100vw - 2.5rem)); max-block-size: min(78vh, 40rem); padding-block: 1rem 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift); }
  .g-where[open]::before { background: transparent; }
}

/* Wide: the column of choices at the side, kept in view under the strip; the phone's rail goes. */
@media (min-width: 64rem) {
  .g-main { grid-template-columns: 14.5rem minmax(0, 1fr); gap: 2.75rem; padding-block-start: 1.5rem; }
  .g-side { display: block; position: sticky; inset-block-start: 5rem; align-self: start; max-block-size: calc(100vh - 6rem); overflow-y: auto; padding-inline-end: 0.25rem; }
  .g-rail { display: none; }
}

/* A phone: where to over two lines beside delivery or pickup, the search under both. */
@media (max-width: 47.99rem) {
  .g-strip-row { flex-wrap: wrap; gap: 0.5rem; padding-block: 0.5rem; }
  .g-where { flex: 1 1 0; }
  .g-where-button { min-block-size: 2.6rem; padding-inline: 0.7rem 0.6rem; max-inline-size: none; }
  .g-where-text { display: grid; line-height: 1.15; font-size: 0.9rem; }
  .g-where-label { font-size: 0.72rem; }
  .g-where-text strong { overflow: hidden; text-overflow: ellipsis; }
  .g-where-button { gap: 0.4rem; }
  .g-where-button > svg.g-chevron { display: none; }
  .g-modes a { min-block-size: 2.15rem; padding-inline: 0.6rem; font-size: 0.86rem; }
  .g-search { flex: 1 1 100%; }
  .g-search input { min-block-size: 2.6rem; }
  .g-head { padding-block-start: 1.2rem; }
  .g-main { padding-block-start: 1rem; }
  .g-prompt-actions { flex: 1 1 100%; justify-content: space-between; }
  .g-cards { gap: 1.75rem; }
}
