/* Scoped opt-in: Apollos PDV, without changing the shared shell or other accounts. */
#rest-pdv-mount .fp-pdv{--fp-accent:var(--ff-accent,var(--food-ui-action,#e11d48));--fp-line:#eee7ea;--fp-muted:#867a80;--fp-ink:#292326;max-width:1180px;margin:auto;color:var(--fp-ink)}
#rest-pdv-mount .fp-pdv *{box-sizing:border-box}
html.food-app-layout #rest-pdv-mount>.fp-pdv{max-width:1180px!important;margin:0 auto!important}
#rest-pdv-mount .fp-pdv [hidden]{display:none!important}
#rest-pdv-mount .fp-pdv svg{width:20px;height:20px;flex-shrink:0}
#rest-pdv-mount .fp-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;align-items:start;gap:28px}
#rest-pdv-mount .fp-catalog{min-width:0;display:flex;flex-direction:column;gap:0}
#rest-pdv-mount .fp-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:5px;gap:4px;background:#f6f3f5;border:1px solid #f0e9ed;border-radius:17px;margin:0 0 22px}
#rest-pdv-mount .fp-modes button{display:flex;align-items:center;justify-content:center;gap:8px;border:0;background:none;color:#7d6f77;min-height:46px;border-radius:12px;font-size:13px;font-weight:600;line-height:1.3;padding:10px 6px;cursor:pointer}
#rest-pdv-mount .fp-modes button[aria-pressed=true]{color:var(--fp-accent)!important;background:#fff!important;box-shadow:0 2px 7px #4626340d}
#rest-pdv-mount .fp-tools{display:flex;flex-direction:column;gap:10px;margin:0 0 18px;order:0}
#rest-pdv-mount .fp-search{display:flex;align-items:center;gap:10px;border:1px solid var(--fp-line);border-radius:14px;background:#fff;padding:0 15px;color:#95878f;min-height:50px}
#rest-pdv-mount .fp-search:focus-within{border-color:var(--fp-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--food-ui-action,rgb(225 29 72)) 3.922%, transparent)}
#rest-pdv-mount .fp-search input{width:100%;min-width:0;height:48px;font-size:16px;color:var(--fp-ink);background:none;border:0;border-radius:0;box-shadow:none;padding:0;outline:0}
#rest-pdv-mount .fp-search input::placeholder{color:#9b8e95;font-size:14px}
#rest-pdv-mount .fp-filters{display:flex;gap:8px;overflow-x:auto;max-width:100%;scrollbar-width:none;padding:0 0 3px}
#rest-pdv-mount .fp-filters::-webkit-scrollbar{display:none}
#rest-pdv-mount .fp-filters button{flex:none;min-height:38px;padding:8px 15px;border:1px solid var(--fp-line);border-radius:50px;background:#fff;color:#82737b;font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap}
#rest-pdv-mount .fp-filters button[aria-pressed=true]{background:var(--food-ui-surface,#fff1f4);color:var(--fp-accent);border-color:var(--food-ui-soft,#f3c7d3)}
#rest-pdv-mount .fp-catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:0}
#rest-pdv-mount .fp-catalog-heading h3{font-size:20px;letter-spacing:-.03em;font-weight:750;margin:0}
#rest-pdv-mount .fp-result{margin:0;font-size:11px;color:var(--fp-muted)}
#rest-pdv-mount .fp-products{display:grid;gap:26px;margin:0}
#rest-pdv-mount .fp-category>h3{font-size:13px;text-transform:none;font-weight:650;letter-spacing:0;color:#7a6871;margin:0 0 12px}
#rest-pdv-mount .fp-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#rest-pdv-mount .fp-product{display:flex;flex-direction:column;text-align:left;min-width:0;padding:0;overflow:hidden;border-radius:17px;border:1px solid var(--fp-line);background:#fff;color:var(--fp-ink);box-shadow:0 2px 7px #47213703;cursor:pointer;transition:border-color 160ms,transform 160ms}
#rest-pdv-mount .fp-photo{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1.4;background:#f8f4f2;color:#b8a8a0;width:100%;overflow:hidden}
#rest-pdv-mount .fp-photo>svg{width:34px;height:34px}
#rest-pdv-mount .fp-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#rest-pdv-mount .fp-quantity{position:absolute;right:7px;bottom:7px;background:#fff;color:var(--fp-accent);padding:4px 7px;border:1px solid var(--food-ui-soft,#f5e7ec);border-radius:8px;font-size:10px;font-weight:700;box-shadow:0 2px 6px #0000000c}
#rest-pdv-mount .fp-product-copy{display:flex;flex-direction:column;justify-content:space-between;gap:12px;padding:13px;width:100%;flex:1}
#rest-pdv-mount .fp-name{display:block;white-space:normal;overflow-wrap:anywhere;font-size:13px;font-weight:650;line-height:1.45;min-height:38px}
#rest-pdv-mount .fp-product-foot{display:flex;justify-content:space-between;align-items:center;gap:5px}
#rest-pdv-mount .fp-price{font-size:14px;font-weight:750;white-space:nowrap;letter-spacing:-.025em;color:var(--fp-accent)}
#rest-pdv-mount .fp-add{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border:1px solid var(--food-ui-soft,#f9dce5);background:var(--food-ui-surface,#fff3f6);border-radius:10px;color:var(--fp-accent);flex-shrink:0}
#rest-pdv-mount .fp-add svg{width:16px;height:16px}
#rest-pdv-mount .fp-product:active{transform:scale(.98)}
#rest-pdv-mount .fp-pdv button:focus-visible{outline:2px solid var(--fp-accent);outline-offset:3px}
#rest-pdv-mount .fp-no-results{display:flex;flex-direction:column;align-items:center;text-align:center;padding:38px 18px;border:1px dashed var(--fp-line);border-radius:16px;color:var(--fp-muted);gap:12px}
#rest-pdv-mount .fp-no-results strong{font-size:15px;color:var(--fp-ink)}
#rest-pdv-mount .fp-no-results p{font-size:13px;margin:0}
#rest-pdv-mount .fp-cart{position:sticky;top:8px;width:100%;min-width:0;max-width:100%;border:1px solid var(--fp-line);background:#fff;border-radius:20px;padding:16px;scroll-margin-top:16px;box-shadow:0 4px 18px #47213704}
#rest-pdv-mount .fp-cart-heading{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:700;margin:0;padding:0 0 14px;border-bottom:1px solid var(--fp-line)}
#rest-pdv-mount .fp-cart-heading>svg{color:var(--fp-accent)}
#rest-pdv-mount .fp-cart-heading small{margin-left:auto;display:grid;place-items:center;min-height:26px;padding:4px 8px;font-size:10px;font-weight:650;white-space:nowrap;border-radius:8px;background:var(--food-ui-surface,#fff1f5);color:var(--fp-accent)}
#rest-pdv-mount .fp-cart-lines{max-height:45vh;min-height:0;flex:0 0 auto;overflow-y:auto}
#rest-pdv-mount .fp-cart-lines>.fp-cart-line{display:grid;grid-template-columns:52px minmax(0,1fr) 44px;gap:10px;align-items:center;padding:14px 0;margin:0;border:0;border-bottom:1px solid var(--fp-line);font-size:13px}
#rest-pdv-mount .fp-cart-lines>.fp-cart-line:last-child{border-bottom:0}
#rest-pdv-mount .fp-line-photo{position:relative;width:52px;height:58px;display:grid;place-items:center;border-radius:11px;overflow:hidden;background:#f8f4f2;color:#b8a8a0}
#rest-pdv-mount .fp-line-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#rest-pdv-mount .fp-line-copy{display:flex;flex-direction:column;gap:3px;min-width:0;line-height:1.4}
#rest-pdv-mount .fp-line-copy strong{font-size:13px;font-weight:650;overflow-wrap:anywhere;color:var(--fp-ink)}
#rest-pdv-mount .fp-line-unit{font-size:11px;color:var(--fp-muted)}
#rest-pdv-mount .fp-line-price{font-size:14px;font-weight:750;white-space:nowrap;color:var(--fp-ink)}
#rest-pdv-mount .fp-cart-lines [data-rest-rm]{display:grid;place-items:center;min-width:44px;min-height:44px;padding:10px;border:0;border-radius:11px;color:#947882;background:#faf6f8;cursor:pointer}
#rest-pdv-mount .fp-cart-lines [data-rest-rm] svg{width:17px;height:17px}
#rest-pdv-mount .fp-cart-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px 12px;gap:10px;color:#9b8a93}
#rest-pdv-mount .fp-cart-empty>svg{width:32px;height:32px;color:#c9b7c0}
#rest-pdv-mount .fp-cart-empty strong{font-size:13px;color:#76646d;font-weight:600}
#rest-pdv-mount .fp-cart-empty p{font-size:12px;line-height:1.6;margin:0}
#rest-pdv-mount .fp-cart-footer{display:flex;flex-direction:column;gap:10px;margin:0;padding:14px 0 0;border-top:1px solid var(--fp-line)}
#rest-pdv-mount .fp-cart-footer>*{margin:0}
#rest-pdv-mount .fp-cart-total{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px;color:var(--fp-ink);font-weight:600;padding:0 0 3px}
#rest-pdv-mount .fp-cart-total>span:last-child{font-size:23px;letter-spacing:-.04em;font-weight:750;white-space:nowrap}
#rest-pdv-mount #rest-pdv-checkout{display:flex;align-items:center;justify-content:center;gap:12px;min-height:48px;padding:12px;background:var(--fp-accent);border-radius:12px;font-size:13px;font-weight:700}
#rest-pdv-mount #rest-pdv-checkout svg{width:17px;height:17px}
#rest-pdv-mount #rest-pdv-clear{min-height:44px;padding:8px;font-size:11px;font-weight:500;color:var(--fp-muted)}
body>.fp-cart-peek{display:none}
html.food-app-layout #tab-rest-pdv:has(.fp-pdv)>.ff-tab-heading{border:0;margin-bottom:20px;padding:0;min-height:42px}
@media(hover:hover){#rest-pdv-mount .fp-product:hover{border-color:var(--food-ui-border,#e8aabd);transform:translateY(-2px)}}
@media(max-width:1050px){#rest-pdv-mount .fp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){
 #rest-pdv-mount .fp-layout{grid-template-columns:minmax(0,1fr);gap:28px}
 #rest-pdv-mount .fp-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 #rest-pdv-mount .fp-cart{position:static}
 body>.fp-cart-peek{display:flex;align-items:center;gap:10px;position:fixed;bottom:calc(92px + max(6px,var(--food-dock-safe-bottom,env(safe-area-inset-bottom,0px)))) ;left:16px;right:16px;z-index:70;min-height:54px;border:1px solid #ffffff35;border-radius:16px;padding:10px 15px;background:var(--fp-accent);color:#fff;font-size:13px;font-weight:600;box-shadow:0 5px 15px #5d103c1c}
 body>.fp-cart-peek .fp-peek-count{display:grid;place-items:center;min-width:28px;height:28px;background:#ffffff26;border-radius:8px;font-size:12px}
 body>.fp-cart-peek strong{margin-left:auto;white-space:nowrap;font-size:14px}
 body>.fp-cart-peek svg{width:17px;height:17px}
 html.food-app-layout #tab-rest-pdv:has(.fp-pdv){padding-bottom:calc(var(--ff-content-bottom,110px) + 78px)!important;scroll-padding-bottom:calc(var(--ff-content-bottom,110px) + 78px)}
 #rest-pdv-mount .fp-catalog:has(.fp-search input:focus)~*{scroll-margin-top:20px}
}
@media(max-width:520px){
 #rest-pdv-mount .fp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 #rest-pdv-mount .fp-modes{margin-bottom:18px}
 #rest-pdv-mount .fp-modes button{font-size:12px;gap:7px}
 #rest-pdv-mount .fp-modes svg{width:18px;height:18px}
 #rest-pdv-mount .fp-product-copy{padding:11px;gap:10px}
 #rest-pdv-mount .fp-photo{aspect-ratio:1.4}
}
@media(max-width:355px){#rest-pdv-mount .fp-product-copy{padding:9px}#rest-pdv-mount .fp-name{font-size:12px}#rest-pdv-mount .fp-price{font-size:13px}#rest-pdv-mount .fp-add{width:26px;height:28px}}
@media(prefers-reduced-motion:reduce){#rest-pdv-mount .fp-product{transition:none;transform:none!important}}

/* Shared Food order modes. Product/catalog customization remains account-scoped. */
#rest-pdv-mount .fp-entry{--fp-accent:var(--ff-accent,var(--food-ui-action,#e11d48));--fp-line:#eee7ea;--fp-muted:#867a80;--fp-ink:#292326}
html.food-app-layout #tab-rest-pdv>.ff-tab-heading,
#rest-pdv-mount .fp-entry-heading{display:none!important}
#rest-pdv-mount .fp-entry>.fp-entry-layout{margin-top:0!important}
#rest-pdv-mount .fp-entry-catalog{display:flex;flex-direction:column;gap:18px;min-width:0}
#rest-pdv-mount .fp-entry-catalog>*{margin-top:0!important;margin-bottom:0!important;min-width:0}
#rest-pdv-mount .fp-modes{position:relative;isolation:isolate;flex-shrink:0}
#rest-pdv-mount .fp-modes button{position:relative;z-index:1;min-width:0;transition:color 180ms ease}
#rest-pdv-mount .fp-modes button[aria-pressed=true]{background:transparent!important;box-shadow:none}
#rest-pdv-mount .fp-modes svg{width:20px;height:20px;flex:none}
#rest-pdv-mount .fp-mode-pill{position:absolute;pointer-events:none;left:5px;top:5px;bottom:5px;width:calc((100% - 18px)/3);border-radius:12px;background:#fff;box-shadow:0 2px 7px #4626340d;transform:translateX(calc(var(--fp-mode-index,0) * (100% + 4px)))}
#rest-pdv-mount .fp-mode-fields{padding:16px;border:1px solid var(--fp-line);border-radius:16px;background:#fff;min-width:0;max-width:100%;color:var(--fp-ink)}
#rest-pdv-mount .fp-mode-fields[hidden]{display:none!important}
#rest-pdv-mount .fp-field{display:flex;flex-direction:column;gap:7px;min-width:0;font-size:12px;font-weight:600;line-height:1.5;color:var(--fp-muted)}
#rest-pdv-mount .fp-mode-fields :is(input:not([type=checkbox]),select){display:block;box-sizing:border-box;min-width:0;width:100%;max-width:100%!important;min-height:46px;padding:11px 12px;border:1px solid var(--fp-line);border-radius:11px;background:#fcfafb;color:var(--fp-ink);font-size:16px;line-height:1.4;font-weight:400}
#rest-pdv-mount .fp-mode-fields :is(input,select,button):focus-visible,#rest-pdv-mount .fp-mode:focus-visible{outline:2px solid var(--fp-accent);outline-offset:2px}
#rest-pdv-mount .fp-delivery-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
#rest-pdv-mount .fp-delivery-fields>*{min-width:0}
#rest-pdv-mount .fp-delivery-fields>.fp-field-wide,#rest-pdv-mount .fp-delivery-fields>[class*="col-span-2"]{grid-column:1/-1}
#rest-pdv-mount .fp-delivery-fields>label:not(.fp-field){align-items:flex-start;padding:12px;gap:10px;font-size:12px;font-weight:550;line-height:1.6;overflow-wrap:anywhere}
#rest-pdv-mount .fp-mode-fields input[type=checkbox]{flex:none;width:18px;height:18px;margin-top:1px;accent-color:var(--fp-accent)}
#rest-pdv-mount .fp-mode-fields button{min-height:44px;white-space:normal}
@media(min-width:640px){#rest-pdv-mount .fp-delivery-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:355px){#rest-pdv-mount .fp-modes button{font-size:11px;gap:5px}#rest-pdv-mount .fp-modes svg{width:16px;height:16px}#rest-pdv-mount .fp-mode-fields{padding:12px}}
@media(prefers-reduced-motion:reduce){#rest-pdv-mount .fp-modes button{transition:none}}

/* Body portal must remain hidden during navigation and keyboard entry. */
body>.fp-cart-peek[hidden]{display:none!important}
body>.fp-cart-peek{font-family:var(--fluxo-font-ui,Inter,sans-serif);box-sizing:border-box;cursor:pointer}
body>.fp-cart-peek:focus-visible{outline:3px solid var(--food-ui-action,#b52224);outline-offset:3px}
