/* Tema da vitrine pública do App. */
:root{--primary:#4e73df;--brand:var(--primary);--light:#f8f9fc;--line:#e8ebf2;--muted:#6b7280;--ink:#333;--danger:#dc3545;--shadow-sm:0 2px 5px rgba(0,0,0,.03);--shadow-md:0 10px 24px rgba(16,24,40,.08);--app-text-scale:1;font-family:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
*{box-sizing:border-box}
/* Texto base maior que o padrão do legado + escala ajustável pelo cliente (botões A-/A+ no modal de atendimento).
   Quase todo o app usa rem, então esta única regra escala título/subtexto/badge juntos, preservando a hierarquia. */
html{scroll-behavior:smooth;font-size:calc(112.5% * var(--app-text-scale,1))}
html,body{background:#f4f4f4;height:100%;overflow:hidden;overscroll-behavior:none;touch-action:manipulation}
body{margin:0;font-family:'Manrope',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:calc(15px * var(--app-text-scale,1));line-height:1.4;color:var(--ink)}

/* ===== App shell (card head/body/bottom do legado — corrige bugs de viewport no iOS) ===== */
#appShell{position:fixed;inset:0;width:100%;height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:#f4f4f4}
#appTop{flex:0 0 auto;position:relative;z-index:1035;background:#fff;max-height:0;opacity:0;overflow:hidden;pointer-events:none;transition:max-height .18s ease,opacity .18s ease}
#appTop.app-top-nav-visible{max-height:160px;opacity:1;pointer-events:auto}
#appTop .category-nav-container{position:static;margin:0;border-bottom:1px solid #eee}
#appScroll{position:relative;flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:calc(96px + env(safe-area-inset-bottom,0px));scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){#appScroll{scroll-behavior:auto}}
button,input,textarea{font:inherit}
button{-webkit-tap-highlight-color:transparent}
h1,h2,h3,h5,p{margin-top:0}
.text-primary{color:var(--primary)!important}
.is-hidden{display:none!important}

/* Botões pill como no legado */
button,input[type="button"],input[type="submit"]{border-radius:999px}

/* ===== Header ===== */
.app-header{--app-cover-height:clamp(190px,36vw,320px);--app-header-overlap:clamp(78px,16vw,112px);position:relative;background:#f4f4f4}
.header-cover{display:block;width:100%;height:var(--app-cover-height);object-fit:cover;object-position:center;background:#e9edf3}
.header-wrap{position:relative;display:flow-root;background:transparent;padding:0 16px 14px;max-width:1200px;margin:0 auto}
.header-content{position:relative;padding:56px 16px 16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:#fff;text-align:center;border-radius:24px;border:1px solid rgba(15,23,42,.08)}
.header-content-overlap{margin-top:calc(var(--app-header-overlap) * -1);z-index:10;box-shadow:0 12px 28px rgba(15,23,42,.12)}
.header-content:not(.header-content-overlap){margin-top:68px;box-shadow:0 8px 22px rgba(15,23,42,.08)}
.logo-frame{position:absolute;left:50%;transform:translateX(-50%);top:-58px;width:104px;height:104px;border:3px solid #fff;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 22px rgba(2,6,23,.2);z-index:50}
.logo-frame img{width:96px;height:96px;border-radius:50%;object-fit:cover;display:block}
.store-logo-inline-icon{width:96px;height:96px;border-radius:50%;background:#fff;display:inline-flex;align-items:center;justify-content:center}
.store-header-center{width:100%;display:flex;flex-direction:column;align-items:center;gap:8px}
.store-header-center h1{text-align:center;margin:0;font-size:1.28rem;font-weight:800;color:#0f1724;line-height:1.1;letter-spacing:-.02em}
.store-desc{color:#667085;font-size:.95rem;max-width:100%;text-align:center}
.store-status-line{display:inline-flex;align-items:center;justify-content:center;gap:8px;color:#6b7280;font-size:.85rem;line-height:1.2}
.status-badge{display:inline-block;width:12px;height:12px;background:#6c757d;border-radius:50%;box-shadow:0 0 0 3px rgba(0,0,0,.03) inset}
.status-open{background-color:#28a745!important;box-shadow:0 0 0 6px rgba(40,167,69,.06) inset}
.status-closed{background-color:#dc3545!important;box-shadow:0 0 0 6px rgba(220,53,69,.06) inset}
.store-feedback-actions{display:inline-flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap}
.quick-icon-btn{width:36px;height:36px;padding:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:#fff;color:var(--primary);box-shadow:0 6px 14px rgba(15,23,42,.1);transition:transform .2s ease,box-shadow .2s ease,background .2s ease,color .2s ease;cursor:pointer;text-decoration:none;flex:0 0 auto}
.quick-icon-btn i{font-size:.92rem;line-height:1}
.quick-icon-btn:hover,.quick-icon-btn:focus{transform:translateY(-1px);box-shadow:0 10px 20px rgba(15,23,42,.14)}
.store-feedback-actions .quick-icon-btn{width:38px;height:38px}
.store-reaction-btn.is-active{background:var(--primary);border-color:var(--primary);color:#fff}
.store-reaction-btn{position:relative}
.store-feedback-count{position:absolute;top:-6px;right:-7px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--primary);border:2px solid #fff;color:#fff;font-size:.58rem;font-weight:800;line-height:13px}
.store-reaction-btn.is-active .store-feedback-count{background:#fff;color:var(--primary)}
.store-details-card{border:1px solid #eee;border-radius:10px;background:#fff;box-shadow:var(--shadow-sm);padding:12px;margin:10px auto 0;max-width:980px;text-align:left}
.store-details-card p{margin:0 0 8px;color:#444;font-size:.86rem}
.store-details-card p i{color:var(--primary);width:18px;text-align:center;margin-right:4px}
.store-social{display:flex;gap:8px;margin-top:4px}

/* Modalidades (pills) */
.mode-tabs{display:inline-flex;gap:7px;justify-content:center;flex-wrap:wrap;margin-top:2px}
.mode-tabs:empty{display:none}
.mode-tab{min-height:38px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#6b7280;font-weight:700;font-size:.82rem;padding:8px 18px;cursor:pointer}
.mode-tab.is-active{background:var(--primary);border-color:var(--primary);color:#fff}

/* ===== Banners ===== */
.banner-carousel{display:flex;gap:12px;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory;padding:12px 15px 0;scrollbar-width:none;max-width:1200px;margin:0 auto}
.banner-carousel::-webkit-scrollbar{display:none}
.banner-carousel:empty{display:none}
.banner-card{display:block;position:relative;flex:0 0 min(86vw,760px);border:0;padding:0;border-radius:12px;overflow:hidden;aspect-ratio:2.4/1;scroll-snap-align:start;background:#e4e7ef;cursor:pointer;box-shadow:0 4px 6px rgba(0,0,0,.1)}
.banner-card picture,.banner-card img{width:100%;height:100%;display:block;object-fit:cover}

/* ===== Category nav (estática no scroll; o clone no #appTop assume quando sai da tela) ===== */
#categoryNavSentinel{height:1px}
.category-nav-container{position:static;background:rgba(255,255,255,.96);z-index:99;border-top:1px solid rgba(255,255,255,.7);border-bottom:1px solid var(--line);padding:5px 0;margin-bottom:12px;margin-top:12px;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.category-inner{max-width:980px;width:100%;margin:0 auto;padding:8px 12px;box-sizing:border-box;display:flex;flex-direction:column;gap:8px}
.app-category-select-row{display:flex;align-items:center;gap:8px;width:100%}
#categoryLogoContainer{display:none;align-items:center}
#categoryLogoContainerTop{display:flex;align-items:center;margin-right:8px;flex:0 0 auto}
#categoryLogoContainer img,#categoryLogoContainerTop img{width:34px;height:34px;border-radius:50%;object-fit:cover;border:1px solid #eee}
.category-select-wrap{position:relative;flex:1 1 auto;min-width:0}
.category-select-icon{position:absolute;left:15px;top:50%;transform:translateY(-50%);z-index:1;color:var(--primary);font-size:.9rem;pointer-events:none}
.category-select-wrap:after{content:"";position:absolute;right:16px;top:50%;width:7px;height:7px;border-right:2px solid #64748b;border-bottom:2px solid #64748b;transform:translateY(-70%) rotate(45deg);pointer-events:none}
.category-select-wrap select{appearance:none;-webkit-appearance:none;width:100%;height:44px;border:1px solid rgba(15,23,42,.12);border-radius:14px;background:#f8faff;color:#334155;padding:0 42px;font:inherit;font-size:.86rem;font-weight:700;outline:0;box-shadow:0 4px 12px rgba(15,23,42,.05);cursor:pointer;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.category-select-wrap select:hover{background:#fff;border-color:rgba(15,23,42,.2)}
.category-select-wrap select:focus{background:#fff;border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 16%,transparent)}
.app-category-select-row>.quick-icon-btn{width:44px;height:44px;box-shadow:0 5px 14px rgba(15,23,42,.1)}
.app-cardapio-selector-row{width:100%;display:flex;gap:8px}
.app-cardapio-open-btn{border:1px solid var(--line);border-radius:12px;min-height:38px;text-transform:uppercase;background:#f8f9fc;color:var(--ink);font-weight:700;flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.app-cardapio-open-btn i{color:var(--primary)}

/* ===== Categorias e produtos (fiel ao legado) ===== */
.category-header{font-size:1.1rem;font-weight:700;margin:28px 15px 20px;color:#2c3e50}
.category-desc{font-weight:400;font-size:.85rem;color:#777;margin:-14px 15px 16px}
.products-list{display:block;max-width:1200px;margin:0 auto}
.products-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:1200px;margin:0 auto;padding:0 12px}
.products-grid .product-item{display:flex;flex-direction:column;align-items:stretch;width:100%;min-width:0;min-height:250px;margin:0;padding:10px;gap:8px}
.products-grid .product-image-box{order:-1;width:100%;height:auto;aspect-ratio:1.3/1;border-radius:10px;overflow:hidden}
.products-grid--store .product-image-box{aspect-ratio:1/1}
.products-grid .product-content{order:1;padding-right:0;gap:6px}
.products-grid .product-title{margin-bottom:0;line-height:1.25}
.products-grid .product-desc{margin-bottom:0;line-height:1.3}
.products-grid .product-footer{margin-top:auto}
.products-grid .list-cart-btn{right:6px;bottom:6px}
.product-image-empty{display:flex;align-items:center;justify-content:center;background:#eef1f5;color:#a7b0bf;font-size:1.5rem}
.product-item{position:relative;background:#fff;margin:0 15px 15px;padding:15px;border-radius:12px;box-shadow:var(--shadow-sm);display:flex;transition:transform .2s;cursor:pointer;border:0;width:calc(100% - 30px);text-align:left;font:inherit;color:inherit}
.product-item:active{transform:scale(.98)}
.product-content{display:flex;flex-direction:column;justify-content:space-between;flex:1 1 auto;padding-right:10px;overflow:hidden}
.product-title{font-weight:600;font-size:.95rem;margin-bottom:5px;color:#333;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
.product-desc{font-size:.85rem;color:#777;margin-bottom:10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
.product-info-badges{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin:1px 0 7px;text-align:left}
.product-info-badge{display:inline-flex;align-items:center;gap:4px;max-width:100%;min-height:23px;padding:3px 7px;border:1px solid #dce3ee;border-radius:999px;background:#f8fafc;color:#475569;font-size:.68rem;font-weight:750;line-height:1;white-space:nowrap}
.product-info-badge i{font-size:.66rem}
.product-info-badge.is-time{border-color:#dbe4f0;background:#f4f7fb;color:#40516b}
.product-info-badge.is-people{border-color:#dbeafe;background:#eff6ff;color:#1d4ed8}
.product-info-badge.is-cashback{border-color:#bbf7d0;background:#f0fdf4;color:#15803d}
.product-info-badge.is-points{border-color:#fde68a;background:#fffbeb;color:#a16207}
.product-info-badges-modal{margin:8px 0 10px;gap:6px}
.product-info-badges-modal .product-info-badge{min-height:27px;padding:5px 9px;font-size:.74rem}
.product-availability{display:flex;align-items:flex-start;gap:7px;margin:1px 0 8px;color:#c2410c;font-size:.74rem;line-height:1.25;text-align:left}
.product-availability>i{margin-top:2px;flex:0 0 auto}
.product-availability>span{display:flex;flex-direction:column;gap:2px;min-width:0}
.product-availability strong{font-weight:800}
.product-availability small{font-size:.7rem;color:#9a3412}
.product-availability-modal{margin:10px 0;padding:10px 12px;border-radius:10px;background:#fff7ed;border:1px solid #fed7aa;font-size:.82rem}
.product-availability-modal small{font-size:.76rem}
.store-closed-notice{display:flex;align-items:flex-start;gap:10px;margin:10px 0 14px;padding:11px 12px;border:1px solid #fecaca;border-radius:10px;background:#fef2f2;color:#991b1b;text-align:left;line-height:1.3}
.store-closed-notice>i{margin-top:2px;flex:0 0 auto}
.store-closed-notice>span{display:flex;flex-direction:column;gap:3px;min-width:0}
.store-closed-notice strong{font-size:.84rem;font-weight:800}
.store-closed-notice small{font-size:.75rem;color:#b91c1c}
.product-price{font-weight:700;color:var(--primary)}
.product-old-price{font-size:.8rem;text-decoration:line-through;color:#999;margin-right:5px;font-weight:500}
.product-promo{font-size:.96rem;font-weight:800;color:var(--primary);line-height:1}
.offer-badge{display:inline-flex;align-items:center;margin-left:5px;padding:2px 6px;border:1px solid #bbf7d0;border-radius:999px;background:#ecfdf5;color:#18844f;font-size:.68rem;font-weight:800;line-height:1;vertical-align:middle}
.product-image-box{width:90px;height:90px;border-radius:8px;overflow:visible;flex-shrink:0;position:relative}
.product-image-box img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit;background:#f8f8f8}
.list-cart-btn{position:absolute;bottom:-10px;right:-10px;width:36px;height:36px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:rgba(0,0,0,.6);color:#fff;border:2px solid rgba(255,255,255,.95);box-shadow:0 8px 18px rgba(0,0,0,.22);z-index:10;font-size:.95rem;pointer-events:none}
.product-item.is-sold-out{opacity:.6}
.product-item.is-unavailable{cursor:pointer}
.product-item.is-unavailable .list-cart-btn{background:#c2410c}
.product-ribbon{position:absolute;top:0;right:0;width:70px;height:70px;overflow:hidden;pointer-events:none;z-index:6;border-top-right-radius:inherit}
.product-ribbon span{position:absolute;top:14px;right:-24px;width:96px;padding:3px 0;background:rgba(26,31,43,.85);color:#fff;font-size:.62rem;font-weight:800;letter-spacing:.02em;text-align:center;text-transform:uppercase;transform:rotate(45deg);box-shadow:0 2px 4px rgba(0,0,0,.18)}
.empty-state{text-align:center;padding:60px 18px;color:var(--muted);background:#fff;border-radius:12px;margin:0 15px}

/* Os mais pedidos (destaques do legado) */
.destaque-row{display:flex;gap:14px;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;padding:10px 15px;box-sizing:border-box;flex-wrap:nowrap;align-items:stretch;scrollbar-width:thin}
.destaque-row::-webkit-scrollbar{height:8px}
.destaque-row::-webkit-scrollbar-thumb{background:rgba(0,0,0,.12);border-radius:6px}
.destaque-card{position:relative;flex:0 0 170px;width:170px;background:#fff;border-radius:8px;box-shadow:0 6px 18px rgba(0,0,0,.06);overflow:hidden;display:flex;flex-direction:column;cursor:pointer;border:0;padding:0;text-align:left;font:inherit;color:inherit}
.destaque-card.is-sold-out{opacity:.6}
.destaque-card .destaque-img{width:100%;height:130px;overflow:hidden;background:#f8f8f8;position:relative;display:block}
.destaque-card .destaque-img img{width:100%;height:100%;object-fit:cover;display:block}
.destaque-card .destaque-body{padding:8px 10px;display:flex;flex-direction:column;gap:6px}
.destaque-card .destaque-title{font-weight:700;font-size:.95rem;color:#222;line-height:1.15;max-height:36px;overflow:hidden}
.destaque-card .destaque-price{font-weight:800;color:var(--primary);font-size:1rem}
@media (min-width:992px){
  .destaque-section{max-width:1200px;margin:0 auto}
  .destaque-row{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;overflow:visible;padding:12px 0}
  .destaque-card{flex:none;width:100%;border-radius:18px}
  .destaque-card .destaque-img{height:180px;border-radius:14px}
  .destaque-card .destaque-body{padding:14px;min-height:90px}
}
@media (min-width:1400px){.destaque-row{grid-template-columns:repeat(5,1fr)}}

/* Aviso de cookies (legado) */
.cookie-notice{position:fixed;left:12px;right:12px;bottom:64px;z-index:1045;display:none;align-items:center;justify-content:space-between;gap:12px;background:rgba(28,36,52,.96);color:#fff;border-radius:12px;padding:10px 14px;font-size:.8rem;box-shadow:0 14px 34px rgba(15,23,42,.22);max-width:720px;margin:auto}
.cookie-notice.is-visible{display:flex}
.cookie-notice button{border:0;border-radius:999px;background:var(--primary);color:#fff;font-weight:700;padding:7px 18px;cursor:pointer}
.loading-state{display:grid;place-items:center;min-height:200px;color:var(--muted)}

/* Desktop: cada preferência mantém seu formato (lista horizontal ou grade) */
@media (min-width:992px){
  .header-wrap,.category-header,.category-desc{max-width:1200px;margin-left:auto;margin-right:auto}
  .category-header{margin:28px auto 20px;padding:0}
  .category-desc{margin:-14px auto 16px;padding:0}
  .products-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:12px 0}
  .products-list .product-item{width:100%;min-height:132px;margin:0;padding:15px}
  .products-list .product-image-box{width:110px;height:110px}
  .products-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;padding:12px 0}
  .products-grid .product-item{min-height:350px;padding:12px;box-shadow:0 6px 18px rgba(0,0,0,.06);border-radius:18px;gap:12px}
  .products-grid .product-image-box{height:180px;aspect-ratio:auto;border-radius:14px}
  .products-grid--store .product-image-box{height:210px}
  .products-grid .product-content{gap:8px}
  .products-grid .product-title{min-height:2.6em;font-size:.98rem;line-height:1.3}
  .products-grid .product-desc{min-height:2.5em;line-height:1.35}
  .products-grid .list-cart-btn{right:10px;bottom:10px}
  .empty-state{margin:0 auto;max-width:1200px}
}
@media (min-width:1400px){.products-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media (max-width:340px){.products-grid{grid-template-columns:1fr}}

/* ===== Carrinho bar (legado) — absoluto dentro do shell ===== */
#carrinhoBar{position:absolute;left:12px;right:12px;bottom:calc(72px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:var(--primary);color:#fff;border-radius:14px;border:1px solid rgba(255,255,255,.26);box-shadow:0 14px 34px rgba(15,23,42,.22);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);z-index:1030;cursor:pointer;max-width:720px;margin:auto}
#carrinhoBar .cart-left{flex:0 0 auto;display:flex;align-items:center}
#carrinhoBar .cart-icon{position:relative;margin-right:8px}
#carrinhoBar .cart-icon i{font-size:26px}
#carrinhoBar .cart-count{position:absolute;top:-6px;right:-10px;font-size:12px;padding:.18rem .42rem;background:#fff;color:var(--primary);border-radius:999px;font-weight:800;line-height:1}
#carrinhoBar .cart-label{font-weight:600;position:absolute;left:50%;transform:translateX(-50%);pointer-events:none}
#carrinhoBar .cart-total{font-weight:700}
@media (max-width:420px){#carrinhoBar{left:8px;right:8px;padding:8px 10px}}
@keyframes cartFlash{0%{transform:translateX(0)}15%{transform:translateX(-8px)}30%{transform:translateX(8px)}45%{transform:translateX(-6px)}60%{transform:translateX(6px)}75%{transform:translateX(-3px)}100%{transform:translateX(0)}}
#carrinhoBar.cart-flash{animation:cartFlash 680ms cubic-bezier(.2,.8,.2,1)}

/* ===== Bottom nav (legado) — item do shell, nunca flutua no iOS ===== */
.bottom-nav{position:relative;flex:0 0 auto;width:100%;background:#fff;box-shadow:0 -2px 10px rgba(0,0,0,.06);z-index:1040;padding-bottom:env(safe-area-inset-bottom)}
.bottom-nav-inner{display:flex;justify-content:space-around;max-width:720px;margin:0 auto}
.bottom-nav .nav-item{display:flex;flex-direction:column;align-items:center;gap:3px;border:0;background:transparent;color:#8a94a6;font-size:.7rem;font-weight:600;padding:9px 6px 7px;cursor:pointer;flex:1;border-radius:0}
.bottom-nav .nav-item i{font-size:1.05rem}
.bottom-nav .nav-item.active,.bottom-nav .nav-item.active i{color:var(--primary)}
.bottom-nav .nav-item-icon-wrap{position:relative}
.orders-nav-badge{position:absolute;top:-6px;right:-10px;background:var(--danger);color:#fff;border-radius:999px;font-size:.62rem;font-weight:800;padding:.14rem .34rem;line-height:1}

/* ===== Busca (offcanvas-top do legado) ===== */
.search-panel{position:fixed;inset:0;z-index:1055;display:none;flex-direction:column}
.search-panel.is-open{display:flex}
.search-panel-backdrop{display:none;flex:1;border:0;background:rgba(15,20,31,.5);cursor:pointer;border-radius:0}
.search-panel-card{background:#fff;flex:1;min-height:0;border-radius:0;padding:16px;padding-top:calc(14px + env(safe-area-inset-top));padding-bottom:calc(14px + env(safe-area-inset-bottom));box-shadow:0 20px 44px rgba(7,16,44,.22);display:flex;flex-direction:column;gap:12px}
.search-panel-head{display:flex;align-items:center;justify-content:space-between}
.search-panel-head h5{margin:0;font-weight:800;font-size:1.05rem}
#productSearch{height:48px;border:1px solid var(--line);border-radius:999px;padding:0 18px;outline-color:var(--primary);width:100%}
.search-results{flex:1;overflow:auto;display:grid;grid-auto-rows:max-content;gap:8px}
.search-initial-msg{text-align:center;color:#b6bdc9;padding:20px 0}
.search-initial-msg p{margin:8px 0 0;color:#8a94a6}
.search-result-item{display:flex;align-items:center;gap:12px;border:0;border-radius:12px;padding:9px 12px;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.08);cursor:pointer;text-align:left;width:100%}
.search-result-item img{width:50px;height:50px;border-radius:8px;object-fit:cover;background:#f4f4f4;flex:0 0 auto}
.search-result-item>span{flex:1;min-width:0}
.search-result-item .sr-title{font-weight:700;font-size:.9rem;color:#212529;display:block}
.search-result-item .sr-price{color:var(--primary);font-weight:700;font-size:.82rem}
.search-result-item .sr-chevron{color:#adb5bd;font-size:.72rem;flex:0 0 auto}
@media (min-width:761px){
  .search-panel{flex-direction:row}
  .search-panel-backdrop{display:block;order:1;flex:1;border-radius:0}
  .search-panel-card{order:2;flex:0 0 auto;width:560px;max-width:calc(100% - 40px);height:100vh;height:100dvh;border-radius:24px 0 0 24px;padding:18px}
}

/* ===== Dialog sheet (produto/sacola/conta) — visual de modal do legado ===== */
.app-dialog{position:fixed;z-index:1050;inset:0;display:none;align-items:flex-end;justify-content:center}
.app-dialog.is-open{display:flex}
.dialog-backdrop{position:absolute;inset:0;border:0;background:rgba(15,20,31,.55);cursor:pointer;border-radius:0}
.dialog-sheet{position:relative;width:min(100%,640px);max-height:min(92vh,900px);overflow:auto;background:#fff;border-radius:22px 22px 0 0;padding:0 16px calc(20px + env(safe-area-inset-bottom));box-shadow:0 20px 44px rgba(7,16,44,.22)}
.dialog-close{position:sticky;z-index:2;top:10px;float:right;margin:10px 0;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:rgba(255,255,255,.95);color:#333;font-size:1.15rem;cursor:pointer;line-height:1}
@media (min-width:761px){.app-dialog{align-items:center}.dialog-sheet{border-radius:22px;margin-bottom:24px}}
.dialog-image{width:calc(100% + 32px);height:240px;margin:0 -16px 16px;object-fit:cover;background:#f8f8f8;border-radius:0}
.dialog-title{font-size:1.2rem;font-weight:800;margin-bottom:6px;color:#0f1724}
.dialog-description{color:#666;line-height:1.5;font-size:.9rem}
.eyebrow{text-transform:uppercase;letter-spacing:.08em;color:var(--primary);font-size:.7rem;font-weight:800;margin-bottom:6px}

/* ===== Modal de produto (fiel ao legado) ===== */
.dialog-sheet:has(.product-image-top)>.dialog-close{display:none}
.dialog-sheet:has(.product-image-top){background:#fafafa}
.product-image-top{position:relative;height:150px;max-height:350px;overflow:hidden;background:#f8f9fa;margin:0 -16px;transition:height .3s ease}
.product-image-top.expanded{height:350px}
.prod-top-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.prod-top-placeholder{filter:grayscale(1) blur(1.5px);transform:scale(1.015);opacity:1;transition:opacity .28s ease}
.prod-top-full{opacity:0;transition:opacity .28s ease}
.product-image-top.image-loaded .prod-top-full{opacity:1}
.product-image-top.image-loaded .prod-top-placeholder{opacity:0}
.prod-image-loading{position:absolute;left:50%;bottom:13px;z-index:2;transform:translateX(-50%);width:42px;height:3px;border-radius:999px;overflow:hidden;background:rgba(255,255,255,.55)}
.prod-image-loading::after{content:"";display:block;width:55%;height:100%;border-radius:inherit;background:#fff;animation:prodImageLoading .9s ease-in-out infinite alternate}
.product-image-top.image-loaded .prod-image-loading{display:none}
@keyframes prodImageLoading{from{transform:translateX(-90%)}to{transform:translateX(170%)}}
.prod-action-btn{position:absolute;top:10px;width:42px;height:42px;padding:0;border:1px solid rgba(255,255,255,.72);border-radius:50%;background:rgba(255,255,255,.92);color:#18202d;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(15,23,42,.22),inset 0 1px 0 rgba(255,255,255,.88);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);cursor:pointer;z-index:3;transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease;-webkit-tap-highlight-color:transparent}
.prod-action-btn i{font-size:1rem;line-height:1}
.prod-action-btn:hover{transform:translateY(-1px);background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.26),inset 0 1px 0 #fff}
.prod-action-btn:active{transform:scale(.94)}
.prod-back{left:10px}
.prod-share{right:10px}
.img-expand-btn{position:absolute;left:50%;bottom:10px;width:50px;height:38px;padding:0;border:1px solid rgba(255,255,255,.72);border-radius:999px;background:rgba(255,255,255,.94);color:#18202d;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 8px 24px rgba(15,23,42,.24),inset 0 1px 0 rgba(255,255,255,.9);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);cursor:pointer;z-index:3;transform:translateX(-50%);transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease;-webkit-tap-highlight-color:transparent}
.img-expand-btn i{font-size:.95rem;line-height:1;transform:rotate(0);transition:transform .32s cubic-bezier(.34,1.56,.64,1)}
.img-expand-btn[aria-expanded="true"] i{transform:rotate(180deg)}
.img-expand-btn:hover{transform:translateX(-50%) translateY(-1px);background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.28),inset 0 1px 0 #fff}
.img-expand-btn:active{transform:translateX(-50%) scale(.94)}
.prod-action-btn:focus-visible,.img-expand-btn:focus-visible{outline:3px solid rgba(255,255,255,.95);outline-offset:3px}
@media (prefers-reduced-motion:reduce){.prod-action-btn,.img-expand-btn,.img-expand-btn i{transition:none}}
.prod-body{padding:14px 0 4px}
.prod-title{font-size:1.05rem;font-weight:800;color:#0f1724;margin:0 0 6px}
.prod-config-sticky{position:sticky;top:0;z-index:8;display:flex;align-items:center;min-height:48px;margin:-14px -16px 6px;padding:8px 16px;background:#fafafa;border-bottom:1px solid transparent;transition:border-color .15s,box-shadow .15s}
.prod-config-sticky .prod-title{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:padding-left .15s}
.prod-sticky-back{position:absolute;left:10px;width:38px;height:38px;padding:0;border:1px solid rgba(15,23,42,.08);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#333;box-shadow:0 6px 14px rgba(0,0,0,.12);opacity:0;visibility:hidden;pointer-events:none;transform:scale(.92);transition:opacity .15s,transform .15s,visibility .15s;cursor:pointer}
.prod-config-sticky.is-pinned{border-bottom-color:rgba(0,0,0,.08);box-shadow:0 5px 14px rgba(15,23,42,.06)}
.prod-config-sticky.is-pinned .prod-title{padding-left:44px}
.prod-config-sticky.is-pinned .prod-sticky-back{opacity:1;visibility:visible;pointer-events:auto;transform:scale(1)}
.prod-active-group{position:sticky;z-index:7;display:none;align-items:center;min-height:30px;margin:0 -16px;padding:6px 16px;background:#fff;border-bottom:1px solid rgba(0,0,0,.06);color:#6b7280;font-size:.78rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.prod-active-group.is-visible{display:flex}
.prod-desc{color:#6b7280;font-size:.85rem;margin:0 0 8px}
.prod-price{color:var(--primary);font-weight:800;font-size:1.2rem;margin:0 0 10px}
.grp-wrapper{margin-bottom:14px}
.grupo-header{position:sticky;top:0;z-index:4;display:flex;justify-content:space-between;align-items:center;gap:10px;background:#fafafa;padding:8px 0;border-bottom:1px solid rgba(0,0,0,.06)}
.grp-head-copy{flex:1;min-width:0}
.grp-head-title{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.grp-head-copy strong{font-size:.95rem;color:#0f1724}
.grp-count{font-size:.76rem;color:#8a94a6}
.badge-gratuito-qtd{display:inline-flex;align-items:center;gap:4px;border:1px solid #a7f3d0;border-radius:999px;background:#ecfdf5;color:#047857;font-size:.64rem;font-weight:800;line-height:1;padding:3px 6px;white-space:nowrap}
.badge-gratuito-qtd i{font-size:.58rem}
.badge-obrigatorio{background:var(--danger);color:#fff;font-size:.66rem;font-weight:700;border-radius:6px;padding:4px 7px;white-space:nowrap;text-transform:uppercase}
.grp-collapse-btn{display:inline-flex;align-items:center;gap:5px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#555;font-size:.74rem;font-weight:600;padding:5px 10px;cursor:pointer;min-width:96px;justify-content:center;white-space:nowrap}
.grp-body{background:#fff;border:1px solid #eee;border-radius:12px;overflow:hidden}
.grp-search-wrap{padding:8px}
.grp-search{width:100%;height:36px;border:1px solid var(--line);border-radius:999px;padding:0 14px;font-size:.82rem;outline-color:var(--primary)}
.grp-item{display:flex;align-items:center;gap:10px;padding:9px 10px;border-bottom:1px solid #f0f0f0;cursor:pointer;margin:0}
.grp-item:last-child{border-bottom:0}
.grp-item.is-sold-out{opacity:.55;cursor:not-allowed}
.grp-item.is-sold-out .grp-item-price{color:#dc2626;font-weight:700}
.grp-thumb{width:60px;height:60px;flex:0 0 60px;border-radius:6px;border:1px solid #eee;object-fit:cover;background:#f0f0f0;display:flex;align-items:center;justify-content:center;color:#b6bdc9}
.grp-item-copy{flex:1;min-width:0;display:grid;gap:2px}
.grp-item-label{font-weight:700;font-size:.88rem;color:#222}
.grp-item-description{color:#6b7280;font-size:.76rem;line-height:1.35}
.grp-item-price{color:#8a94a6;font-size:.8rem}
.grp-input{width:19px;height:19px;accent-color:var(--primary);flex:0 0 auto;margin:0}
.qty-controls{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto}
.btn-qty-minus,.btn-qty-plus{width:30px;height:30px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#555;font-size:1rem;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.qty-value{min-width:22px;text-align:center;font-weight:800;font-size:.92rem}
.pizza-size-chips{display:flex;gap:8px;overflow-x:auto;padding:10px;flex-wrap:nowrap;scrollbar-width:none;border:1px solid #eee;border-radius:12px;background:#fff}
.pizza-size-chips::-webkit-scrollbar{display:none}
.pizza-size-chip{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;padding:8px 14px;border:1.5px solid #ddd;border-radius:10px!important;cursor:pointer;white-space:nowrap;min-width:72px;text-align:center;background:#fff;transition:border-color .15s,background .15s}
.pizza-size-chip.active{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 10%,#fff)}
.pizza-size-chip-name{font-weight:700;font-size:.85rem;color:#0f172a}
.pizza-size-chip-price{font-size:.75rem;color:#64748b;margin-top:2px}
.pizza-flavor-list{overflow:hidden}
.pizza-flavor-category+.pizza-flavor-category{border-top:8px solid #f6f7f9}
.pizza-cat-header{padding:8px 10px 6px;color:#6b7280;font-size:.74rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;background:#fff;border-bottom:1px solid #f0f0f0}
.app-dialog.is-configurable-product .dialog-sheet{height:min(92vh,900px);overflow:hidden;display:flex;flex-direction:column}
.app-dialog.is-configurable-product #productDialogContent{display:flex;flex:1 1 auto;min-height:0;flex-direction:column}
.app-dialog.is-configurable-product .prod-scroll-area{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
.app-dialog.is-configurable-product .grupo-header{top:var(--product-group-sticky-offset,var(--product-sticky-offset,48px));z-index:6}
.app-dialog.is-configurable-product .pizza-flavor-list{overflow:visible}
.app-dialog.is-configurable-product .pizza-cat-header{position:sticky;top:var(--product-category-sticky-offset,100px);z-index:5}
.pizza-empty{margin-bottom:14px}
/* Carousel de imagens do produto (galeria) */
.prod-carousel{display:flex;width:100%;height:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.prod-carousel::-webkit-scrollbar{display:none}
.prod-carousel-slide{flex:0 0 100%;width:100%;height:100%;scroll-snap-align:center}
.prod-carousel-slide img{width:100%;height:100%;object-fit:cover;display:block}
.prod-carousel-dots{position:absolute;left:50%;transform:translateX(-50%);bottom:44px;display:flex;gap:6px;z-index:4}
.prod-carousel-dot{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.55);box-shadow:0 1px 4px rgba(0,0,0,.3);cursor:pointer}
.prod-carousel-dot.active{background:#fff;transform:scale(1.2)}

/* Preço/oferta/cashback do modal (legado) */
.prod-price .product-old-price{display:block;font-size:.82rem;color:#999;text-decoration:line-through;margin-bottom:2px;font-weight:500}
.prod-price .modal-promo{font-size:1.2rem}
.modal-promo-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.modal-promo-row .offer-badge{margin-left:0}
.modal-offer-hint{font-size:.76rem;color:#8a94a6;font-weight:500;margin-top:2px}
.prod-price .product-options{color:var(--primary);font-weight:800}
.modal-cashback{color:#18844f;font-weight:700;font-size:.82rem;margin:-4px 0 10px}
.product-packaging-preview{display:grid;gap:3px;margin:0 0 11px;padding:8px 10px;border-left:3px solid #d89a20;border-radius:0 9px 9px 0;background:#fffaf0;color:#745723;font-size:.69rem;line-height:1.35}.product-packaging-preview.is-hidden{display:none}.product-packaging-preview strong{display:flex;align-items:center;gap:5px;color:#956816;font-size:.65rem;text-transform:uppercase;letter-spacing:.035em}.product-packaging-preview span{display:block}

/* ===== Montador visual "Monte sua Pizza" ===== */
#productDialog.is-pizza-wizard{align-items:flex-end;justify-content:center}
.is-pizza-wizard .dialog-sheet{width:min(100%,680px);height:min(94vh,920px);height:min(94dvh,920px);max-height:min(94vh,920px);max-height:min(94dvh,920px);margin:0;padding:0;overflow:hidden;background:#fff;display:flex;flex-direction:column;border-radius:22px 22px 0 0}
.is-pizza-wizard .dialog-sheet>.dialog-close{display:none}
.is-pizza-wizard #productDialogContent{display:flex;flex:1 1 auto;min-width:0;min-height:0;flex-direction:column;overflow:hidden}
.pz-wizard{position:relative;display:flex;flex:1 1 auto;width:100%;height:100%;min-width:0;min-height:0;flex-direction:column}
.pz-head{position:relative;flex:0 0 auto;padding:16px 16px 14px;background:linear-gradient(155deg,color-mix(in srgb,var(--primary) 88%,#fff),var(--primary) 58%,color-mix(in srgb,var(--primary) 78%,#000));color:#fff;text-align:center}
.pz-close{position:absolute;left:12px;top:12px;width:38px;height:38px;border:1px solid rgba(255,255,255,.28);border-radius:50%;background:rgba(255,255,255,.15);color:#fff;display:inline-grid;place-items:center;cursor:pointer;font-size:1rem}
.pz-title{font-size:1.3rem;font-weight:800;letter-spacing:-.01em}
.pz-title i{margin-right:6px}
.pz-sub{margin-top:2px;color:rgba(255,255,255,.82);font-size:.88rem}
.pz-steps{display:flex;align-items:flex-start;justify-content:center;gap:10px;margin-top:14px}
.pz-step{display:flex;min-width:64px;flex-direction:column;align-items:center;gap:5px}
.pz-step small{color:rgba(255,255,255,.55);font-size:.67rem;font-weight:800;letter-spacing:.06em}
.pz-step.is-active small,.pz-step.is-done small{color:#fff}
.pz-step-dot{width:34px;height:34px;border-radius:50%;background:rgba(255,255,255,.2);color:rgba(255,255,255,.76);display:grid;place-items:center;font-weight:800}
.pz-step.is-active .pz-step-dot{background:#fff;color:var(--primary)}
.pz-step.is-done .pz-step-dot{background:#fffbe8;color:#18844f}
.pz-step-line{flex:0 0 34px;height:2px;margin-top:16px;border-radius:999px;background:rgba(255,255,255,.34)}
.pz-body{flex:1 1 0;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:16px;background:linear-gradient(#fff,#f7f8fb)}
.pz-pane-title h5{margin:0;color:#0f1724;font-size:1.15rem;font-weight:800;text-align:center}
.pz-pane-title p{margin:3px 0 0;color:#6b7280;font-size:.86rem;text-align:center}
.pz-pane-head{display:flex;align-items:flex-start;gap:10px;margin-bottom:12px}
.pz-pane-head .pz-pane-title{flex:1;padding-right:44px}
.pz-back{flex:0 0 44px;width:44px;height:44px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#333;display:grid;place-items:center;box-shadow:0 4px 10px rgba(15,23,42,.08);cursor:pointer}
.pz-sizes{display:grid;gap:10px;margin-top:14px}
.pz-size-card{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:14px 16px;border:1.5px solid var(--line);border-radius:12px;background:#fff;color:inherit;cursor:pointer;font:inherit;text-align:left}
.pz-size-name{color:#0f1724;font-size:1rem;font-weight:800}
.pz-size-flavors{flex:1;color:#8a94a6;font-size:.78rem;text-align:center}
.pz-size-price{color:var(--primary);font-weight:800}
.pz-size-card.is-selected{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 8%,#fff);box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 10%,transparent)}
.pz-board-scene{position:relative;overflow:hidden;margin-top:12px;padding:18px 12px 0;border:1px solid color-mix(in srgb,var(--primary) 14%,#ddd);border-radius:16px;background:radial-gradient(circle at 75% 16%,rgba(255,248,210,.95),transparent 34%),radial-gradient(circle at 20% 22%,color-mix(in srgb,var(--primary) 58%,#ffb15e),color-mix(in srgb,var(--primary) 76%,#5f2b00) 78%)}
.pz-board-scene:after{content:"";display:block;height:34px;margin:0 -12px;background:linear-gradient(90deg,#8b4b1e,#bd7936 42%,#7c4319)}
.pz-board-wrap{position:relative;z-index:1;width:min(76vw,350px);margin:0 auto -16px;filter:drop-shadow(0 14px 22px rgba(0,0,0,.35))}
.pz-board{display:block;width:100%;height:auto}
.pz-slice-hit{fill:rgba(0,0,0,.001);stroke:rgba(60,20,10,.88);stroke-width:.8;cursor:pointer}
.pz-slice-hit:focus{outline:none;stroke:#fff;stroke-width:2.2}
.pz-slice-add circle{fill:rgba(255,255,255,.9);stroke:rgba(92,48,18,.18);stroke-width:.8}
.pz-slice-add text{fill:#87430d;font-size:8px;font-weight:800;text-anchor:middle}
.pz-slice-remove{cursor:pointer}
.pz-slice-remove circle{fill:#e22222;stroke:#fff;stroke-width:1.2}
.pz-slice-remove text{fill:#fff;font-size:8px;font-weight:900;text-anchor:middle;pointer-events:none}
.pz-board-hint{min-height:1.2em;margin:14px 4px 2px;color:#64748b;font-size:.82rem;font-weight:700;text-align:center}
.is-pizza-wizard .secondary-button.pz-add-flavor{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex:0 1 auto;width:auto;min-height:44px;margin:0;border-radius:10px;color:var(--primary);white-space:nowrap}
.pz-add-label-short{display:none}
.pz-pane>.pz-add-flavor{width:calc(100% - 12px);margin:10px 6px 2px}
.pz-observation-inline{margin-top:14px}
.pz-picker{position:absolute;inset:0;z-index:30;display:flex;align-items:flex-end}
.pz-picker-backdrop{position:absolute;inset:0;border:0;border-radius:0;background:rgba(15,20,31,.55);cursor:pointer}
.pz-picker-sheet{position:relative;width:100%;max-height:78%;overflow:auto;padding:14px 14px calc(16px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;background:#fff;box-shadow:0 -12px 34px rgba(15,23,42,.25)}
.pz-picker-head{position:sticky;top:-14px;z-index:2;display:flex;align-items:center;justify-content:space-between;margin:-14px -14px 10px;padding:14px;border-bottom:1px solid var(--line);background:#fff}
.pz-picker-head strong{font-size:1rem}
.pz-picker-head .dialog-close{position:static;float:none;margin:0}
.pz-picker-list{display:grid}
.pz-picker .pizza-cat-header{position:sticky;top:55px;z-index:1;padding:10px 2px 6px;background:#fff;color:#8a94a6;font-size:.74rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.pz-flavor-option{width:100%;border:0;background:#fff;color:inherit;font:inherit;text-align:left}
.pz-flavor-option.is-selected{background:color-mix(in srgb,var(--primary) 7%,#fff)}
.pz-flavor-option:disabled{opacity:.5;cursor:not-allowed}
.pz-flavor-check{color:#18844f;font-size:1.1rem}
.pz-wizard .grp-wrapper{margin-bottom:14px}
.pz-wizard .grupo-header{top:0}
.is-pizza-wizard .prod-footer.pz-final-footer{position:relative;bottom:auto;z-index:9;flex:0 0 auto;margin:0;padding:12px clamp(18px,4vw,28px) calc(12px + env(safe-area-inset-bottom));box-shadow:0 -8px 24px rgba(15,23,42,.08)}
.pz-final-footer>.btn-add-bag:only-child{width:100%;flex-basis:100%}
.is-pizza-wizard .pz-progress-footer{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:10px}
.is-pizza-wizard .pz-progress-footer>.pz-add-flavor,.is-pizza-wizard .pz-progress-footer>.btn-add-bag{width:100%;min-width:0}
.is-pizza-wizard .pz-progress-footer>.btn-add-bag:only-child{grid-column:1/-1}
@media (min-width:761px){#productDialog.is-pizza-wizard{align-items:center;padding:18px}.is-pizza-wizard .dialog-sheet{border-radius:22px}}
@media (max-width:760px){#productDialog.is-pizza-wizard{align-items:stretch}.is-pizza-wizard .dialog-sheet{width:100vw;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;border-radius:0;box-shadow:none}.is-pizza-wizard .pz-head{padding-top:calc(16px + env(safe-area-inset-top))}.is-pizza-wizard .pz-close{top:calc(12px + env(safe-area-inset-top))}}
@media (max-width:420px){.pz-add-label-full{display:none}.pz-add-label-short{display:inline}.is-pizza-wizard .pz-progress-footer{gap:8px}.pz-progress-footer .pz-add-flavor{padding:0 12px}}
@media (max-width:360px){.pz-steps{gap:5px}.pz-step{min-width:58px}.pz-step-line{flex-basis:26px}}

/* Aviso de grupo obrigatório (legado grp-blink) */
.grp-count.grp-blink{color:var(--danger);font-weight:800;font-size:.86rem;animation:grpBlink .5s ease 4}
@keyframes grpBlink{50%{opacity:.25}}

.prod-obs{margin:6px 0 10px}
.prod-obs label{display:block;font-size:.8rem;color:#8a94a6;margin-bottom:5px}
.prod-obs textarea{width:100%;border:1px solid var(--line);border-radius:10px;padding:10px;resize:vertical;outline-color:var(--primary);background:#fff}
.prod-footer{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;gap:10px;margin:0 -16px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #eee}
.prod-footer .quantity-control{flex:0 0 132px;border-radius:10px}
.prod-footer .quantity-control button{height:44px;border-radius:0}
.btn-add-bag{flex:1;min-height:44px;border:0;border-radius:10px;background:var(--primary);color:#fff;font-weight:700;padding:0 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer}
.btn-add-bag:disabled{opacity:.55;cursor:not-allowed}
.app-dialog.is-configurable-product .prod-footer{position:relative;bottom:auto;z-index:9;flex:0 0 auto}

@media (max-width:760px){
  #productDialog[data-view="product"]{align-items:stretch}
  #productDialog[data-view="product"]>.dialog-sheet{width:100vw;height:100vh;height:100dvh;max-height:100vh;max-height:100dvh;border-radius:0;padding-right:0;padding-bottom:0;padding-left:0;overflow:hidden;display:flex;flex-direction:column;box-shadow:none}
  #productDialog[data-view="product"] #productDialogContent{display:flex;flex:1 1 auto;min-height:0;flex-direction:column}
  #productDialog[data-view="product"] .prod-body{padding:14px 16px 4px}
  #productDialog[data-view="product"] #productDialogContent>.prod-body{flex:1 1 auto;min-height:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}
  #productDialog[data-view="product"] .prod-footer{margin-right:0;margin-left:0}
  #productDialog[data-view="product"] #productDialogContent>.prod-footer{position:relative;bottom:auto;z-index:9;flex:0 0 auto}
  #productDialog[data-view="product"] .product-image-top{width:100%;height:calc(150px + env(safe-area-inset-top));max-height:calc(350px + env(safe-area-inset-top));margin-right:0;margin-left:0}
  #productDialog[data-view="product"] .product-image-top.expanded{height:min(calc(350px + env(safe-area-inset-top)),60dvh)}
  #productDialog[data-view="product"] .product-image-top .prod-action-btn{top:calc(10px + env(safe-area-inset-top))}
  .app-dialog.is-configurable-product .prod-config-sticky.is-pinned{min-height:calc(48px + env(safe-area-inset-top));padding-top:calc(8px + env(safe-area-inset-top))}
  .app-dialog.is-configurable-product .prod-footer{bottom:0}
}

/* Grupos de complementos */
.option-group{border:0;border-top:1px solid #f0f0f0;padding:14px 0;margin:0;min-width:0}
.option-heading{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px;background:#f8f9fc;border-radius:10px;padding:8px 10px}
.option-heading h3{font-size:.95rem;font-weight:700;margin:0;color:#2c3e50}
.option-rule{font-size:.7rem;padding:4px 8px;border-radius:999px;background:var(--primary);color:#fff;white-space:nowrap;font-weight:700;align-self:center}
.option-row{display:flex;align-items:center;gap:10px;padding:10px 2px;border-bottom:1px dashed #f0f0f0}
.option-row:last-child{border-bottom:0}
.option-row input{width:18px;height:18px;accent-color:var(--primary);flex:0 0 auto}
.option-row label{flex:1;font-size:.9rem}
.option-price{color:var(--primary);font-size:.85rem;font-weight:700}
.dialog-observation{width:100%;min-height:76px;resize:vertical;border:1px solid var(--line);border-radius:12px;padding:12px;outline-color:var(--primary)}
.add-row{position:sticky;bottom:0;display:grid;grid-template-columns:118px 1fr;gap:10px;padding-top:12px;background:linear-gradient(transparent,#fff 18%)}
.quantity-control{display:grid;grid-template-columns:36px 1fr 36px;align-items:center;border:1px solid var(--line);border-radius:999px;overflow:hidden;background:#fff}
.quantity-control button{height:46px;border:0;background:#fff;font-size:1.2rem;cursor:pointer;color:var(--primary);border-radius:0}
.quantity-control strong{text-align:center}
.primary-button{min-height:46px;border:0;border-radius:999px;background:var(--primary);color:#fff;font-weight:700;padding:0 18px;cursor:pointer}
.primary-button:disabled{opacity:.55;cursor:not-allowed}
.secondary-button{border:1px solid var(--line);border-radius:999px;background:#fff;font-weight:700;padding:0 16px;cursor:pointer;min-height:44px;margin-top:8px;color:#333}
.text-button{border:0;background:transparent;color:var(--primary);font-size:.8rem;font-weight:700;padding:8px 2px;cursor:pointer}

/* Sacola / listas */
.cart-items{display:grid;gap:10px;clear:both}
.cart-item{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;border:1px solid #eee;border-radius:12px;padding:12px;background:#fff}
.cart-item h3{font-size:.92rem;font-weight:700;margin:0 0 4px}
.cart-item p{color:#777;font-size:.8rem;margin:0}
.cart-item.is-invalid{border-color:#f0b8be;background:#fff8f9}
.cart-item strong{color:var(--primary)}
.cart-item-actions{display:inline-flex;align-items:center;gap:6px}
.cart-remove{width:30px;height:30px;border:0;border-radius:50%;background:#f4f4f4;font-size:1.15rem;cursor:pointer;color:#666}
.cart-edit{width:30px;height:30px;border:0;border-radius:50%;background:#eef2ff;font-size:.78rem;cursor:pointer;color:var(--primary)}
.cart-summary{display:flex;justify-content:space-between;gap:16px;border-top:1px solid #eee;margin-top:16px;padding:16px 2px;font-size:1.05rem;font-weight:700}
.checkout-button{width:100%}
.cart-totals{display:grid;grid-template-columns:1fr auto;gap:8px;border-top:1px solid #eee;margin-top:16px;padding:16px 2px}
.cart-totals strong{color:#0f1724}
.cart-savings-note{grid-column:1/-1;display:flex;align-items:center;gap:7px;margin:6px 0 0;padding:9px 12px;border-radius:12px;background:#ecfdf5;border:1px solid #bbf7d0;color:#18844f;font-size:.74rem;font-weight:600;line-height:1.3}
.cart-savings-note i{font-size:.85rem}
.cart-savings-note b{font-weight:800}
.coupon-form{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:16px}
.coupon-form input,.account-form input{height:44px;border:1px solid var(--line);border-radius:999px;padding:0 14px;outline-color:var(--primary)}
.coupon-form button{border:1px solid var(--line);border-radius:999px;background:#fff;font-weight:700;padding:0 16px;cursor:pointer;color:var(--primary)}
.coupon-message{font-size:.82rem;margin:8px 2px}
.coupon-message.is-valid,.cashback-hint{color:#18844f}
.coupon-message.is-invalid{color:var(--danger)}
.cashback-hint{font-size:.84rem;background:#effaf4;border-radius:10px;padding:10px}
.coupon-card{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;border:1px dashed var(--primary);border-radius:12px;padding:12px;background:#f8faff;text-align:left;cursor:pointer}
.coupon-card p{color:#777;font-size:.78rem;margin:5px 0 0}
.coupon-card strong,.positive-value{color:#18844f}
.coupon-card.is-highlighted{border-style:solid;box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 16%,transparent)}
.coupon-link-highlight{display:flex;align-items:center;gap:8px;margin:0 0 10px;padding:11px 12px;border-radius:12px;background:color-mix(in srgb,var(--primary) 10%,#fff);color:var(--primary)}
.coupon-link-highlight span{flex:1;color:#475569;font-size:.8rem}.coupon-link-highlight b{font-size:.9rem}
.negative-value{color:var(--danger)}

/* Sacola, perfil e pedidos usam um shell próprio de painel. */
.app-dialog:is(.is-cart-dialog,.is-account-dialog,.is-orders-dialog,.is-order-detail-dialog,.is-checkout-dialog,.is-tracking-dialog){align-items:stretch;justify-content:flex-end}
.app-dialog:is(.is-cart-dialog,.is-account-dialog,.is-orders-dialog,.is-order-detail-dialog,.is-checkout-dialog,.is-tracking-dialog)>.dialog-sheet{width:min(100%,560px);height:100dvh;max-height:none;margin:0;border-radius:22px 0 0 22px;padding:0;overflow:hidden;display:flex;flex-direction:column}
.app-dialog:is(.is-cart-dialog,.is-account-dialog,.is-orders-dialog,.is-order-detail-dialog,.is-checkout-dialog,.is-tracking-dialog)>.dialog-sheet>.dialog-close{display:none}
.app-dialog:is(.is-cart-dialog,.is-account-dialog,.is-orders-dialog,.is-order-detail-dialog,.is-checkout-dialog,.is-tracking-dialog) #productDialogContent{display:flex;flex:1 1 auto;min-height:0}
.panel-shell{display:flex;flex:1 1 auto;min-width:0;min-height:0;flex-direction:column;background:#fff}
.panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:62px;padding:calc(10px + env(safe-area-inset-top,0px)) 16px 10px;border-bottom:1px solid var(--line);background:#fff;flex:0 0 auto}
.panel-header h2{display:flex;align-items:center;gap:9px;margin:0;color:#0f172a;font-size:1.08rem;font-weight:800}
.panel-header h2 i{color:var(--primary);font-size:.95rem}
.panel-header>button{width:36px;height:36px;border:1px solid var(--line);border-radius:50%;background:#fff;color:#334155;font-size:1.25rem;line-height:1;cursor:pointer}
.panel-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding:14px 16px 20px;background:#f8fafc}
.panel-footer{flex:0 0 auto;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line);background:#fff;box-shadow:0 -8px 22px rgba(15,23,42,.06)}
.panel-footer>.primary-button{width:100%;min-height:46px}
@media (max-width:760px){
  .app-dialog:is(.is-cart-dialog,.is-account-dialog,.is-orders-dialog,.is-order-detail-dialog,.is-checkout-dialog,.is-tracking-dialog)>.dialog-sheet{width:100%;border-radius:0}
}

/* Sacola */
.cart-panel-body{display:flex;flex-direction:column;gap:12px}
.cart-products{display:grid;gap:10px}
.cart-product-card{border:1px solid var(--line);border-radius:14px;padding:11px;background:#fff;box-shadow:0 3px 12px rgba(15,23,42,.035)}
.cart-product-card.is-invalid{border-color:#f0b8be;background:#fff8f9}
.cart-product-main{display:flex;align-items:flex-start;gap:10px;min-width:0}
.cart-item-thumb{width:64px;height:64px;flex:0 0 64px;border:1px solid #e5e7eb;border-radius:9px;object-fit:cover;background:#f1f5f9}
.cart-item-thumb-empty{display:grid;place-items:center;color:#a8b0bd}
.cart-product-copy{min-width:0;flex:1}
.cart-product-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.cart-product-title-row h3{margin:0;color:#0f172a;font-size:.86rem;line-height:1.35;font-weight:800}
.cart-product-title-row>strong{color:#0f172a;font-size:.84rem;white-space:nowrap}
.cart-item-note,.cart-item-error,.cart-item-cashback{margin:5px 0 0;font-size:.73rem;line-height:1.42}
.cart-item-note{color:#64748b}.cart-item-error{color:var(--danger)}.cart-item-cashback{color:#18844f;font-weight:700}
.cart-config-block{display:grid;gap:2px;margin-top:6px;padding-left:8px;border-left:2px solid #e2e8f0;color:#64748b;font-size:.7rem;line-height:1.38}
.cart-config-block>strong{color:#475569;font-size:.69rem;text-transform:uppercase;letter-spacing:.035em}
.cart-config-block>span{display:block}.cart-config-block small{color:#18844f;font-size:inherit}
.cart-config-block.is-packaging{border-left-color:#d89a20;background:#fffaf0;padding:6px 8px;border-radius:0 8px 8px 0}.cart-config-block.is-packaging>strong{color:#956816}.cart-config-block.is-packaging>strong i{margin-right:4px}
.cart-trip-action{width:100%;min-height:42px;display:grid;grid-template-columns:28px minmax(0,1fr) 18px;align-items:center;gap:8px;margin-top:8px;padding:7px 9px;border:1px solid #d8e0ea;border-radius:10px;background:#f7f9fc;color:#566278;text-align:left;cursor:pointer}.cart-trip-action>i:first-child{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:#e8edf4;color:#68758a}.cart-trip-action>span{min-width:0;display:grid;gap:1px}.cart-trip-action b{color:#3a465b;font-size:.7rem}.cart-trip-action small{color:#7a8699;font-size:.59rem}.cart-trip-action>i:last-child{visibility:hidden;color:#21824c}.cart-trip-action.is-active{border-color:#9bd2af;background:#edf9f1;color:#207747}.cart-trip-action.is-active>i:first-child{background:#d7f0df;color:#21824c}.cart-trip-action.is-active>i:last-child{visibility:visible}.cart-trip-action.is-active b,.cart-trip-action.is-active small{color:#207747}
.cart-item-controls{display:flex;align-items:center;gap:7px;margin-top:9px}
.cart-qty-control{display:inline-flex;align-items:center;min-height:32px;border:1px solid #dbe2ea;border-radius:999px;overflow:hidden;background:#fff}
.cart-qty-control button{width:32px;height:30px;border:0;background:#fff;color:var(--primary);font-size:1rem;cursor:pointer}
.cart-qty-control span{min-width:27px;text-align:center;color:#0f172a;font-size:.8rem;font-weight:800}
.cart-icon-action{width:32px;height:32px;border:1px solid #dbe2ea;border-radius:50%;display:grid;place-items:center;background:#fff;cursor:pointer;font-size:.72rem}
.cart-icon-action.is-edit{color:var(--primary)}.cart-icon-action.is-remove{color:var(--danger);margin-left:auto}
.cart-invalid-remove{margin-top:8px;border:0;background:transparent;color:var(--danger);font-size:.76rem;font-weight:700;cursor:pointer}
.cart-empty{display:grid;place-items:center;gap:7px;min-height:280px;text-align:center;color:#64748b}
.cart-empty>i{font-size:4.2rem;color:#d1d5db}.cart-empty h3{margin:5px 0 0;color:#334155}.cart-empty p{margin:0;font-size:.84rem}
.cart-empty .text-button{margin-top:10px;font-weight:800}
.cart-panel-body>.cart-totals{margin-top:auto;border:0;border-radius:14px;padding:13px 14px;background:#fff}
.cart-panel-footer{display:grid;gap:9px}
.coupon-shortcut{border:1px dashed color-mix(in srgb,var(--primary) 55%,#fff);border-radius:12px;background:color-mix(in srgb,var(--primary) 7%,#fff);overflow:hidden}
.coupon-shortcut summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 11px;cursor:pointer;list-style:none;color:var(--primary)}
.coupon-shortcut summary::-webkit-details-marker{display:none}
.coupon-shortcut summary>i:first-child{width:30px;height:30px;flex:0 0 auto;display:grid;place-items:center;border-radius:9px;background:#fff;font-size:.85rem}
.coupon-shortcut summary>span{min-width:0;flex:1;display:grid;gap:1px}
.coupon-shortcut summary b{color:#0f172a;font-size:.8rem}
.coupon-shortcut summary small{overflow:hidden;color:#64748b;font-size:.67rem;text-overflow:ellipsis;white-space:nowrap}
.coupon-shortcut summary>i:last-child{font-size:.68rem;color:var(--primary);transition:transform .18s;margin-left:auto}
.coupon-shortcut[open] summary>i:last-child{transform:rotate(180deg)}
.coupon-shortcut.is-applied{border-style:solid;border-color:#86d7ac;background:#ecfdf5}
.coupon-shortcut.is-applied summary{color:#15804d}
.coupon-shortcut .coupon-form{margin:0;padding:0 12px 9px}
.coupon-shortcut>.text-button{margin:0 12px 10px;display:inline-block}
.coupon-shortcut>.coupon-message{margin:0 12px 12px}
.cart-footer-cashback{margin:0;padding:8px 10px;border-radius:10px;background:#ecfdf5;color:#187a4b;font-size:.75rem;text-align:center}
.cart-footer-actions{display:grid;grid-template-columns:minmax(118px,.75fr) minmax(0,1.5fr);gap:9px}
.cart-footer-actions button{min-height:46px;margin:0;padding:0 12px}
@media (max-width:380px){.cart-footer-actions{grid-template-columns:1fr}.cart-footer-actions .secondary-button{min-height:38px}.cart-item-thumb{width:56px;height:56px;flex-basis:56px}}

/* Conta / endereços / pedidos */
.account-form{display:grid;gap:12px}
.account-form label{display:grid;gap:6px;font-size:.84rem;font-weight:700}
.account-form small{font-weight:500;color:#8a94a6}
.account-form select{height:44px;border:1px solid var(--line);border-radius:12px;padding:0 12px;background:#fff}
.account-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}
.account-summary p{background:#f8f9fc;border-radius:12px;padding:12px;font-size:.8rem;margin:0}
.account-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.account-actions .secondary-button{margin:0;min-height:46px}
.account-actions .primary-button{grid-column:1/-1}
.field-hint{color:#8a94a6;font-size:.78rem;line-height:1.45}
.address-list{display:grid;gap:10px;clear:both;margin-bottom:14px}
.address-card,.order-card{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;border:1px solid #eee;border-radius:12px;padding:12px;background:#fff;text-align:left;font:inherit;color:inherit}
.address-card h3,.order-card h3{font-size:.92rem;font-weight:700;margin:0 0 4px}
.address-card p,.order-card p{color:#777;font-size:.78rem;margin:0}
.inline-actions{display:flex;gap:6px}
.inline-actions button,.address-card>button{border:1px solid var(--line);border-radius:999px;background:#fff;padding:7px 12px;cursor:pointer;color:#333}
.order-card{cursor:pointer}
.order-card strong{white-space:nowrap;color:var(--primary)}
.status-pill{display:inline-flex;margin-top:6px;padding:4px 10px;border-radius:999px;background:#e9f0ff;color:var(--primary);font-size:.7rem;font-weight:800}
.order-status{display:flex;justify-content:space-between;gap:14px;margin:12px 0 16px;padding:12px;border-radius:12px;background:#f8f9fc}
.order-status b{color:var(--primary)}
.order-status span{color:#8a94a6;font-size:.8rem}
.check-label{display:flex!important;flex-direction:row;align-items:center;gap:8px}
.check-label input{width:18px;height:18px;accent-color:var(--primary)}
.order-success{text-align:center;padding:40px 8px}
.success-mark{display:grid;place-items:center;width:72px;height:72px;margin:0 auto 18px;border-radius:50%;background:#e8f8ef;color:#18844f;font-size:2.2rem;font-weight:900}

/* Checkout */
.checkout-form{display:grid;gap:14px}
.checkout-section{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:1px solid #eee;border-radius:14px;padding:14px;margin:0;min-width:0}
.checkout-section legend{font-weight:800;padding:0 5px;color:#2c3e50;font-size:.95rem}
.checkout-section label{display:grid;gap:5px;font-size:.8rem;font-weight:700}
.checkout-section input,.checkout-section select{height:42px;border:1px solid var(--line);border-radius:12px;padding:0 11px;background:#fff;min-width:0}
.checkout-section label:has(textarea){grid-column:1/-1}
.checkout-form>.secondary-button{min-height:46px}
.checkout-shell{width:100%}
.checkout-header{min-height:76px}.checkout-header>div{display:grid;gap:1px}.checkout-header p{margin:0;color:var(--primary);font-size:.65rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.checkout-header h2{font-size:1.13rem}.checkout-header small{display:flex;align-items:center;gap:6px;color:#64748b;font-size:.7rem;font-weight:700}.checkout-header small i{color:var(--primary)}
.checkout-stepper{position:relative;display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:3px;padding:10px 14px 9px;border-bottom:1px solid var(--line);background:#fff;flex:0 0 auto}.checkout-stepper:before{content:"";position:absolute;left:18%;right:18%;top:24px;height:2px;background:#e2e8f0}.checkout-step{position:relative;z-index:1;display:grid;justify-items:center;gap:4px;color:#94a3b8;text-align:center}.checkout-step i{width:28px;height:28px;display:grid;place-items:center;border:2px solid #e2e8f0;border-radius:50%;background:#fff;font-size:.64rem}.checkout-step small{font-size:.63rem;font-weight:700;white-space:nowrap}.checkout-step.is-active,.checkout-step.is-done{color:var(--primary)}.checkout-step.is-active i,.checkout-step.is-done i{border-color:var(--primary)}.checkout-step.is-done i{background:var(--primary);color:#fff}
.checkout-panel-body{padding:17px 16px 24px;background:#f8fafc;scroll-padding-bottom:90px}.checkout-stage{display:grid;align-content:start;gap:14px;max-width:100%}.checkout-stage-heading{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:start;gap:11px}.checkout-stage-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:color-mix(in srgb,var(--primary) 12%,#fff);color:var(--primary)}.checkout-stage-heading p{margin:0 0 2px;color:var(--primary);font-size:.65rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.checkout-stage-heading h3{margin:0;color:#0f172a;font-size:1rem;line-height:1.25}.checkout-stage-heading small{display:block;margin-top:4px;color:#718096;font-size:.72rem;line-height:1.45}
.checkout-secure-note{display:flex;align-items:flex-start;gap:10px;padding:11px 12px;border:1px solid #dbeafe;border-radius:13px;background:#eff6ff;color:#475569}.checkout-secure-note>i{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:#fff;color:var(--primary);flex:0 0 auto}.checkout-secure-note span{display:grid;gap:2px}.checkout-secure-note b{color:#334155;font-size:.76rem}.checkout-secure-note small{color:#64748b;font-size:.68rem;line-height:1.42}.checkout-secure-note.is-confirmed{border-color:#bbf7d0;background:#ecfdf5}.checkout-secure-note.is-confirmed>i{color:#18844f}
.checkout-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.checkout-fields label,.checkout-change-field{display:grid;gap:5px;color:#334155;font-size:.75rem;font-weight:800}.checkout-fields label.is-wide{grid-column:1/-1}.checkout-fields input,.checkout-fields select,.checkout-change-field input,.checkout-table-field input{width:100%;height:44px;border:1px solid #d8dee8;border-radius:11px;padding:0 12px;background:#fff;color:#0f172a;outline:0;font:inherit}.checkout-fields input:focus,.checkout-fields select:focus,.checkout-change-field input:focus,.checkout-table-field input:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 13%,transparent)}.checkout-fields input[readonly]{background:#f1f5f9;color:#64748b}
.checkout-address-list{display:grid;gap:8px}.checkout-address-list>h4,.checkout-new-address-fields>h4{margin:0 0 1px;color:#334155;font-size:.77rem}.checkout-address-card{display:grid;grid-template-columns:32px minmax(0,1fr) auto auto;align-items:center;gap:9px;width:100%;min-height:62px;padding:9px 11px;border:1px solid var(--line);border-radius:13px;background:#fff;color:#475569;text-align:left;font:inherit;cursor:pointer}.checkout-address-card>i:first-child{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#f1f5f9;color:#64748b}.checkout-address-card>span{display:grid;gap:2px;min-width:0}.checkout-address-card b{color:#0f172a;font-size:.78rem}.checkout-address-card small{overflow:hidden;color:#718096;font-size:.67rem;line-height:1.35;text-overflow:ellipsis}.checkout-address-card em{padding:3px 6px;border-radius:999px;background:#ecfdf5;color:#18844f;font-size:.58rem;font-style:normal;font-weight:800}.checkout-address-card>i:last-child{color:#cbd5e1}.checkout-address-card.is-selected{border-color:var(--primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 10%,transparent)}.checkout-address-card.is-selected>i:first-child{background:color-mix(in srgb,var(--primary) 12%,#fff);color:var(--primary)}.checkout-address-card.is-selected>i:last-child{color:var(--primary)}.checkout-new-address{justify-self:start;border:0;background:transparent;color:var(--primary);padding:6px 2px;font-size:.72rem;font-weight:800;cursor:pointer}.checkout-new-address-fields{display:grid;gap:9px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff}.checkout-new-address-fields.is-hidden{display:none}
.checkout-freight-card{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 12px;border:1px solid #bbf7d0;border-radius:13px;background:#ecfdf5;color:#18844f}.checkout-freight-card>i:first-child{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#fff}.checkout-freight-card span{display:grid;gap:2px}.checkout-freight-card b{font-size:.8rem}.checkout-freight-card small{color:#4b7b63;font-size:.67rem;line-height:1.35}
.checkout-mesa-stage{justify-items:stretch}.checkout-table-field{display:grid;gap:7px;padding:16px;border:1px solid var(--line);border-radius:15px;background:#fff;color:#334155;font-size:.78rem;font-weight:800}.checkout-table-field input{height:58px;text-align:center;color:var(--primary);font-size:1.35rem;font-weight:900}
.checkout-payment-tabs{display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:4px;border-radius:13px;background:#e9edf3}.checkout-payment-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;border:0;border-radius:10px;background:transparent;color:#64748b;font-size:.69rem;font-weight:800;cursor:pointer}.checkout-payment-tabs button.has-no-available:not(.is-active){opacity:.58}.checkout-payment-tabs button.is-active{background:#fff;color:var(--primary);box-shadow:0 3px 9px rgba(15,23,42,.08)}
.checkout-payment-list{display:grid;gap:8px}.checkout-payment-card{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:9px;min-height:66px;padding:10px 11px;border:1px solid var(--line);border-radius:13px;background:#fff;cursor:pointer}.checkout-payment-card>input{position:absolute;opacity:0;pointer-events:none}.checkout-payment-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#f1f5f9;color:#64748b}.checkout-payment-card>span:nth-of-type(2){display:grid;gap:2px}.checkout-payment-card b{color:#0f172a;font-size:.78rem}.checkout-payment-card small{color:#718096;font-size:.66rem}.checkout-payment-card>i{color:#cbd5e1}.checkout-payment-card.is-selected{border-color:var(--primary);box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 10%,transparent)}.checkout-payment-card.is-selected .checkout-payment-icon{background:color-mix(in srgb,var(--primary) 12%,#fff);color:var(--primary)}.checkout-payment-card.is-selected>i{color:var(--primary)}.checkout-payment-card.is-disabled{opacity:.5;cursor:not-allowed}.checkout-payment-badges{display:flex!important;flex-wrap:wrap;gap:4px;margin-top:2px}.checkout-payment-badges em{padding:2px 5px;border-radius:999px;background:#eef4ff;color:var(--primary);font-size:.55rem;font-style:normal;font-weight:800}.checkout-payment-badges em.is-success{background:#ecfdf5;color:#18844f}.checkout-payment-empty{padding:20px;border:1px dashed #cbd5e1;border-radius:12px;color:#64748b;text-align:center;font-size:.75rem}
.checkout-observation{border:1px solid var(--line);border-radius:13px;background:#fff;overflow:hidden}.checkout-observation summary{display:flex;align-items:center;gap:8px;padding:11px 12px;cursor:pointer;list-style:none;color:#334155;font-size:.75rem;font-weight:800}.checkout-observation summary::-webkit-details-marker{display:none}.checkout-observation textarea{display:block;width:calc(100% - 22px);margin:0 11px 11px;min-height:70px}.checkout-change-field{padding:12px;border:1px solid var(--line);border-radius:13px;background:#fff}.checkout-change-field small{color:#718096;font-size:.65rem;font-weight:600}.checkout-pix-manual{display:grid;gap:10px;padding:12px;border:1px solid #bbf7d0;border-radius:13px;background:#f0fdf4}.checkout-pix-manual>div,.checkout-pix-manual>label{display:grid;gap:4px;margin:0}.checkout-pix-manual span{color:#475569;font-size:.68rem;font-weight:800}.checkout-pix-manual strong,.checkout-pix-key-group input{color:#15803d;font-weight:900}.checkout-pix-key-group{display:flex;min-width:0}.checkout-pix-key-group input{min-width:0;flex:1;height:42px;border:1px solid #86efac;border-right:0;border-radius:10px 0 0 10px;padding:0 10px;background:#fff;outline:0}.checkout-pix-key-group button{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:42px;border:1px solid #15803d;border-radius:0 10px 10px 0;padding:0 12px;background:#15803d;color:#fff;font-size:.69rem;font-weight:900;cursor:pointer}.checkout-pix-key-group button:disabled{opacity:.5;cursor:not-allowed}
.checkout-summary{display:grid;grid-template-columns:1fr auto;gap:7px;padding:13px;border:1px solid var(--line);border-radius:14px;background:#fff;color:#475569;font-size:.73rem}.checkout-summary strong{text-align:right;color:#0f172a}.checkout-summary .positive-value{color:#18844f}.checkout-total-label,.checkout-total-value{margin-top:5px;padding-top:10px;border-top:1px solid var(--line);font-size:.88rem;font-weight:900}.checkout-total-value{color:var(--primary)!important}.checkout-summary>p{grid-column:1/-1;display:flex;align-items:flex-start;gap:6px;margin:4px 0 0;color:#718096;font-size:.62rem;line-height:1.4}.checkout-summary>p i{margin-top:2px;color:var(--primary)}
.checkout-footer{padding-top:10px}.checkout-footer-actions{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.4fr);gap:8px}.checkout-footer-actions.is-location{grid-template-columns:minmax(86px,.58fr) minmax(0,1.6fr)}.checkout-footer-actions.is-location [data-checkout-next]{padding:0 8px;font-size:clamp(.66rem,3vw,.76rem);letter-spacing:-.01em;white-space:nowrap}.checkout-footer-actions>span:only-child{display:none}.checkout-footer-actions button{min-height:46px;margin:0;padding:0 12px}.checkout-success{display:grid;justify-items:center;align-content:center;min-height:100%;padding:30px 8px}.checkout-success h2{margin:0;color:#0f172a}.checkout-success p{margin:5px 0;color:#64748b}.checkout-success-actions{display:grid;gap:8px}.checkout-success-actions button{width:100%;margin:0;min-height:44px}
.is-checkout-dialog .panel-footer{display:grid;gap:8px}.is-checkout-dialog .panel-footer>button{width:100%;min-height:44px;margin:0}
@media (max-width:560px){.checkout-section,.checkout-fields{grid-template-columns:1fr}.checkout-fields label.is-wide{grid-column:auto}.account-summary{grid-template-columns:1fr}.account-actions{grid-template-columns:1fr}.account-actions .primary-button{grid-column:1}.checkout-panel-body{padding:15px 14px 22px}.checkout-stepper{padding-left:9px;padding-right:9px}.checkout-address-card{grid-template-columns:30px minmax(0,1fr) auto}.checkout-address-card em{display:none}.checkout-footer-actions{grid-template-columns:minmax(105px,.72fr) minmax(0,1.35fr)}}
@media (max-width:360px){.checkout-step small{font-size:.57rem}.checkout-footer-actions{grid-template-columns:1fr}.checkout-footer-actions>.secondary-button{min-height:38px}.checkout-payment-tabs{grid-template-columns:1fr}.checkout-stage-heading{grid-template-columns:36px minmax(0,1fr)}.checkout-stage-icon{width:36px;height:36px}}

/* Perfil */
.is-account-dialog .panel-body{display:grid;align-content:start;gap:14px;background:#f8fafc}
.account-login-intro{display:flex;align-items:flex-start;gap:12px;padding:14px;border:1px solid #dbeafe;border-radius:14px;background:#eff6ff;color:#475569}
.account-login-intro>i{margin-top:2px;color:var(--primary)}.account-login-intro p{margin:0;font-size:.84rem;line-height:1.5}
.profile-hero{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px;border-radius:16px;background:var(--primary);background:linear-gradient(135deg,var(--primary),color-mix(in srgb,var(--primary) 72%,#111827));color:#fff;box-shadow:0 10px 24px rgba(15,23,42,.14)}
.profile-avatar{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.2);font-size:1.2rem;border:2px solid rgba(255,255,255,.45)}
.profile-hero h3{margin:0;font-size:1rem}.profile-hero p{margin:3px 0 0;font-size:.78rem}.profile-hero small{display:block;margin-top:3px;color:rgba(255,255,255,.78);font-size:.69rem}
.profile-hero>button{align-self:start;border:1px solid rgba(255,255,255,.4);border-radius:999px;padding:6px 10px;background:rgba(255,255,255,.13);color:#fff;font-size:.7rem;cursor:pointer}
.profile-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px}
.profile-stats>div{display:grid;gap:4px;padding:11px;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:center}
.profile-stats span{color:#64748b;font-size:.67rem}.profile-stats b{color:#0f172a;font-size:.84rem}
.profile-tabs{position:sticky;z-index:5;top:-14px;display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:0 -2px;padding:8px 2px;border-bottom:1px solid var(--line);background:#f8fafc}
.profile-tabs button{display:flex;align-items:center;justify-content:center;gap:6px;min-height:39px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#475569;font-size:.75rem;font-weight:700;cursor:pointer}
.profile-tabs button:hover,.profile-tabs button:focus-visible{border-color:var(--primary);color:var(--primary);outline:0}
.profile-section{display:grid;gap:10px}.profile-section>h3,.profile-section-title h3{margin:0;color:#0f172a;font-size:.9rem}
.profile-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.profile-section-title button{border:0;background:transparent;color:var(--primary);font-size:.74rem;font-weight:800;cursor:pointer}
.profile-order-list{display:grid;gap:9px}.profile-empty{padding:20px;border:1px dashed #cbd5e1;border-radius:12px;color:#64748b;text-align:center;font-size:.8rem;background:#fff}
.profile-menu{display:grid;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff}
.profile-menu>button{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:58px;padding:9px 12px;border:0;border-bottom:1px solid #eef2f7;background:#fff;color:#334155;text-align:left;cursor:pointer}
.profile-menu>button:last-child{border-bottom:0}.profile-menu>button>i:first-child{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#eff4ff;color:var(--primary)}.profile-menu>button>i:last-child{color:#a0a8b5;font-size:.68rem}
.profile-menu span{display:grid;gap:2px}.profile-menu b{font-size:.8rem}.profile-menu small{color:#7b8798;font-size:.68rem}
.account-footer-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.account-footer-actions button,.is-account-dialog .panel-footer>button{width:100%;min-height:44px;margin:0}
.is-account-dialog .address-card{align-items:flex-start}.is-account-dialog .address-card>div:first-child{min-width:0;flex:1}.is-account-dialog .inline-actions{flex-wrap:wrap;justify-content:flex-end}.cashback-order-link{margin-top:6px;border:0;background:transparent;color:var(--primary);padding:0;font-size:.72rem;font-weight:800;cursor:pointer}
@media (max-width:480px){.profile-hero{grid-template-columns:auto minmax(0,1fr)}.profile-hero>button{grid-column:1/-1;justify-self:end;margin-top:-6px}.profile-stats{grid-template-columns:repeat(2,1fr)}.account-footer-actions{grid-template-columns:1fr}.is-account-dialog .address-card{display:grid}.is-account-dialog .inline-actions{justify-content:flex-start}}

/* Pedidos e detalhe */
.orders-intro{padding:10px 12px;border-radius:12px;background:#eef4ff;color:#52627a;font-size:.77rem;line-height:1.45}.orders-intro p{margin:0}
.orders-list,.profile-order-list{display:grid;gap:10px}
.order-summary-card{width:100%;display:grid;gap:9px;padding:12px;border:1px solid var(--line);border-radius:14px;background:#fff;color:inherit;text-align:left;font:inherit;cursor:pointer;box-shadow:0 3px 12px rgba(15,23,42,.035)}
.order-summary-card:hover,.order-summary-card:focus-visible{border-color:color-mix(in srgb,var(--primary) 55%,#dbe2ea);outline:0;box-shadow:0 7px 18px rgba(15,23,42,.08)}
.order-card-top,.order-card-bottom,.order-card-meta{display:flex;align-items:center;justify-content:space-between;gap:10px}.order-number{color:#0f172a;font-size:.84rem;font-weight:800}
.order-status-badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:.64rem;font-weight:800;white-space:nowrap;background:#f1f5f9;color:#475569}
.order-status-badge.is-pending{background:#fff7db;color:#946200}.order-status-badge.is-progress{background:#e9f0ff;color:#245bc2}.order-status-badge.is-ready{background:#e8f7ff;color:#08739b}.order-status-badge.is-success{background:#e8f8ef;color:#187a4b}.order-status-badge.is-danger{background:#fff0f1;color:#c02835}
.order-card-meta{justify-content:flex-start;color:#738095;font-size:.68rem}.order-card-meta time{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-progress{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.order-progress span{height:4px;border-radius:999px;background:#e5e9ef}.order-progress span.is-active{background:var(--primary)}.order-progress.is-danger span.is-active{background:var(--danger)}
.order-card-bottom>div{display:grid;gap:1px}.order-card-bottom strong{color:#0f172a;font-size:.9rem}.order-card-bottom small{color:#8a94a6;font-size:.65rem}.order-card-bottom>span{color:var(--primary);font-size:.68rem;font-weight:800}
.orders-empty{display:grid;place-items:center;gap:8px;min-height:220px;border:1px dashed #cbd5e1;border-radius:14px;background:#fff;color:#7b8798;text-align:center}.orders-empty i{font-size:2rem;color:#b8c0cc}.orders-empty p{margin:0;font-size:.8rem}
.is-orders-dialog .panel-footer>button,.is-order-detail-dialog .panel-footer>button{width:100%;min-height:44px;margin:0}.is-order-detail-dialog .panel-footer{display:grid;gap:8px}
.order-detail-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:13px;border:1px solid var(--line);border-radius:14px;background:#fff}.order-detail-summary>div{display:grid;gap:3px}.order-detail-summary>div span{color:#0f172a;font-size:.86rem;font-weight:800}.order-detail-summary time{color:#7b8798;font-size:.68rem}.order-detail-summary .order-progress{grid-column:1/-1}
.order-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.order-info-card{display:flex;align-items:flex-start;gap:9px;padding:11px;border:1px solid var(--line);border-radius:12px;background:#fff}.order-info-card>i{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:#eff4ff;color:var(--primary);font-size:.76rem}.order-info-card b{color:#334155;font-size:.73rem}.order-info-card p{margin:3px 0 0;color:#718096;font-size:.68rem;line-height:1.42}
.order-general-note,.order-items-section,.order-evaluation{display:grid;gap:9px}.order-general-note{padding:11px;border-radius:12px;background:#fff8e8;color:#6f5b28;font-size:.75rem}.order-general-note p{margin:0;white-space:pre-wrap}.order-items-section>h3,.order-evaluation>h3{margin:0;color:#0f172a;font-size:.88rem}
.order-detail-items{display:grid;gap:9px}.order-detail-item{display:grid;grid-template-columns:58px minmax(0,1fr);gap:10px;padding:10px;border:1px solid var(--line);border-radius:13px;background:#fff}.order-detail-item>img,.order-item-image{width:58px;height:58px;border:1px solid #e5e7eb;border-radius:9px;object-fit:cover;background:#f1f5f9}.order-item-image{display:grid;place-items:center;color:#a8b0bd}
.order-item-title{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.order-item-title h3{margin:0;color:#0f172a;font-size:.79rem;line-height:1.35}.order-item-title strong{font-size:.76rem;white-space:nowrap}.order-item-note{margin:5px 0 0;color:#64748b;font-size:.69rem}
.order-detail-item.is-packaging{border-color:#efcf8d;border-left:4px solid #d89a20;background:#fffaf0}.order-item-packaging-label{display:flex;align-items:center;gap:4px;width:max-content;margin:4px 0 0;padding:2px 6px;border-radius:999px;background:#fff0c7;color:#956816;font-size:.61rem;font-weight:800}
.order-item-config{display:grid;gap:2px;margin-top:6px;padding-left:8px;border-left:2px solid #dbe2ea;color:#64748b;font-size:.67rem;line-height:1.38}.order-item-config>strong{text-transform:uppercase;letter-spacing:.03em;color:#475569;font-size:.64rem}.order-item-config small{color:#18844f;font-size:inherit}
.order-totals{display:grid;grid-template-columns:1fr auto;gap:7px;padding:13px;border:1px solid var(--line);border-radius:13px;background:#fff;font-size:.75rem}.order-totals strong{text-align:right}.order-total-label,.order-total-value{padding-top:9px;border-top:1px solid var(--line);font-size:.88rem;font-weight:800}.order-total-value{color:var(--primary)}
.order-evaluation{padding:13px;border:1px solid var(--line);border-radius:13px;background:#fff}
@media (max-width:480px){.order-info-grid{grid-template-columns:1fr}.order-detail-item{grid-template-columns:52px minmax(0,1fr)}.order-detail-item>img,.order-item-image{width:52px;height:52px}.order-card-top{align-items:flex-start}}

/* Pagamento */
.payment-panel{display:grid;gap:14px;clear:both;padding:12px 0}
.payment-panel h2{margin-bottom:0}
.payment-qr{width:min(78vw,300px);height:auto;margin:4px auto;border:1px solid #eee;border-radius:16px;padding:10px;background:#fff}
.payment-copy{display:grid;gap:6px;font-size:.8rem;font-weight:700}
.payment-copy textarea{min-height:86px;resize:none;border:1px solid var(--line);border-radius:12px;padding:10px;font-size:.76rem;word-break:break-all}
.payment-note{color:#8a94a6;font-size:.78rem;line-height:1.45;text-align:center}
.payment-panel .secondary-button{width:100%;min-height:46px}
.link-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;line-height:46px}
.mp-card-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.mp-card-form label{display:grid;gap:5px;font-size:.8rem;font-weight:700}
.mp-card-form input,.mp-card-form select,.mp-field{height:44px;border:1px solid var(--line);border-radius:12px;padding:0 11px;background:#fff;min-width:0}
.mp-field{padding:11px}
.mp-full{grid-column:1/-1}
.mp-save{display:flex!important;align-items:center;gap:8px}
.mp-save input{width:18px;height:18px;accent-color:var(--primary)}
@media (max-width:560px){.mp-card-form{grid-template-columns:1fr}.mp-full{grid-column:1}}
.saved-payment{display:grid;gap:12px;border:1px solid #eee;border-radius:14px;padding:14px}
.saved-payment h3{margin:0;font-size:.95rem}
.saved-payment>label{display:grid;gap:5px;font-size:.8rem;font-weight:700}
.saved-payment>label>input{height:44px;border:1px solid var(--line);border-radius:12px;padding:0 11px}
.saved-card-list{display:grid;gap:7px}
.saved-card-option{display:flex;align-items:center;gap:8px;border:1px solid #eee;border-radius:12px;padding:11px;cursor:pointer}
.saved-card-option input{accent-color:var(--primary)}
.section-separator{display:flex;align-items:center;gap:10px;color:#8a94a6;font-size:.72rem}
.section-separator:before,.section-separator:after{content:"";height:1px;flex:1;background:#eee}

/* ===== Gates (unidade/cardápio/promoções) — modais estilo legado ===== */
.app-modal-locked{overflow:hidden}
.app-gate{position:fixed;z-index:1060;inset:0;display:none;align-items:center;justify-content:center;padding:18px}
.app-gate.is-open{display:flex}
.app-gate-backdrop{position:absolute;inset:0;border:0;background:rgba(15,20,31,.6);backdrop-filter:blur(3px);border-radius:0}
.app-gate-card{position:relative;width:min(100%,560px);max-height:min(90vh,820px);overflow:auto;border-radius:22px;background:#fff;padding:clamp(20px,5vw,30px);box-shadow:0 20px 44px rgba(7,16,44,.22)}
.gate-close{position:absolute;top:12px;right:12px;float:none;margin:0}
.app-gate-header h2{font-size:1.2rem;font-weight:800;margin-bottom:8px;color:#0f1724}
.app-gate-header>p:last-child{color:#6b7280;line-height:1.5;margin-bottom:18px}

/* Ajuste de tamanho do texto (A-/A+) — fica no modal de "como você quer pedir" */
.text-scale-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-4px 0 16px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:#f8fafc}
.text-scale-row-label{display:flex;align-items:center;gap:8px;color:#334155;font-size:.86rem;font-weight:700}
.text-scale-row-label i{color:var(--primary);font-size:.9rem}
.text-scale-buttons{display:inline-flex;align-items:stretch;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff;flex:0 0 auto}
.text-scale-btn{width:46px;min-height:42px;border:0;background:#fff;color:var(--primary);font-weight:800;font-size:1rem;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.text-scale-btn+.text-scale-btn{border-left:1px solid var(--line)}
.text-scale-btn sup{font-size:.65em;margin-left:1px}
.text-scale-btn:first-child{font-size:.82rem}
.text-scale-btn:last-child{font-size:1.15rem}
.text-scale-btn:disabled{opacity:.4;cursor:not-allowed}
.text-scale-btn:not(:disabled):hover,.text-scale-btn:not(:disabled):focus-visible{background:color-mix(in srgb,var(--primary) 10%,#fff);outline:0}
.app-choice-list{display:grid;gap:10px}
.app-choice-card{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:72px;border:1px solid #eee;border-radius:14px;padding:14px 16px;background:#fff;color:#333;text-align:left;cursor:pointer;font:inherit}
.app-choice-card:hover,.app-choice-card:focus-visible{border-color:var(--primary);box-shadow:0 7px 22px rgba(0,0,0,.08);outline:0}
.app-choice-card.is-selected{border-color:var(--primary);background:color-mix(in srgb,var(--primary) 7%,#fff);box-shadow:0 0 0 2px color-mix(in srgb,var(--primary) 16%,transparent)}
.app-choice-card:disabled{opacity:.58;cursor:wait}
.app-choice-card span{display:grid;gap:5px}
.app-choice-card strong{font-size:.98rem}
.app-choice-card small{color:#777;line-height:1.35}
.app-choice-card>b{display:grid;place-items:center;min-width:28px;min-height:28px;color:var(--primary);font-size:1.6rem}
.app-choice-card.is-selected>b{border-radius:50%;background:var(--primary);color:#fff;font-size:.78rem}
@media (max-width:760px){.app-gate{align-items:flex-end;padding:0}.app-gate-card{width:100%;max-height:92vh;border-radius:22px 22px 0 0;padding:20px 16px calc(22px + env(safe-area-inset-bottom))}}

/* Splash de carregamento (legado #loading-screen) */
#loading-screen{position:fixed;top:0;left:0;width:100%;height:100%;background-color:var(--primary);z-index:9999;display:flex;align-items:center;justify-content:center;transition:opacity .5s ease-out}
#loading-screen.is-done{opacity:0;pointer-events:none}
.loading-inner{display:flex;flex-direction:column;align-items:center;gap:24px}
.loading-logo{width:100px;height:100px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:0 4px 15px rgba(0,0,0,.2);background:#fff}
.loading-logo-icon{display:flex;align-items:center;justify-content:center}
.loading-spinner{width:32px;height:32px;border:3px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:appSpin .75s linear infinite}
@keyframes appSpin{to{transform:rotate(360deg)}}

/* Ofertas e Promoções — modal do legado */
.app-gate-centered{align-items:center!important;padding:18px!important}
.promotions-card{width:min(100%,520px);padding:0!important;overflow:hidden;display:flex;flex-direction:column}
.app-gate-centered .promotions-card{max-height:min(86vh,760px);border-radius:22px!important}
.promo-modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line);background:#fff;flex:0 0 auto}
.promo-modal-header h5{margin:0;font-size:1.05rem;font-weight:800;color:#0f172a;display:flex;align-items:center;gap:8px}
.promo-modal-header h5 i{color:#0f172a;font-size:.95rem}
.promo-modal-header .dialog-close{position:static;float:none;margin:0}
.promo-modal-body{overflow:auto;padding:16px}
.promo-modal-subtitle{color:#6b7280;font-size:.86rem;margin-bottom:14px}
.promo-section{margin-bottom:16px}
.promo-section-title{font-size:.8rem;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:#6b7280;margin-bottom:.45rem;display:flex;align-items:center;gap:8px}
.promo-rule-card{border:1px dashed #cbd5e1;border-radius:12px;padding:.62rem .68rem;background:#f8fafc;margin-bottom:.45rem}
.promo-rule-title{margin:0 0 .12rem;font-size:.84rem;font-weight:700;color:#0f172a}
.promo-rule-meta{margin:0;color:#64748b;font-size:.78rem}
.promo-offer-card{border:1px solid var(--line);border-radius:12px;padding:.55rem;display:flex;align-items:center;gap:.65rem;background:#fff;cursor:pointer;width:100%;text-align:left;font:inherit;color:inherit;margin-bottom:.55rem}
.promo-offer-thumb-wrap{width:72px;height:72px;flex:0 0 72px;position:relative;border-radius:8px;overflow:hidden;background:linear-gradient(180deg,#f8fafc 0%,#eef2f7 100%)}
.promo-offer-thumb{width:100%;height:100%;object-fit:cover;display:flex;align-items:center;justify-content:center;border-radius:inherit;color:#b6bdc9}
.promo-offer-body{min-width:0}
.promo-offer-name{margin:0;font-size:.88rem;font-weight:700;color:#0f172a;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.promo-offer-prices{margin-top:.28rem;display:flex;align-items:baseline;gap:.36rem;flex-wrap:wrap}
.promo-offer-old{color:#94a3b8;text-decoration:line-through;font-size:.74rem}
.promo-offer-new{color:var(--primary);font-weight:800;font-size:.96rem}
.promo-offer-prices .offer-badge{margin-left:0}
.promo-offer-card.is-sold-out{opacity:.65}
.sold-out-badge{display:inline-block;margin-top:6px;padding:3px 8px;border-radius:999px;background:rgba(26,31,43,.8);color:#fff;font-size:.68rem;font-weight:800}
.promo-coupon-card,.promo-payment-card{border:1px solid var(--line);border-radius:12px;padding:.58rem .62rem;display:flex;align-items:center;justify-content:space-between;gap:.45rem;background:#fff;width:100%;text-align:left;font:inherit;color:inherit;margin-bottom:.45rem}
.promo-coupon-card{cursor:pointer}
.promo-coupon-card>span,.promo-payment-card>span{display:grid;gap:2px;min-width:0}
.promo-coupon-code{font-weight:800;color:#0f172a;letter-spacing:.02em}
.promo-coupon-meta{color:#64748b;font-size:.78rem}
.promo-coupon-value{color:#18844f;white-space:nowrap;font-size:.88rem}

/* Feedback da unidade — mesmas ações do topo de referência */
.store-feedback-dialog-card{width:min(100%,560px);max-height:min(86vh,760px);padding:0!important;overflow:hidden;display:flex;flex-direction:column}
.store-feedback-dialog-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px;border-bottom:1px solid var(--line);background:#fff;flex:0 0 auto}
.store-feedback-dialog-header h2{margin:2px 0 0;color:#0f172a;font-size:1.1rem;line-height:1.2}
.store-feedback-dialog-header .dialog-close{position:static;float:none;margin:0}
.feedback-dialog-kicker{color:var(--primary);font-size:.7rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.store-feedback-comments{display:grid;gap:10px;min-height:150px;padding:16px;overflow:auto;background:#f8fafc}
.store-feedback-loading,.store-feedback-empty{display:grid;place-items:center;min-height:120px;padding:18px;color:#64748b;text-align:center}
.store-feedback-comment{display:grid;gap:6px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:0 4px 12px rgba(15,23,42,.04)}
.store-feedback-comment-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.store-feedback-comment-head strong{color:#0f172a;font-size:.85rem}
.store-feedback-comment-head time{color:#94a3b8;font-size:.68rem;white-space:nowrap}
.store-feedback-comment p{margin:0;color:#475569;font-size:.82rem;line-height:1.5;white-space:pre-wrap}
.store-feedback-reply{display:grid;gap:4px;margin-top:4px;padding:9px 10px;border-left:3px solid var(--primary);border-radius:0 10px 10px 0;background:#f8faff}
.store-feedback-reply strong{color:var(--primary);font-size:.72rem}
.store-feedback-login{margin:0 16px 16px}
.store-feedback-form{display:grid;gap:7px;padding:13px 16px 16px;border-top:1px solid var(--line);background:#fff}
.store-feedback-form>label{color:#334155;font-size:.75rem;font-weight:800}
.store-feedback-compose{display:flex;align-items:flex-end;gap:8px}
.store-feedback-compose textarea{flex:1;min-height:48px;max-height:120px;resize:vertical;border:1px solid var(--line);border-radius:14px;padding:10px 12px;outline:0;font:inherit}
.store-feedback-compose textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 16%,transparent)}
.store-feedback-compose .primary-button{width:44px;height:44px;min-width:44px;padding:0;border-radius:50%;display:grid;place-items:center}

@media (max-width:575.98px){
  .app-header{--app-cover-height:190px;--app-header-overlap:80px}
  .header-wrap{padding:0 15px 12px}
  .header-content{padding:46px 10px 13px;border-radius:20px}
  .logo-frame{top:-50px;width:92px;height:92px}
  .logo-frame img,.store-logo-inline-icon{width:84px;height:84px}
  .store-header-center h1{font-size:1.1rem}
  .store-desc{font-size:.88rem}
  .store-feedback-actions{gap:8px}
  .store-feedback-actions .quick-icon-btn{width:36px;height:36px}
  .mode-tab{min-height:36px;padding:7px 16px}
  .store-feedback-dialog-card{max-height:92vh;border-radius:22px 22px 0 0!important}
}

/* Toast */
.app-toast{position:fixed;z-index:1080;top:0;left:50%;transform:translate(-50%,calc(-100% - 32px));max-width:min(90vw,460px);padding:12px 16px;border-radius:12px;background:#1c2434;color:#fff;opacity:0;visibility:hidden;pointer-events:none;box-shadow:none;transition:transform .2s ease,opacity .16s ease,visibility 0s linear .2s}
.app-toast.is-visible{transform:translate(-50%,calc(16px + env(safe-area-inset-top,0px)));opacity:1;visibility:visible;pointer-events:auto;box-shadow:0 20px 44px rgba(7,16,44,.22);transition-delay:0s}

/* ===== Landing / erro (host genérico) ===== */
.app-landing{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at top,#eaf0ff 0,#f5f7fb 48%,#eef1f8 100%)}
.landing-card{width:min(100%,560px);padding:clamp(28px,7vw,52px);border:1px solid rgba(255,255,255,.8);border-radius:28px;background:rgba(255,255,255,.92);box-shadow:0 20px 44px rgba(7,16,44,.22)}
.landing-card h1{font-size:clamp(1.8rem,6vw,2.65rem);line-height:1.08}
.landing-card>p:not(.eyebrow){color:#6b7280;line-height:1.55}
.brand-mark{display:grid;place-items:center;width:56px;height:56px;border-radius:18px;background:var(--primary);color:#fff;font-size:1.6rem;font-weight:900;margin-bottom:20px}
.slug-form{display:grid;gap:10px;margin-top:28px}
.slug-form label{font-size:.82rem;font-weight:700}
.slug-field{display:flex;align-items:center;border:1px solid var(--line);border-radius:999px;background:#fff;overflow:hidden}
.slug-field input{min-width:0;flex:1;height:48px;border:0;outline:0;padding:0 16px}
.slug-field span{padding-right:16px;color:#6b7280;font-size:.84rem}
.error-card{text-align:center}
.error-card .brand-mark{margin-left:auto;margin-right:auto;background:var(--danger)}

@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Checkout — identificação com ícones (fiel ao app2) */
.checkout-icon-input{display:flex;align-items:stretch;border:1px solid #d8dee8;border-radius:11px;overflow:hidden;background:#fff}
.checkout-field-icon{width:46px;display:grid;place-items:center;background:var(--primary);color:#fff;font-size:.95rem;flex:0 0 auto}
.checkout-fields .checkout-icon-input input{flex:1;min-width:0;height:44px;border:0;border-radius:0}
.checkout-fields .checkout-icon-input input:focus{box-shadow:none}
.checkout-icon-input:focus-within{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 13%,transparent)}
.checkout-field-hint{color:#718096;font-size:.66rem;font-weight:600;line-height:1.45}

/* Checkout — lista de endereços com ações */
.checkout-address-card{grid-template-columns:32px minmax(0,1fr) auto}
.checkout-address-card.is-selected{background:var(--primary);border-color:var(--primary);box-shadow:none;color:#e2e8f0}
.checkout-address-card.is-selected b{color:#fff}
.checkout-address-card.is-selected small{color:rgba(255,255,255,.82)}
.checkout-address-card.is-selected>i:first-child{background:rgba(255,255,255,.14);color:#fff}
.checkout-address-actions{display:flex;gap:6px}
.address-action-btn{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:#fff;color:#334155;font-size:.78rem;cursor:pointer}
.address-action-btn.is-danger{color:#dc2626;border-color:#fecaca}
.checkout-address-empty{margin:0;padding:14px;border:1px dashed #cbd5e1;border-radius:12px;color:#64748b;font-size:.73rem;text-align:center}
.checkout-new-address-pill{display:inline-flex;align-items:center;gap:8px;justify-self:start;margin-top:2px;padding:11px 18px;border:0;border-radius:999px;background:var(--primary);color:#fff;font-size:.75rem;font-weight:800;cursor:pointer}

/* Endereço — CEP com busca e localização atual */
.cep-row{display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:7px}
.cep-search-btn{border:1px solid #d8dee8;border-radius:11px;background:#fff;color:#334155;cursor:pointer;min-height:42px}
.location-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:42px;border:1px solid color-mix(in srgb,var(--primary) 40%,#fff);border-radius:999px;background:#fff;color:var(--primary);font-size:.73rem;font-weight:800;cursor:pointer}

/* Submodal de endereço (sobre o checkout) */
.address-editor-card{width:min(100%,520px);padding:0;overflow:hidden;display:flex;flex-direction:column}
.address-editor-header{display:flex;align-items:center;justify-content:space-between;padding:13px 16px;border-bottom:1px solid var(--line);flex:0 0 auto}
.address-editor-header h2{margin:0;font-size:1rem;font-weight:800;color:#0f1724}
.address-editor-close{width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:#fff;color:#333;font-size:1.1rem;line-height:1;cursor:pointer}
.address-editor-form{display:grid;gap:10px;padding:14px 16px calc(18px + env(safe-area-inset-bottom));overflow:auto}
.address-editor-form label{display:grid;gap:5px;color:#334155;font-size:.75rem;font-weight:800}
.address-editor-form input,.address-editor-form select{width:100%;height:42px;border:1px solid #d8dee8;border-radius:11px;padding:0 12px;background:#fff;color:#0f172a;font:inherit;min-width:0;outline:0}
.address-editor-form input:focus,.address-editor-form select:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 13%,transparent)}
.address-editor-form>.primary-button{margin-top:4px;min-height:46px}
.address-editor-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:9px}
.address-editor-row-uf{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:9px}
.address-map-hint{display:flex;align-items:flex-start;gap:8px;margin:12px 16px;padding:10px 12px;border-radius:11px;background:#eff6ff;color:#1e40af;font-size:.72rem;line-height:1.45;flex:0 0 auto}
.address-map-hint i{margin-top:2px}.address-map-hint span{display:grid;gap:2px}.address-map-hint b{color:#1e3a8a;font-size:.76rem}
.address-editor-map-shell{position:relative;height:min(46vh,320px);width:100%;flex:0 0 auto;background:#e2e8f0;overflow:hidden}
.address-editor-map{height:100%;width:100%;background:#e2e8f0}
.address-editor-actions{display:grid;gap:8px;padding:14px 16px calc(16px + env(safe-area-inset-bottom));flex:0 0 auto}
.address-editor-actions button{width:100%;min-height:44px;margin:0}

/* Checkout: confirmação obrigatória e precisa do destino */
.checkout-location-stage{gap:12px}
.checkout-location-address{display:flex;align-items:center;gap:10px;padding:11px 12px;border:1px solid var(--line);border-radius:13px;background:#fff}
.checkout-location-address>i{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--primary) 12%,#fff);color:var(--primary)}
.checkout-location-address span{min-width:0;display:grid;gap:2px}
.checkout-location-address b{font-size:.8rem;color:#0f172a}
.checkout-location-address small{font-size:.68rem;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.checkout-location-map-shell{position:relative;width:100%;height:min(46vh,360px);min-height:270px;border:1px solid #cbd5e1;border-radius:16px;background:#dbeafe;overflow:hidden}
.checkout-location-map{width:100%;height:100%;background:#dbeafe;z-index:0}
.map-center-pin{position:absolute;left:50%;top:50%;z-index:650;width:42px;height:48px;display:grid;place-items:center;pointer-events:none;transform:translate(-50%,-100%);filter:drop-shadow(0 5px 5px rgba(15,23,42,.3))}
.map-center-pin>i{position:relative;z-index:2;color:#dc2626;font-size:42px;line-height:1;text-shadow:0 1px 0 #fff,1px 0 0 #fff,-1px 0 0 #fff}
.map-center-pin>b{position:absolute;left:50%;bottom:-4px;width:14px;height:6px;border-radius:50%;background:rgba(15,23,42,.22);transform:translateX(-50%)}
.checkout-location-status{display:flex;align-items:flex-start;gap:9px;padding:11px 12px;border-radius:12px;background:#eff6ff;color:#1e40af;font-size:.71rem;line-height:1.45}
.checkout-location-status>i{margin-top:2px;flex:0 0 auto}
.checkout-location-status>span{display:grid;gap:2px}.checkout-location-status b{font-size:.73rem;letter-spacing:.02em}.checkout-location-status small{font-size:.69rem;line-height:1.45}
.checkout-location-status.is-warning{background:#fff7ed;color:#9a3412}
.checkout-location-status.is-precise{background:#ecfdf5;color:#166534}
.checkout-location-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.checkout-location-actions .location-btn{border-radius:12px;padding:8px 10px;line-height:1.3}
.checkout-location-actions .location-btn:disabled{opacity:.45;cursor:not-allowed}
.checkout-location-privacy{display:flex;align-items:flex-start;gap:8px;margin:0;color:#64748b;font-size:.65rem;line-height:1.45}
.checkout-location-privacy i{margin-top:2px;color:var(--primary)}
@media (max-width:480px){.checkout-location-actions{grid-template-columns:1fr}.checkout-location-map-shell{height:40vh;min-height:250px}}

/* Checkout — confirmação do WhatsApp por código (OTP inline) */
.checkout-otp-block{grid-column:1/-1;display:grid;gap:6px}
.checkout-otp-block>label{display:grid;gap:5px;color:#334155;font-size:.75rem;font-weight:800}
.otp-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
.otp-row input{width:100%;height:44px;border:1px solid #d8dee8;border-radius:11px;padding:0 12px;background:#fff;color:#0f172a;font:inherit;letter-spacing:.35em;text-align:center;outline:0;min-width:0}
.otp-row input:focus{border-color:var(--primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 13%,transparent)}
.otp-verify-btn{min-height:44px;padding:0 18px;border:0;border-radius:11px;background:var(--primary);color:#fff;font-weight:800;font-size:.78rem;cursor:pointer}
.checkout-otp-resend{justify-self:start;border:0;background:transparent;padding:2px 0;color:var(--primary);font-size:.7rem;font-weight:800;cursor:pointer}
.checkout-otp-login{justify-self:start;display:inline-flex;align-items:center;gap:6px;padding:6px 0}

/* Submodal de endereço: sempre centralizado e com todos os cantos redondos */
#addressEditorGate{align-items:center;padding:16px}
.address-editor-card{border-radius:22px;max-height:min(92vh,760px)}

/* Sacola — troca de modalidade (só as ativas) */
.cart-mode-switch{display:grid;gap:6px}
.cart-mode-switch>small{color:#64748b;font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.cart-mode-tabs{display:flex;gap:5px;padding:4px;border-radius:13px;background:#e9edf3}
.cart-mode-tabs button{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;min-height:40px;border:0;border-radius:10px;background:transparent;color:#64748b;font-size:.72rem;font-weight:800;cursor:pointer}
.cart-mode-tabs button.is-active{background:var(--primary);color:#fff;box-shadow:0 3px 9px rgba(15,23,42,.16)}
.cart-mode-tabs button:disabled{opacity:.6;cursor:wait}

/* Sacola — item indisponível na modalidade atual */
.cart-product-card.is-invalid .cart-product-title-row h3{text-decoration:line-through;color:#94a3b8}
.cart-product-card.is-invalid .cart-product-title-row strong{color:#94a3b8;text-decoration:line-through}
.cart-product-card.is-invalid .cart-item-thumb{filter:grayscale(1);opacity:.55}
.cart-invalid-tag{display:inline-flex;align-items:center;gap:5px;margin-top:5px;padding:3px 9px;border-radius:999px;background:#fee2e2;color:#b91c1c;font-size:.62rem;font-weight:800;width:fit-content}

/* Confirmação elegante do app (substitui window.confirm) */
#confirmGate{z-index:1070;align-items:center;padding:18px}
.confirm-card{width:min(100%,400px);border-radius:22px;padding:26px 22px 20px;text-align:center;display:grid;justify-items:center;gap:8px}
.confirm-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:50%;background:color-mix(in srgb,var(--primary) 12%,#fff);color:var(--primary);font-size:1.35rem;margin-bottom:4px}
.confirm-icon.is-danger{background:#fee2e2;color:#dc2626}
.confirm-card h2{margin:0;font-size:1.05rem;font-weight:800;color:#0f1724}
.confirm-card p{margin:0 0 10px;color:#64748b;font-size:.82rem;line-height:1.5}
.confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
.confirm-actions button{min-height:44px;margin:0;width:100%}
#confirmOk.is-danger{background:#dc2626;border-color:#dc2626}

/* Endereços: lápis e lixeira sempre lado a lado (vence o display:grid do >span) */
.checkout-address-card>.checkout-address-actions{display:flex;flex-direction:row;align-items:center;gap:6px;flex:0 0 auto}

/* Identificação: trocar número */
.checkout-trocar-numero{justify-self:start;margin-top:-6px;border:0;background:transparent;padding:2px 0;color:var(--primary);font-size:.7rem;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;gap:5px}

/* Gate inicial de atendimento (retirada/entrega/mesa) */
.mode-gate-card>span:not(.mode-gate-icon){flex:1;min-width:0;display:grid;gap:2px}
.mode-gate-card small{color:#718096;font-size:.72rem;line-height:1.4}
.mode-gate-icon{width:44px;height:44px;flex:0 0 auto;display:grid;place-items:center;border-radius:13px;background:color-mix(in srgb,var(--primary) 12%,#fff);color:var(--primary);font-size:1.05rem}

/* Mesa via QR: leitor de câmera no checkout */
.mesa-qr-box{display:grid;gap:10px;padding:14px;border:1px solid var(--line);border-radius:15px;background:#fff}
.mesa-qr-title{margin:0;color:#334155;font-size:.85rem}
.mesa-qr-title b{color:var(--primary);font-size:1rem}
.mesa-qr-reader{display:none;border-radius:12px;overflow:hidden;background:#0f172a}
.mesa-qr-reader.is-active{display:block}
.mesa-qr-reader video{display:block;width:100%;max-height:280px;object-fit:cover}

/* ── Acompanhar entrega em tempo real ── */
.order-tracking-card{display:flex;align-items:center;gap:12px;width:100%;margin:0 0 14px;padding:13px 14px;border:1px solid #c7ddf8;border-radius:14px;background:linear-gradient(135deg,#eef5ff,#fff);cursor:pointer;text-align:left;font:inherit}
.order-tracking-card .order-tracking-icon{font-size:1.65rem;line-height:1;filter:drop-shadow(0 3px 4px rgba(20,40,80,.28))}
.order-tracking-card b{font-size:.92rem;color:#122a4d}
.order-tracking-card p{margin:2px 0 0;color:#61708a;font-size:.78rem}
.order-tracking-card>i{margin-left:auto;color:#2563eb}
.order-tracking-card.is-in-list{margin:-4px 0 4px;border-radius:0 0 14px 14px;border-top:0}
/* Outros mapas do app mantêm o tratamento já existente. */
.leaflet-tile-pane{filter:saturate(.82) sepia(.14) brightness(1.03)}

/* Modal de rastreio em tela cheia: o mapa ocupa tudo e o card do entregador flutua por cima */
.app-dialog.is-tracking-dialog{align-items:stretch;justify-content:stretch;padding:0}
.app-dialog.is-tracking-dialog>.dialog-sheet{width:100vw;height:100vh;height:100dvh;max-height:none;margin:0;border-radius:0;padding:0;overflow:hidden;display:flex;flex-direction:column;box-shadow:none}
.is-tracking-dialog .panel-body{position:relative;padding:0;overflow:hidden;background:#e8edf4}
.order-track-wrap{position:absolute;inset:0}
.order-track-map{position:absolute;inset:0;z-index:0}
/* Rastreio usa o CARTO Positron puro, idêntico ao mapa do Gestor Vendas. */
.order-track-map .leaflet-tile-pane{filter:none}
.order-track-overlay{position:absolute;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:900;display:grid;gap:8px}
.order-track-info{display:flex;align-items:center;gap:11px;padding:12px 13px;border:1px solid #e2e8f2;border-radius:15px;background:rgba(255,255,255,.96);backdrop-filter:blur(6px);box-shadow:0 14px 34px rgba(15,23,42,.22)}
.order-track-info>div{min-width:0}
.order-track-info.is-stale{border-color:#f3c97a;background:rgba(255,251,235,.97)}
.order-track-avatar{width:46px;height:46px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:#eef2ff;color:#2563eb}
.order-track-avatar img{width:100%;height:100%;object-fit:cover}
.order-track-info b{font-size:.9rem}
.order-track-info p{margin:2px 0 0;color:#61708a;font-size:.78rem}
.order-track-live-status{display:block;width:max-content;max-width:100%;margin-top:2px;padding:2px 7px;border-radius:999px;background:#dcfce7;color:#087443;font-size:.61rem;font-weight:800;line-height:1.35;white-space:nowrap}
.order-track-live-status.is-stale{background:#fef3c7;color:#9a5807}
.order-track-moto{display:grid;place-items:center;width:26px;height:39px;transform-origin:50% 50%;transition:transform .55s ease-out,opacity .2s ease;will-change:transform;filter:drop-shadow(1px 3px 2px rgba(15,23,42,.34)) drop-shadow(0 1px 1px rgba(255,255,255,.7))}
.order-track-moto.is-stale{opacity:.66;filter:grayscale(.45) drop-shadow(2px 5px 4px rgba(15,23,42,.28))}
.order-track-moto svg{width:26px;height:39px;overflow:visible}
.order-track-moto svg,.order-track-cliente svg{display:block}
.order-track-cliente{display:block;filter:drop-shadow(0 3px 4px rgba(15,23,42,.3))}
/* Roleta segura no checkout */
.roulette-checkout-stage{display:grid;gap:14px}.roulette-loading{display:grid;place-items:center;gap:8px;min-height:250px;color:#64748b}.roulette-loading i{font-size:28px;color:var(--primary)}.roulette-app-wrap{position:relative;display:grid;place-items:center;width:100%;padding:14px 0 8px}.roulette-app-pointer{position:absolute;z-index:3;top:0;color:#111827;font-size:36px;filter:drop-shadow(0 2px 1px #fff)}.roulette-app-wheel-container{position:relative;width:min(270px,72vw);aspect-ratio:1;border:8px solid #fff;border-radius:50%;box-shadow:0 0 0 4px #1f2937,0 15px 32px rgba(15,23,42,.22);overflow:hidden}.roulette-app-wheel-container canvas{display:block}.roulette-app-wheel-hub{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;gap:2px;width:42%;aspect-ratio:1;padding:8px;border:5px solid rgba(255,255,255,.85);border-radius:50%;background:#fff;box-shadow:0 5px 18px rgba(15,23,42,.2);text-align:center;pointer-events:none}.roulette-app-wheel-hub i{font-size:22px;color:var(--primary)}.roulette-app-wheel-hub span{max-width:82px;font-size:11px;font-weight:900;line-height:1.15;color:#172033}.ss-confete-camada{position:fixed;inset:0;pointer-events:none;z-index:9999;overflow:hidden}.ss-confete{position:absolute;top:-14px;width:8px;height:14px;border-radius:2px;opacity:.95;animation-name:ss-confete-cair;animation-timing-function:cubic-bezier(.35,.6,.4,1);animation-fill-mode:forwards}@keyframes ss-confete-cair{0%{transform:translate(0,0) rotate(0deg);opacity:1}100%{transform:translate(var(--drift,0px),108vh) rotate(var(--rot,360deg));opacity:.25}}.roulette-app-legend{display:flex;justify-content:center;flex-wrap:wrap;gap:6px}.roulette-app-legend span{display:flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:#f8fafc;color:#475569;font-size:10px}.roulette-app-legend i{width:9px;height:9px;border-radius:50%}.roulette-result{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid #bbf7d0;border-radius:14px;background:#f0fdf4;color:#166534}.roulette-result>i{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#dcfce7;font-size:18px}.roulette-result span,.roulette-result small,.roulette-result strong,.roulette-result em{display:block}.roulette-result small{font-size:9px;font-weight:800;text-transform:uppercase}.roulette-result strong{font-size:15px}.roulette-result em{margin-top:2px;font-size:10px;font-style:normal;color:#4b6f58}.roulette-result.is-used{border-color:#e2e8f0;background:#f8fafc;color:#475569}.roulette-result.is-used>i{background:#e2e8f0}.roulette-day-lock{display:flex;align-items:center;gap:8px;padding:11px;border-radius:12px;background:#f1f5f9;color:#475569;font-size:11px}.roulette-skip{justify-self:center;border:0;background:transparent;color:#64748b;text-decoration:underline;font-size:11px}.checkout-stepper:has(.checkout-step:nth-child(5)){gap:3px}.checkout-stepper:has(.checkout-step:nth-child(5)) .checkout-step small{font-size:8px}
@media(max-width:420px){.roulette-app-wheel{width:min(240px,70vw)}.roulette-app-legend span{font-size:9px}.roulette-checkout-stage .checkout-stage-heading small{font-size:10px}}
