.eat-merchant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.eat-merchant-card { min-width: 0; padding: 0; overflow: hidden; border: 1px solid var(--rider-line); border-radius: var(--rider-radius); color: var(--rider-ink); background: white; text-align: left; box-shadow: 0 12px 32px rgba(0, 0, 0, .06); }
.eat-merchant-art { display: grid; min-height: 142px; place-items: center; color: var(--rider-green); background: #fff; }
.eat-merchant-art .rider-icon { width: 42px; height: 42px; }
.eat-merchant-art { position: relative; overflow: hidden; }
.eat-merchant-art > img:first-child:not(.eat-merchant-logo) { width: 100%; height: 100%; object-fit: cover; }
.eat-merchant-logo { position: absolute; left: 12px; bottom: 12px; width: 54px; height: 54px; border: 3px solid #fff; border-radius: 14px; object-fit: cover; background: #fff; box-shadow: 0 7px 22px rgba(0, 0, 0, .22); }
.eat-merchant-cover { width: 100%; max-height: 300px; aspect-ratio: 16 / 6; border-radius: 18px; object-fit: cover; }
.eat-merchant-heading { display: flex; gap: 14px; align-items: center; margin-top: 16px; }
.eat-merchant-heading > img { width: 70px; height: 70px; border: 1px solid var(--rider-line); border-radius: 18px; object-fit: cover; }
.eat-merchant-heading h1, .eat-merchant-heading p { margin-block: 3px; }
.eat-merchant-copy { display: grid; gap: 5px; padding: 17px; }
.eat-merchant-copy strong { font-size: 18px; }
.eat-merchant-copy span { color: var(--rider-muted); font-size: 13px; }
.eat-merchant-labels { display: flex; flex-wrap: wrap; gap: 5px; }
.eat-sponsored-label, .eat-new-label { width: max-content; padding: 3px 7px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 750; letter-spacing: .02em; }
.eat-sponsored-label { background: var(--rider-teal-soft, #f7f7f7); color: var(--rider-teal, #111111); }
.eat-new-label { background: #fff3cf; color: #785900; }
.eat-detail-sheet { position: relative; margin-top: 24px; padding: clamp(20px, 4vw, 38px); border: 1px solid var(--rider-line); border-radius: var(--rider-radius-lg); background: white; box-shadow: var(--rider-shadow); }
.eat-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.eat-back { display: inline-flex; min-height: var(--rider-touch); align-items: center; gap: 7px; border: 0; color: var(--rider-green); background: transparent; font-weight: 800; }
.eat-menu-section { margin-top: 28px; }
.eat-menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.eat-item { display: grid; grid-template-columns: 1fr auto; gap: 14px; min-height: 116px; padding: 17px; border: 1px solid var(--rider-line); border-radius: 19px; color: var(--rider-ink); background: #fff; text-align: left; }
.eat-item strong, .eat-item span { display: block; }
.eat-item p { margin: 6px 0 0; color: var(--rider-muted); font-size: 13px; }
.eat-item-price { font-weight: 850; white-space: nowrap; }
.eat-item:disabled { opacity: .55; }
.eat-item-dialog { width: min(92vw, 520px); padding: 0; border: 0; border-radius: 28px; color: var(--rider-ink); box-shadow: 0 26px 80px rgba(0, 0, 0, .25); }
.eat-item-dialog::backdrop { background: rgba(0, 0, 0, .48); backdrop-filter: blur(4px); }
.eat-item-dialog-body { padding: 28px; }
.eat-item-dialog-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 24px; }
.eat-cart-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rider-line); }
.eat-quantity { display: flex; align-items: center; gap: 9px; }
.eat-quantity button { width: var(--rider-touch); height: var(--rider-touch); border: 1px solid var(--rider-line); border-radius: 50%; color: var(--rider-ink); background: white; }
.eat-total-row { display: flex; justify-content: space-between; gap: 16px; margin: 18px 0; font-size: 18px; }
.eat-cart-dock { position: fixed; z-index: 70; right: 18px; bottom: calc(94px + env(safe-area-inset-bottom)); display: flex; min-height: 52px; align-items: center; gap: 10px; padding: 0 17px; border: 0; border-radius: 18px; color: white; background: var(--rider-ink); box-shadow: 0 16px 38px rgba(0, 0, 0, .24); font-weight: 800; }
.eat-cart-dock strong { display: grid; min-width: 24px; height: 24px; place-items: center; border-radius: 50%; color: var(--rider-ink); background: white; font-size: 12px; }
.eat-checkout-form { display: grid; gap: 15px; }
.eat-checkout-form label { display: grid; gap: 6px; color: var(--rider-ink); font-weight: 750; }
.eat-checkout-form input, .eat-checkout-form textarea { width: 100%; min-height: var(--rider-touch); padding: 12px 14px; border: 1px solid var(--rider-line); border-radius: 14px; color: var(--rider-ink); background: white; }
.eat-checkout-summary { margin-top: 20px; padding: 18px; border-radius: 18px; background: var(--rider-mint); }
.eat-checkout-summary div { display: flex; justify-content: space-between; gap: 14px; margin-top: 8px; }
@media (max-width: 767px) { .eat-merchant-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .eat-merchant-art { min-height: 105px; } .eat-merchant-copy { padding: 13px; } .eat-menu-grid { grid-template-columns: 1fr; } }
.eat-item-image { width: 92px; aspect-ratio: 1; object-fit: cover; border-radius: 14px; flex: 0 0 auto; }
.eat-item-dialog-image { width: 100%; max-height: 320px; object-fit: cover; border-radius: 16px; }
.eat-item-options { display: grid; gap: 14px; margin-top: 16px; }
.eat-item-options fieldset { display: grid; gap: 9px; border: 1px solid var(--border, #dedede); border-radius: 14px; padding: 14px; }
.eat-item-options label { min-height: 44px; display: flex; align-items: center; gap: 10px; }
.eat-campaigns { display: grid; gap: 10px; margin: 20px 0; }
.eat-campaigns h2 { margin: 0; font-size: 1.05rem; }
.eat-campaign { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--line, #dedede); border-radius: 14px; background: var(--surface, #fff); color: inherit; text-align: left; font: inherit; font-weight: 700; cursor: pointer; }
.eat-campaign:hover, .eat-campaign:focus-visible { border-color: var(--brand, #111111); outline: 3px solid color-mix(in srgb, var(--brand, #111111) 22%, transparent); outline-offset: 2px; }
.eat-campaign.is-selected { border-color: var(--brand, #111111); background: color-mix(in srgb, var(--brand, #111111) 10%, var(--surface, #fff)); }
/* Rider browser merchant layout. Shared Partner menu primitives stay unchanged. */
body.rider-app #eat-merchant-view{padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;margin-top:0}
#eat-merchant-view .eat-detail-top{margin-bottom:20px}
#eat-merchant-view .eat-merchant-heading{gap:24px;padding:28px 0 32px;margin:0;align-items:flex-start}
#eat-merchant-view .eat-merchant-heading>img{width:164px;height:164px;object-fit:contain;border-radius:12px;background:white}
#eat-merchant-view .eat-merchant-heading h1{font-size:36px;line-height:1.12;overflow-wrap:anywhere}
#eat-merchant-view .eat-merchant-heading>div{min-width:0}
#eat-merchant-view .eat-merchant-cover{display:none}
#eat-merchant-view .eat-merchant-actions{display:flex;gap:16px;flex-wrap:wrap;margin-top:12px}
#eat-merchant-view .eat-merchant-actions button{min-height:44px;border:0;background:transparent;text-decoration:underline;font:inherit;font-size:14px;font-weight:700;color:var(--rider-ink)}
.eat-merchant-layout{display:grid;grid-template-columns:minmax(0,1fr) 368px;gap:32px;align-items:start}
.eat-merchant-main{min-width:0}
.eat-desktop-cart{position:sticky;top:calc(var(--rider-header-height,104px) + 16px);max-height:calc(100dvh - var(--rider-header-height,104px) - 32px);overflow:auto;scrollbar-gutter:stable;border:1px solid var(--rider-line);border-radius:12px;background:white;padding:20px;min-width:0}
.eat-desktop-cart h2{font-size:22px;margin:0 0 14px}.eat-desktop-cart .eat-cart-row>div{min-width:0;overflow-wrap:anywhere}.eat-desktop-cart .eat-cart-note{font-size:13px;line-height:1.5}
#eat-merchant-view .b-eat-menu-nav{top:var(--rider-header-height,104px);display:grid;grid-template-columns:250px minmax(0,1fr);align-items:center;gap:12px;min-height:64px;box-sizing:border-box}
#eat-merchant-view .b-eat-menu-search{min-width:0;margin:0}#eat-merchant-view .b-eat-menu-search input{width:100%;box-sizing:border-box;min-height:44px}
#eat-merchant-view .b-eat-subcategory-tabs{grid-column:1/-1}
#eat-merchant-view .b-menu-grid:not(.b-menu-spotlight-grid){grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#eat-merchant-view .b-menu-card-body{min-height:160px}
#eat-merchant-view .b-menu-card-image{width:136px;height:136px;flex-basis:136px}
#eat-merchant-view .b-menu-card-description{font-size:14px;line-height:21px}
#eat-merchant-view .b-menu-spotlight-grid{grid-auto-columns:208px;gap:18px}
#eat-merchant-view .b-menu-card-spotlight .b-menu-card-body{min-height:300px}
#eat-merchant-view .b-menu-card-spotlight .b-menu-card-image{width:100%;height:192px;flex-basis:192px}
#eat-merchant-view .eat-campaigns{display:flex;gap:18px;overflow:auto;flex-wrap:wrap;margin-bottom:28px}
#eat-merchant-view .eat-campaigns h2{flex:0 0 100%}
#eat-merchant-view .eat-campaigns button{flex:0 0 296px;min-height:108px;border-radius:12px;padding:18px;text-align:left}
body:has(#eat-merchant-view:not(.hidden)) .eat-cart-dock{display:none}
@media(min-width:1024px) and (max-width:1279px){.eat-merchant-layout{grid-template-columns:minmax(0,1fr) 320px;gap:28px}#eat-merchant-view .b-menu-grid:not(.b-menu-spotlight-grid){grid-template-columns:minmax(0,1fr)}#eat-merchant-view .b-eat-menu-nav{grid-template-columns:minmax(0,1fr)}}
@media(max-width:1023px){.eat-merchant-layout{grid-template-columns:minmax(0,1fr)}.eat-desktop-cart{display:none}body:has(#eat-merchant-view:not(.hidden)) .eat-cart-dock:not(.hidden){display:flex}#eat-merchant-view .eat-merchant-heading>img{width:120px;height:120px}#eat-merchant-view .b-eat-menu-nav{grid-template-columns:minmax(0,1fr)}#eat-merchant-view .b-menu-card-image{width:104px;height:104px;flex-basis:104px}}
@media(max-width:767px){#eat-merchant-view .eat-merchant-heading{padding:20px 0;gap:16px}#eat-merchant-view .eat-merchant-heading>img{width:96px;height:96px}#eat-merchant-view .eat-merchant-heading h1{font-size:29px}#eat-merchant-view .b-menu-grid:not(.b-menu-spotlight-grid){grid-template-columns:minmax(0,1fr)}#eat-merchant-view .b-menu-card-body{min-height:132px}#eat-merchant-view .eat-campaigns{flex-wrap:nowrap}#eat-merchant-view .eat-campaigns h2{flex:0 0 auto}}
@media(max-width:599px){#eat-merchant-view .eat-merchant-heading{flex-direction:column}#eat-merchant-view .eat-merchant-heading>img{width:84px;height:84px}#eat-merchant-view .eat-merchant-heading h1{font-size:27px}#eat-cart-view{min-height:70dvh;padding:16px;border-radius:12px}#eat-merchant-view .b-menu-card-body{padding:12px;gap:12px}}
#eat-merchant-view .eat-merchant-heading h1{max-width:none}
#eat-merchant-view .eat-merchant-heading>div{flex:1}
.eat-group-panel{border:1px solid var(--rider-line);border-radius:12px;padding:20px;background:white;margin-bottom:24px;overflow-wrap:anywhere}
.eat-group-line{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--rider-line)}
.eat-group-controls{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}.eat-group-panel input{max-width:100%;box-sizing:border-box;min-height:44px}.eat-group-panel button{min-height:44px}.eat-group-panel>input{width:100%}
@media(max-width:599px){.eat-group-line{flex-wrap:wrap}.eat-group-line>span{flex-basis:100%}}

.rider-app .eat-fulfillment-selector { display:flex; gap:4px; padding:4px; border:1px solid var(--rider-line,#dedede); border-radius:12px; }
.rider-app .eat-fulfillment-selector button, #eat-merchant-view .eat-merchant-actions .eat-fulfillment-selector button { flex:1; min-height:44px; padding:8px 16px; border-radius:8px; border:0; background:transparent; font:inherit; text-decoration:none; }
.rider-app .eat-fulfillment-selector button[aria-pressed="true"], #eat-merchant-view .eat-merchant-actions .eat-fulfillment-selector button[aria-pressed="true"] { background:var(--rider-ink,#111111); color:#fff; }

/* Shared menu primitives are recolored only in the Rider customer runtime. */
.rider-app {
  --po-line: #dedede;
  --po-line-strong: #bdbdbd;
  --po-surface: #fff;
  --po-surface-2: #f7f7f7;
  --po-text: #111;
  --po-muted: #666;
  --po-teal: #111;
}
.rider-app .b-eat-menu-nav { border-color: #dedede; }
.rider-app .b-eat-menu-nav button { color: #666; }
.rider-app .b-eat-menu-nav button[aria-selected=true] { border-bottom-color: #111111; color: #111; }
.rider-app .b-eat-menu-search input { border-color: #dedede; color: #111; }
.rider-app .b-eat-product-dialog { border-color: #dedede; color: #111; }
.rider-app .b-eat-product-dialog::backdrop { background: rgb(0 0 0 / 47%); }
.rider-app .b-eat-dialog-head, .rider-app .b-eat-choice-group, .rider-app .b-eat-choice-option, .rider-app .b-eat-dialog-footer { border-color: #dedede; }
.rider-app .b-eat-dialog-head button { background: #f7f7f7; color: #111; }
.rider-app .b-eat-choice-group summary small, .rider-app .b-eat-choice-option small { color: #666; }
.rider-app .b-eat-choice-option input { accent-color: #111; }
.rider-app .b-eat-dialog-footer button { background: #111; }
.rider-app .b-eat-dialog-footer button:hover { background: #2a2a2a; }
.rider-app .b-menu-card-more>div { box-shadow: 0 8px 25px rgb(0 0 0 / 11%); }
