/* Rider browser discovery. These rules never own other product panels. */
body.rider-app:has([data-rider-view-panel="eat"]:not([hidden])) .shell { width: 100%; max-width: none; padding-inline: 0; }
body.rider-app .rider-eat-home { width: min(1368px, calc(100% - 96px)); max-width: none; padding: 24px 0 100px; }
.eat-discovery-toolbar { display: flex; align-items: center; gap: 32px; border-bottom: 1px solid var(--rider-line); padding-bottom: 16px; }
.eat-discovery-modes { display: flex; gap: 24px; flex-shrink: 0; }
.eat-discovery-modes button { min-height: 48px; padding: 8px 0; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--rider-ink); font: inherit; font-weight: 700; }
.eat-discovery-modes [aria-current] { border-bottom-color: var(--rider-ink); }
.eat-discovery-toolbar .rider-search { flex: 1; min-width: 0; min-height: 48px; border-radius: 24px; box-shadow: none; }
.eat-discovery-actions { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 12px; }
.eat-discovery-layout { display: grid; grid-template-columns: 272px minmax(0,1fr); gap: 64px; }
#eat-filter-host { align-self: start; position: sticky; top: calc(var(--rider-header-height, 140px) + 16px); max-height: calc(100dvh - var(--rider-header-height, 140px) - 32px); overflow-y: auto; scrollbar-gutter: stable; border: 1px solid var(--rider-line); border-radius: 12px; background: var(--rider-surface); }
.eat-filters { padding: 24px; }
.eat-filters h2 { margin: 0 0 24px; font-size: 18px; }
.eat-filters fieldset { margin: 0 0 26px; padding: 0; border: 0; min-width: 0; }
.eat-filters legend { margin-bottom: 10px; font-size: 13px; font-weight: 800; }
.eat-filters label { display: flex; gap: 10px; align-items: center; min-height: 40px; font-size: 14px; line-height: 21px; }
.eat-filters input[type=radio], .eat-filters input[type=checkbox] { width: 20px; height: 20px; min-height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--rider-ink); }
.eat-filters .eat-taxonomy-search { display: grid; gap: 8px; }
.eat-filters input[type=search] { width: 100%; min-width: 0; min-height: 42px; border: 1px solid var(--rider-line); border-radius: 21px; padding: 8px 12px; font-size: 14px; }
.eat-filters p { font-size: 12px; line-height: 18px; color: var(--rider-muted); }
.eat-discovery-results { min-width: 0; }
.eat-discovery-results h1 { margin: 0 0 24px; font-size: 30px; line-height: 1.2; }
.eat-discovery-results .eat-merchant-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px 24px; }
.eat-discovery-results .eat-merchant-card { border: 1px solid var(--rider-line); border-radius: 12px; background: var(--rider-surface); box-shadow: 0 6px 24px rgba(0, 0, 0, .05); overflow: hidden; }
.eat-discovery-results .eat-merchant-art { aspect-ratio: 16/9; min-height: 0; border-radius: 12px; }
.eat-discovery-results .eat-merchant-art > img:first-child:not(.eat-merchant-logo) { position: absolute; inset: 0; }
.eat-discovery-results .eat-merchant-copy { padding: 10px 0 0; gap: 4px; }
.eat-discovery-results .eat-merchant-copy strong { font-size: 17px; line-height: 22px; overflow-wrap: anywhere; }
.eat-discovery-results .eat-merchant-copy span { font-size: 13px; line-height: 19px; }
#eat-filters-open { display: none; min-height: 44px; padding: 8px 16px; border: 1px solid var(--rider-line); background: white; border-radius: 22px; color: var(--rider-ink); }
#eat-filter-dialog { width: min(360px,88vw); max-height: 92dvh; padding: 0; border: 0; border-radius: 18px; color: var(--rider-ink); }
#eat-filter-dialog::backdrop { background: #00000080; }
#eat-filters-close { position: sticky; bottom: 0; width: 100%; min-height: 52px; border: 0; color: white; background: var(--rider-ink); }
body:has(#eat-filter-dialog[open]) { overflow: hidden; }
@media (max-width:1439px) and (min-width:1280px) { body.rider-app .rider-eat-home { width: calc(100% - 64px); } .eat-discovery-layout { grid-template-columns:248px minmax(0,1fr); gap:40px; } }
@media (max-width:1279px) and (min-width:1024px) { body.rider-app .rider-eat-home { width:calc(100% - 48px); } .eat-discovery-layout { grid-template-columns:224px minmax(0,1fr); gap:28px; } .eat-discovery-results .eat-merchant-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .eat-discovery-toolbar { gap:20px; } .eat-discovery-modes { gap:16px; } }
@media (max-width:1023px) { body.rider-app .rider-eat-home { width:calc(100% - 48px); } .eat-discovery-layout { grid-template-columns:minmax(0,1fr); gap:0; } #eat-filter-host { display:none; } #eat-filters-open { display:block; } .eat-discovery-toolbar { display:grid; gap:16px; } .eat-discovery-modes { justify-content:space-between; gap:12px; } .eat-discovery-results .eat-merchant-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px 18px; } }
@media (max-width:767px) { body.rider-app .rider-eat-home { width:calc(100% - 32px); padding-top:16px; } .eat-discovery-results .eat-merchant-grid { gap:24px 16px; } .eat-discovery-results h1 { font-size:24px; } .eat-discovery-modes button { font-size:14px; } #eat-filter-dialog { width:100%; max-width:none; max-height:90dvh; margin:auto 0 0; border-radius:20px 20px 0 0; } }
@media (max-width:599px) { .eat-discovery-results .eat-merchant-grid { grid-template-columns:minmax(0,1fr); } .eat-discovery-modes { gap:10px; } .eat-discovery-results .eat-merchant-copy strong { font-size:16px; } }
@media (max-width:359px) { body.rider-app .rider-eat-home { width:calc(100% - 24px); } .eat-discovery-modes button { font-size:13px; } }
.eat-taxonomy-section { position:relative; margin-bottom:40px; }
.eat-taxonomy-section h2 { font-size:28px; margin:0 100px 24px 0; }
.eat-taxonomy-rail { display:flex; gap:20px; overflow-x:auto; padding:4px 2px 12px; scroll-snap-type:x proximity; }
.eat-taxonomy-rail > button { flex:0 0 112px; min-height:88px; border:1px solid var(--rider-line); border-radius:12px; padding:12px 8px; background:white; color:var(--rider-ink); font:inherit; font-size:14px; font-weight:700; scroll-snap-align:start; overflow-wrap:anywhere; }
.eat-taxonomy-rail > button[aria-pressed=true] { border:2px solid var(--rider-ink); background:var(--rider-mint); }
.eat-rail-controls { position:absolute; top:0; right:0; display:flex; gap:8px; }
.eat-rail-controls[hidden] { display:none; }
.eat-rail-controls button { width:44px; height:44px; border:1px solid var(--rider-line); border-radius:50%; background:white; color:var(--rider-ink); font-size:20px; }
.eat-rail-controls button:disabled { opacity:.4; }
@media(max-width:767px) { .eat-taxonomy-section { margin-bottom:28px; } .eat-taxonomy-section h2 { font-size:24px; } .eat-taxonomy-rail { gap:14px; } .eat-taxonomy-rail > button { flex-basis:96px; min-height:80px; } }
.eat-address-dialog{width:min(520px,calc(100% - 32px));max-height:85dvh;border:1px solid var(--line,#ddd);border-radius:16px;padding:24px;overflow:auto}
.eat-address-dialog::backdrop{background:rgb(0 0 0 / 35%)}
.eat-address-dialog label{display:grid;gap:8px}.eat-address-dialog input{min-height:44px;width:100%;box-sizing:border-box}
.eat-address-dialog .suggestion{display:block;width:100%;min-height:44px;text-align:left;white-space:normal}
.eat-merchant-fee{font-size:13px;line-height:19px}
.eat-live-rail{margin-bottom:40px;min-width:0}.eat-live-rail h2{font-size:28px;margin:0 0 20px}
.eat-live-rail-items{display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:8px}
.eat-live-rail-items button{flex:0 0 288px;min-height:112px;border:1px solid var(--line,#ddd);border-radius:12px;background:var(--surface,#fff);padding:20px;text-align:left;display:grid;gap:8px;scroll-snap-align:start}
.eat-live-rail-items span{font-size:13px}.eat-live-rail-items strong{font-size:17px}
@media(max-width:767px){.eat-live-rail h2{font-size:23px}.eat-live-rail-items button{flex-basis:min(280px,82vw)}.eat-live-rail{margin-bottom:28px}}

.rider-app .eat-address-dialog input { border: 1px solid var(--rider-line); border-radius: 12px; padding: 10px 12px; color: var(--rider-ink); background: #fff; }

/* Illustrative category photos never stand in for real merchant imagery.
   Compact image-first rail: identical square tiles filled edge-to-edge by the generated 256px square crops, short label directly beneath. */
.eat-taxonomy-rail { gap: 16px; padding: 4px 4px 16px; scroll-padding-inline: 4px; }
.eat-taxonomy-rail > button { flex: 0 0 104px; display: grid; justify-items: center; align-content: start; gap: 8px; min-height: 0; padding: 0; border: 0; border-radius: 0; background: #fff; text-align: center; }
.eat-category-media { display: grid; place-items: center; box-sizing: border-box; width: 104px; aspect-ratio: 1; padding: 0; overflow: hidden; border: 0; border-radius: 12px; background: #f5f5f5; transition: box-shadow 150ms; }
.eat-category-media img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; object-position: center; }
.eat-category-fallback { padding: 12px; color: #666; font-size: 12px; font-weight: 500; }
.eat-category-label { max-width: 100%; color: #111; font-size: 13px; font-weight: 600; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
.eat-taxonomy-rail > button:hover .eat-category-media { box-shadow: 0 2px 8px rgb(0 0 0 / 12%); }
.eat-taxonomy-rail > button[aria-pressed=true] { border: 0; background: #fff; }
.eat-taxonomy-rail > button[aria-pressed=true] .eat-category-media { box-shadow: 0 0 0 2px #111; }
.eat-taxonomy-rail > button[aria-pressed=true] .eat-category-label { font-weight: 750; }
.eat-taxonomy-rail > button:focus-visible { outline: 3px solid #111; outline-offset: 1px; border-radius: 12px; }
@media (max-width: 767px) { .eat-taxonomy-rail { gap: 12px; } .eat-taxonomy-rail > button { flex-basis: 88px; } .eat-category-media { width: 88px; } .eat-category-label { font-size: 12px; } }
