/* Customer PWA — location chip, search bar, location sheet and permission screen.
   Everything here lives inside .pwa-app-header / .yz-loc-*, which are only displayed in standalone
   PWA mode (body.pwa-standalone); a normal browser tab keeps the existing website header. */
/* Base gate lives HERE (this sheet is linked by the header partial on every page) and not only in customer-pwa-shell.css,
   which is linked solely for plans with PWA Installability. Without it, restaurants on other plans rendered this
   app header unstyled on the normal website: a second, oversized logo, a stray restaurant name, bare icons and a search box. */
.pwa-app-header{display:none}
.pwa-app-header__top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pwa-app-header__loc,.pwa-app-header__search{display:none}
body.pwa-standalone .pwa-app-header{flex-direction:column;align-items:stretch;gap:8px}
body.pwa-standalone .pwa-app-header__loc{display:flex}
body.pwa-standalone .pwa-app-header__search{display:block}

/* Separate, properly spaced 44px touch targets for Call and Notifications (they were crowded/touching) */
body.pwa-standalone .pwa-app-header__actions{gap:12px}
body.pwa-standalone .pwa-app-header__actions .item{margin:0;padding:0;display:flex}
body.pwa-standalone .pwa-app-header__actions .btn-icon{width:44px;height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:rgba(0,0,0,.05);color:inherit;font-size:18px;line-height:1;padding:0;margin:0}
body.pwa-standalone .pwa-app-header__actions .btn-icon:active{background:rgba(0,0,0,.12)}
body.pwa-standalone .pwa-app-header__actions .yz-notification-badge{top:2px;right:0}

.pwa-app-header__loc{align-items:center;gap:8px;width:100%;min-height:40px;padding:0 2px;border:0;background:none;text-align:left;color:inherit;font-size:14px;font-weight:600}
.pwa-app-header__loc .yz-loc-pin{color:var(--yz-accent,#F04400)}
.pwa-app-header__loc .yz-loc-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pwa-app-header__loc[data-serviceable="no"] .yz-loc-label{color:#dc2626}

.pwa-app-header__search{position:relative}
.pwa-app-header__search input[type=search]{width:100%;min-height:44px;padding:0 14px 0 40px;border:1px solid #e5e7eb;border-radius:12px;background:#f4f5f7;font-size:16px;-webkit-appearance:none;appearance:none}
.pwa-app-header__search .yz-search-ico{position:absolute;left:14px;top:12px;color:#6b7280;pointer-events:none}
.yz-suggest{position:absolute;left:0;right:0;top:48px;z-index:1040;background:#fff;border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.14);max-height:60vh;overflow:auto}
.yz-suggest[hidden]{display:none}
.yz-suggest__h{padding:10px 14px 4px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:#6b7280;font-weight:700}
.yz-suggest a,.yz-suggest button{display:flex;width:100%;align-items:center;gap:10px;min-height:46px;padding:0 14px;border:0;background:none;color:#111;text-decoration:none;text-align:left;font-size:15px}
.yz-suggest a:active,.yz-suggest button:active{background:#f4f5f7}
.yz-suggest .yz-s-price{margin-left:auto;color:#6b7280;font-size:13px}

/* Bottom sheet + full-screen gate */
.yz-loc-sheet,.yz-loc-gate{position:fixed;inset:0;z-index:2147482000;background:rgba(0,0,0,.45);display:flex;align-items:flex-end;justify-content:center}
.yz-loc-sheet[hidden],.yz-loc-gate[hidden]{display:none}
.yz-loc-panel{width:100%;max-width:560px;max-height:88vh;background:#fff;border-radius:20px 20px 0 0;display:flex;flex-direction:column;padding-bottom:env(safe-area-inset-bottom,0px)}
.yz-loc-head{display:flex;align-items:center;gap:8px;padding:14px 14px 8px}
.yz-loc-head h2{flex:1;margin:0;font-size:18px}
.yz-loc-x{min-width:44px;min-height:44px;border:0;border-radius:50%;background:#f3f4f6}
.yz-loc-body{padding:0 14px 14px;overflow:auto}
.yz-loc-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;border:0;border-radius:12px;background:var(--yz-accent,#F04400);color:#fff;font-weight:700;font-size:15px}
.yz-loc-btn--ghost{background:#fff;color:var(--yz-accent,#F04400);border:1px solid var(--yz-accent,#F04400)}
.yz-loc-in{width:100%;min-height:48px;margin:12px 0 6px;padding:0 14px;border:1px solid #d1d5db;border-radius:12px;font-size:16px}
.yz-loc-msg{min-height:20px;margin:6px 2px;font-size:13px;color:#6b7280}
.yz-loc-msg.is-err{color:#dc2626}.yz-loc-msg.is-ok{color:#047857}
.yz-loc-list{list-style:none;margin:0;padding:0}
.yz-loc-list li button{display:block;width:100%;min-height:52px;padding:8px 4px;border:0;border-top:1px solid #f1f2f4;background:none;text-align:left}
.yz-loc-list .t{display:block;font-weight:600;font-size:15px}.yz-loc-list .s{display:block;font-size:12px;color:#6b7280}
.yz-loc-sub{margin:14px 2px 4px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#6b7280;font-weight:700}
.yz-loc-gate{align-items:stretch;background:#fff}
.yz-loc-gate__in{margin:auto;width:100%;max-width:420px;padding:28px 22px calc(28px + env(safe-area-inset-bottom,0px));text-align:center}
.yz-loc-gate__art{font-size:72px;line-height:1;margin-bottom:14px}
.yz-loc-gate h2{font-size:22px;margin:0 0 8px}
.yz-loc-gate p{color:#6b7280;margin:0 0 22px;font-size:14px}
.yz-loc-gate .yz-loc-btn{margin-bottom:10px}

/* Promotional slider (owner's own slides) — standalone only */
.yz-promo{display:none}
body.pwa-standalone .yz-promo{display:block;padding:12px 0 4px}
.yz-promo__track{display:flex;gap:12px;overflow-x:auto;padding:0 14px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.yz-promo__track::-webkit-scrollbar{display:none}
.yz-promo__card{flex:0 0 86%;max-width:460px;min-height:150px;scroll-snap-align:center;display:flex;flex-direction:column;justify-content:flex-end;gap:2px;padding:16px;border-radius:18px;background:#374151 center/cover no-repeat;color:#fff;text-decoration:none}
.yz-promo__title{font-size:20px;line-height:1.2}
.yz-promo__text{font-size:13px;opacity:.92}
