/* Shared Bistam menu presentation; scoped to the Eat / Partner menu only. */
.b-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:0}
.b-menu-card{position:relative;min-width:0;border:1px solid var(--po-line,#dce4e1);border-radius:12px;background:var(--po-surface,#fff);color:var(--po-text,#18332b);overflow:visible}
.b-menu-card .b-menu-card-body{appearance:none;display:flex;align-items:flex-start;gap:14px;width:100%;min-height:130px;border:0;border-radius:12px;padding:16px;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer;box-shadow:none}
.b-menu-card .b-menu-card-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:7px}
.b-menu-card-copy strong{font-size:1rem;line-height:1.35;overflow-wrap:anywhere}
.b-menu-card-price{font-size:.94rem;font-weight:650}
.b-menu-card .b-menu-card-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.86rem;line-height:1.45;color:var(--po-muted,#64726c)}
.b-menu-card .b-menu-card-image{width:100px;height:100px;flex:0 0 100px;border-radius:9px;object-fit:contain;background:var(--po-surface-2,#f7f9f8)}
.b-menu-no-image{opacity:.4}
.b-menu-card-body:disabled{cursor:default;opacity:.65}
.b-menu-card-body:focus-visible,.b-menu-card-tools button:focus-visible{outline:3px solid var(--po-teal,#008b78);outline-offset:2px}
.b-menu-edit-label{position:absolute;top:7px;right:9px;font-size:.72rem;background:var(--po-surface,#fff);color:var(--po-teal,#008b78);padding:3px 6px;border-radius:5px;opacity:0}
.b-menu-card:hover .b-menu-edit-label,.b-menu-card:focus-within .b-menu-edit-label{opacity:1}
.b-menu-card-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 12px 9px}
.b-menu-card-tools button,.b-menu-card-more summary{min-height:36px}
.b-menu-card-more{position:relative}
.b-menu-card-more summary{cursor:pointer;list-style:none;display:grid;place-items:center;width:40px;font-size:1.2rem}
.b-menu-card-more>div{position:absolute;right:0;top:100%;z-index:5;display:grid;min-width:160px;padding:8px;background:var(--po-surface,#fff);border:1px solid var(--po-line,#dce4e1);border-radius:10px;box-shadow:0 8px 25px #12251b1c}
.b-menu-card-more button{padding:9px;border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}
.b-menu-section{margin:24px 0 32px;scroll-margin-top:160px}
.b-menu-section-heading{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:14px}
.b-menu-section-heading h3{margin:0 0 6px;font-size:1.2rem}
.b-menu-section-heading small{color:var(--po-muted,#64726c)}
.b-menu-section-actions{display:flex;align-items:center;gap:8px}
.b-menu-category-empty{grid-column:1/-1;border:1px dashed var(--po-line,#dce4e1);border-radius:12px;padding:22px}
.b-menu-spotlight-grid{display:grid;grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:minmax(160px,24%);overflow-x:auto;padding:3px 3px 10px;scroll-snap-type:x proximity}
.b-menu-spotlight-grid .b-menu-category-empty{grid-column:auto;min-width:290px}
.b-menu-card-spotlight{scroll-snap-align:start}
.b-menu-card-spotlight .b-menu-card-body{flex-direction:column;min-height:225px}
.b-menu-card-spotlight .b-menu-card-image{order:-1;width:100%;height:135px;flex-basis:135px}
.b-menu-card-spotlight .b-menu-card-description{display:none}
.b-menu-card[hidden],.b-menu-grid[hidden],.b-menu-section [hidden],.b-eat-menu-nav [hidden],.eat-menu-section[hidden],.po-composer-main[hidden],.po-choice-picker[hidden],.po-choice-group [hidden],.po-product-composer [hidden],.b-eat-menu-no-results[hidden]{display:none!important}

/* Customer navigation: touch-first horizontal choices, one category at a time on phones. */
.b-eat-menu-nav{position:sticky;top:0;z-index:20;padding:10px 0;background:var(--surface,#fff);border-block:1px solid #e4ebe7;min-width:0}
.b-eat-category-tabs,.b-eat-subcategory-tabs{display:flex;gap:18px;overflow-x:auto;white-space:nowrap;scrollbar-width:thin;min-width:0}
.b-eat-menu-nav button{flex:none;min-height:44px;appearance:none;border:0;border-bottom:3px solid transparent;padding:8px 3px;background:none;color:#4c5b53;font:inherit;font-size:.92rem;cursor:pointer}
.b-eat-menu-nav button[aria-selected=true]{border-bottom-color:#008b78;color:#006f60;font-weight:700}
.b-eat-menu-search{display:block;margin-bottom:6px}
.b-eat-menu-search input{box-sizing:border-box;width:min(100%,320px);min-height:42px;border:1px solid #dce4e1;border-radius:9px;padding:9px 12px;font:inherit;background:#fff;color:#18332b}
.b-eat-menu-nav~.eat-menu-content .eat-menu-section{margin-block:22px;scroll-margin-top:155px}
.b-eat-menu-nav~.eat-menu-content .eat-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.b-eat-menu-nav~.eat-menu-content [data-smart-menu-section] .eat-menu-grid,.b-eat-menu-nav~.eat-menu-content .b-menu-spotlight-grid{grid-auto-flow:column;grid-template-columns:none;grid-auto-columns:minmax(160px,24%);overflow-x:auto;padding-bottom:12px}
.rider-sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* One existing Partner popup. Additional controls remain within it, never a second page. */
.po-product-dialog{width:min(720px,calc(100vw - 24px));max-height:calc(100dvh - 28px)}
.po-product-dialog #partner-dialog-content{overflow-y:auto;max-height:calc(100dvh - 220px)}
.po-product-dialog #partner-dialog-actions{position:sticky;bottom:0;background:var(--po-surface,#fff);z-index:2;padding-bottom:max(12px,env(safe-area-inset-bottom))}
.po-product-composer{display:block;min-width:0}
.po-composer-main>label,.po-product-composer label{display:grid;gap:7px;font-size:.92rem;font-weight:550;min-width:0}
.po-composer-main{display:grid;gap:16px}
.po-product-composer input:not([type=checkbox]):not([type=radio]):not([type=range]),.po-product-composer textarea,.po-product-composer select{box-sizing:border-box;width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--po-line,#dce4e1);border-radius:9px;background:var(--po-surface,#fff);color:inherit;font:inherit}
.po-product-composer input[type=checkbox],.po-product-composer input[type=radio]{width:20px;height:20px;accent-color:var(--po-teal,#008b78)}
.po-composer-price{display:grid;grid-template-columns:minmax(0,1fr) minmax(95px,.5fr);gap:16px}
.po-composer-image .po-media-drop{min-height:110px;width:100%;border:1px dashed var(--po-line-strong,#bccdc4);border-radius:12px;background:var(--po-surface-2,#f7f9f8)}
.po-composer-image img{max-width:100%;max-height:170px;object-fit:contain}
.po-choice-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:4px}
.po-choice-heading h3{margin:0}
.po-choice-group{margin:0 0 12px;border:1px solid var(--po-line,#dce4e1);border-radius:12px}
.po-choice-group>summary{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:10px;min-height:48px;padding:12px;cursor:pointer}
.po-choice-group>summary span{font-size:.82rem;color:var(--po-muted,#64726c)}
.po-choice-group-content{display:grid;gap:14px;padding:0 12px 14px}
.po-choice-group [data-choice-limits]{display:flex;align-items:center;gap:12px}
.po-choice-group [data-choice-limits]>label{max-width:160px}
.po-choice-option{display:grid;grid-template-columns:minmax(0,1fr) 115px;gap:8px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid var(--po-line,#e4ebe7)}
.po-choice-option label{font-size:.82rem}
.po-choice-option .po-choice-active{display:flex;align-items:center;gap:8px}
.po-choice-option>button{justify-self:end;min-width:44px;min-height:36px;border:0;border-radius:7px;background:var(--po-surface-2,#f7f9f8);color:inherit;cursor:pointer}
.po-choice-actions{display:flex;gap:10px;flex-wrap:wrap}
.po-composer-more{border-top:1px solid var(--po-line,#dce4e1);padding-block:12px}
.po-composer-more>summary{min-height:40px;cursor:pointer;font-weight:650}
.po-composer-more-fields{display:grid;gap:16px;padding-block:12px}
.po-composer-more-fields>label:has(input[type=checkbox]){display:flex;align-items:center;gap:8px}
.po-choice-picker{min-width:0}
.po-choice-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0}
.po-choice-template-grid button,.po-choice-source-actions button{min-height:56px;padding:14px;text-align:left;font:inherit;color:var(--po-text,#18332b);border:1px solid var(--po-line,#dce4e1);border-radius:10px;background:var(--po-surface,#fff);cursor:pointer}
.po-choice-template-grid button:hover,.po-choice-source-actions button:hover{border-color:var(--po-teal,#008b78)}
.po-choice-source-actions{display:grid;gap:10px}
.po-choice-picker>label{margin-block:12px}
.po-choice-picker [data-choice-list]{max-height:42dvh;overflow-y:auto;margin-block:14px}
.po-choice-candidate{display:flex!important;flex-direction:row;align-items:center;gap:12px!important;padding:12px 4px;border-bottom:1px solid var(--po-line,#e4ebe7);min-height:44px}
.po-choice-candidate>span{flex:1;min-width:0;overflow-wrap:anywhere}
.po-choice-candidate strong,.po-choice-candidate small{display:block}
.po-choice-candidate small{font-size:.78rem;color:var(--po-muted,#64726c)}
.po-composer-message{color:var(--po-teal,#007460);font-size:.88rem}

/* Customer product popup: compact choices, persistent total/action, unchanged authoritative checkout. */
.b-eat-product-dialog{width:min(580px,calc(100vw - 20px));max-height:calc(100dvh - 24px);border:1px solid #dce4e1;border-radius:18px;padding:0;background:#fff;color:#18332b}
.b-eat-product-dialog::backdrop{background:#10251c77}
.b-eat-dialog-form{display:flex;flex-direction:column;max-height:calc(100dvh - 28px);margin:0}
.b-eat-dialog-head{display:flex;gap:16px;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #e4ebe7}
.b-eat-dialog-head h2{margin:0;font-size:1.3rem;overflow-wrap:anywhere}
.b-eat-dialog-head button{min-width:44px;min-height:44px;border:0;border-radius:50%;background:#f2f6f3;font-size:1.5rem;cursor:pointer}
.b-eat-dialog-scroll{overflow-y:auto;padding:16px 20px;min-height:0}
.b-eat-dialog-image{display:block;width:100%;max-height:170px;object-fit:contain;border-radius:12px}
.b-eat-choice-group{margin:14px 0;border:1px solid #dce4e1;border-radius:10px}
.b-eat-choice-group summary{display:flex;flex-wrap:wrap;gap:6px 12px;padding:12px;cursor:pointer}
.b-eat-choice-group summary strong{flex:1}
.b-eat-choice-group summary span{font-size:.83rem}
.b-eat-choice-group summary small{display:block;flex-basis:100%;color:#64726c}
.b-eat-choice-group fieldset{border:0;margin:0;padding:0 12px 8px}
.b-eat-choice-option{display:flex;align-items:center;gap:12px;min-height:48px;border-top:1px solid #eef2ef}
.b-eat-choice-option input{accent-color:#008b78;width:20px;height:20px;flex:0 0 20px}
.b-eat-choice-option span{flex:1}
.b-eat-choice-option small{color:#64726c;white-space:nowrap}
.b-eat-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px max(14px,env(safe-area-inset-bottom));border-top:1px solid #dce4e1;background:#fff}
.b-eat-dialog-footer button{min-height:46px;min-width:140px;background:#008b78;color:#fff;border:0;border-radius:10px;font:inherit;font-weight:650;cursor:pointer}
.b-eat-dialog-scroll .eat-item-validation{color:#a12626}
@media(max-width:760px){
 .b-menu-grid,.b-eat-menu-nav~.eat-menu-content .eat-menu-grid{grid-template-columns:minmax(0,1fr)}
 .b-menu-card .b-menu-card-body{min-height:118px;padding:13px;gap:12px}
 .b-menu-card .b-menu-card-image{width:86px;height:86px;flex-basis:86px}
 .b-menu-spotlight-grid,.b-eat-menu-nav~.eat-menu-content [data-smart-menu-section] .eat-menu-grid,.b-eat-menu-nav~.eat-menu-content .b-menu-spotlight-grid{grid-auto-columns:155px;grid-template-columns:none}
 .b-menu-card-spotlight .b-menu-card-image{width:100%;height:125px;flex-basis:125px}
 .b-menu-section-heading{align-items:flex-start;flex-wrap:wrap}
 .b-menu-edit-label{opacity:1}
 .b-eat-menu-nav{padding-top:6px}
 .b-eat-menu-search input{width:100%}
 .po-choice-template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .po-product-dialog #partner-dialog-content{max-height:calc(100dvh - 195px)}
 .po-choice-option{grid-template-columns:minmax(0,1fr) 95px}
 .po-choice-group [data-choice-limits]{flex-wrap:wrap}
}
