/* PIDE FAST 11.4.1 — mejoras solicitadas de navegación + carrito por comercio.
   No modifica OAuth, reglas, pasarelas ni el sistema de solicitudes. */
.pf-header-shortcuts{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;flex-wrap:nowrap}
.pf-head-shortcut{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;flex:0 0 auto;min-height:53px;min-width:68px;padding:5px 8px!important;border:1px solid transparent!important;border-radius:12px;background:transparent!important;color:#d4edf5!important;cursor:pointer;font:inherit}
.pf-head-shortcut>span{font-size:21px;line-height:1.1}.pf-head-shortcut>b{font-size:10px;line-height:1.1;font-weight:800;white-space:nowrap}
.pf-head-shortcut:hover,.pf-head-shortcut:focus-visible{background:#164a60!important;border-color:#4794a4!important;color:#fff!important;transform:translateY(-1px)}
/* El header debe conservar carrito, sesión y geolocalización manual. En pantalla pequeña las acciones van a segunda fila dentro del encabezado. */
.topbar:has(.pf-header-shortcuts){display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;align-items:center}
.topbar .pf-header-shortcuts{order:2}.topbar>.header-right{order:3}
.pf-food-menu-grid .pf-m-photo{height:185px;overflow:hidden;display:grid;place-items:center;background:#102b3f}
.pf-m-photo img{width:100%;height:100%;object-fit:cover}.pf-m-photo .pf-product-thumb{max-width:100%;width:100%;height:100%;object-fit:contain}.pf-m-photo .pf-product-fallback{font-size:65px}
.pf-m-merchant-card .pf-price{font-size:17px}.pf-m-merchant-card .pf-price small{font-size:11px}
.pf-m-merchant-card .product-data>p{min-height:55px}.pf-m-merchant-card .product-data>small{line-height:1.5}
.pf-food-footer .btn{white-space:normal;text-align:center;justify-content:center}
.pf-detail-photo{display:grid;place-items:center;overflow:hidden;border-radius:18px;min-height:225px;background:#16374d}
.pf-detail-photo>img{width:100%;height:270px;object-fit:cover}
.pf-detail-photo>.pf-product-thumb{object-fit:contain}
.pf-detail-photo>.pf-product-fallback{font-size:90px}
.pf-menu-poster{margin-top:24px;border:1px solid #346379;border-radius:17px;padding:15px;background:#0c293b}
.pf-menu-poster summary{cursor:pointer;color:#8ae6ed;font-weight:800;font-size:13px}.pf-menu-poster img{max-height:550px;width:100%;object-fit:contain;margin-top:14px}
.pf-global-store .pf-cart-product-row{display:flex;justify-content:space-between;align-items:center;gap:18px;border-bottom:1px solid #34576a;padding:12px 0}
.pf-global-store .pf-cart-product-row>span:first-child{display:grid;gap:3px;min-width:0;overflow-wrap:anywhere}
.pf-global-store .pf-cart-product-row strong{font-size:13px;color:#f0fafc}
.pf-unified-cart{align-items:start}
.pf-cart-empty-unified{text-align:center;display:grid;justify-items:center;gap:12px;padding:34px 14px;background:#0b283b;border-radius:17px;border:1px solid #315d75}
.pf-cart-empty-unified>span{font-size:53px}.pf-cart-empty-unified h3{font-size:21px;color:#fff}.pf-cart-empty-unified p{color:#bed3df;font-size:13px;line-height:1.6;max-width:360px}
.pf-checkout-header{display:flex;gap:14px;align-items:center;border:1px solid #3e8b9b;border-radius:15px;padding:16px;background:#124258;margin-bottom:20px}
.pf-checkout-header>span{font-size:29px}.pf-checkout-header strong{display:block;color:#f1ffff}.pf-checkout-header small{display:block;font-size:11px;color:#bde4e9;line-height:1.5;margin-top:5px}
.pf-checkout-order{margin-bottom:20px;border:1px solid #326077;border-radius:14px;overflow:hidden}
.pf-checkout-order>div{padding:13px 16px;display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #31556c;font-size:12px;color:#c7dfeb}
.pf-checkout-order>div:last-child{border:0}.pf-checkout-order strong{color:#7fe7e9;text-align:right}
.pf-simulation-success{display:grid;justify-items:start;gap:12px}.pf-simulation-success>span{width:52px;height:52px;border-radius:50%;background:#195f68;color:#bbffec;display:grid;place-items:center;font-size:31px}
.pf-simulation-success h3{color:#e8fffa;font-size:25px}.pf-simulation-success p{line-height:1.8;color:#bfdae4}
.pf-simulation-success>.btn{width:100%}
@media(max-width:1180px){.topbar:has(.pf-header-shortcuts){row-gap:2px}.topbar .pf-header-shortcuts{order:5;width:100%;justify-content:flex-start;overflow-x:auto;scrollbar-width:none;padding:3px 0 8px}.topbar>.header-right{order:3}}
@media(max-width:700px){.topbar .pf-header-shortcuts{gap:5px;justify-content:space-between}.pf-head-shortcut{min-width:0;flex:1;min-height:56px;padding:6px 4px!important}.pf-head-shortcut>b{font-size:9px}.pf-head-shortcut>span{font-size:22px}.pf-m-merchant-card .pf-m-photo{height:170px}.pf-food-menu-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.pf-head-shortcut:hover{transform:none}}
/* Corrección de regresión visual: el encabezado original tenía una altura fija de 80px.
   Al sumar accesos, esa altura hacía que la segunda fila se montara sobre el banner. */
@media(max-width:1180px){
  .topbar:has(.pf-header-shortcuts){height:auto!important;min-height:80px;row-gap:0!important;padding-top:7px!important;padding-bottom:7px!important;align-content:center}
  .topbar .pf-header-shortcuts{align-self:stretch;flex:1 0 100%;margin-top:4px}
}

/* A04: intrinsic grid/nowrap content must fit the existing mobile cart panel.
   Derived copy only; original palette, icons, spacing and desktop stay unchanged. */
@media (max-width: 800px) {
  .pf-cart-sheet .pf-global-store { min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .pf-cart-sheet .pf-global-store-title, .pf-cart-sheet .pf-global-store-title > div { min-width: 0; }
  .pf-cart-sheet .pf-global-store-title h3 { overflow-wrap: anywhere; }
  .pf-cart-sheet .pf-global-store > .btn { white-space: normal; overflow-wrap: anywhere; text-align: center; }
  .pf-cart-sheet .pf-cart-actions { flex-shrink: 0; }
}

/* Scoped to the web preview dialog. No home or navigation rules. */
.pfj-sheet .pf-public-content { padding-bottom:max(24px,env(safe-area-inset-bottom)); }
.pfj { display:grid; gap:14px; min-width:0; }
.pfj h3,.pfj p { margin:0; }
.pfj p,.pfj small { line-height:1.5; }
.pfj .pfj-notice { color:#aef5ff; background:#12416a; border:1px solid #317ea6; border-radius:14px; padding:10px 14px; font-size:.86rem; }
.pfj .pfj-product,.pfj .pfj-line,.pfj .pfj-pending,.pfj section,.pfj fieldset {
 border:1px solid #2f5b80; padding:14px; border-radius:16px; background:#102d50; color:#f5fbff; min-width:0;
}
.pfj-menu,.pfj form,.pfj section { display:grid; gap:12px; }
.pfj fieldset { margin:0; display:grid; gap:4px; }
.pfj legend,.pfj strong,.pfj output { color:#a9f1ff; font-weight:800; }
.pfj-product { display:grid; grid-template-columns:minmax(74px,110px) minmax(0,1fr); align-items:start; gap:14px; }
.pfj-product img { width:100%; aspect-ratio:1; object-fit:cover; display:block; border-radius:12px; background:#09253f; }
.pfj-product > div { display:grid; gap:7px; }
.pfj-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.pfj .btn { min-height:44px; white-space:normal; max-width:100%; overflow-wrap:anywhere; }
.pfj .btn:disabled { opacity:.48; cursor:not-allowed; }
.pfj .pf-field { color:#e7f6ff; min-width:0; }
.pfj .pf-field :is(input,select,textarea) { min-height:44px; width:100%; font-size:16px; }
.pfj-choice { display:flex; align-items:center; gap:10px; min-height:44px; color:#f5fbff; }
.pfj-choice input { width:19px; height:19px; accent-color:#00abd3; flex:none; }
.pfj-choice small { margin-left:auto; text-align:right; color:#b4d7ee; }
.pfj-summary { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid #317299; }
.pfj-map { height:135px; border-radius:16px; border:1px solid #5090a0; position:relative; overflow:hidden;
 background:repeating-linear-gradient(30deg,transparent 0 34px,#39647b 35px 41px,transparent 42px 66px),repeating-linear-gradient(115deg,#19495c 0 29px,#538697 30px 36px,#19495c 37px 57px); }
.pfj-map span { position:absolute; top:38%; font-size:30px; transform:translateX(-50%); }
.pfj [hidden] { display:none !important; }
@media(max-width:400px){ .pfj-product { grid-template-columns:76px minmax(0,1fr); gap:9px; } .pfj .pfj-product,.pfj .pfj-line,.pfj section,.pfj fieldset { padding:10px; } }

.pf-review-banner{position:fixed;inset:auto 0 0;z-index:1200;text-align:center;font:600 12px/1.4 system-ui;background:#05294c;color:#fff;padding:4px 12px;pointer-events:none}
