/* NFC Menu · Atualização 52
   Acabamento de vendas, packs e acessibilidade do painel.
   Não altera as regras de preços, sessões, pedidos ou permissões. */

/* A oferta de assinatura só é apresentada no produto Menu NFC e, de modo
   contextual, no resumo do pedido que contenha esses produtos. */
.nfc52-menu-offer,.nfc52-checkout-offer {
  border:1px solid #d6e3ed;
  border-radius:18px;
  padding:clamp(17px,2.5vw,24px);
  background:linear-gradient(155deg,#fcfdff,#f4f8fb);
  color:#17314e;
  box-shadow:0 10px 26px rgba(18,38,59,.06);
  display:grid;gap:11px;
}
.nfc52-menu-offer{margin:24px 0 12px;}
.nfc52-menu-offer[hidden],.nfc52-checkout-offer[hidden]{display:none!important;}
.nfc52-offer-eyebrow{font-size:11px!important;letter-spacing:.12em;font-weight:900;color:#a86109!important;}
.nfc52-menu-offer h2,.nfc52-checkout-offer h3{font-size:clamp(20px,2.2vw,27px);line-height:1.2;letter-spacing:-.03em;color:#132b47;margin:0;font-weight:850;}
.nfc52-menu-offer p,.nfc52-checkout-offer p{font-size:14px;line-height:1.6;color:#4a6078;margin:0;}
.nfc52-menu-offer p strong{color:#193451;}
.nfc52-menu-offer ul{list-style:none;display:grid;grid-template-columns:1fr;gap:7px;margin:1px 0 4px;padding:0;}
.nfc52-menu-offer li{font-size:13px;line-height:1.4;color:#253f5d;font-weight:700;padding-left:22px;position:relative;}
.nfc52-menu-offer li:before{content:'✓';position:absolute;left:0;color:#b9750c;font-weight:900;}
.nfc52-menu-offer a,.nfc52-checkout-offer a{
  display:inline-flex;align-items:center;justify-content:center;text-align:center;
  min-height:46px;padding:12px 17px;border-radius:11px;text-decoration:none!important;
  background:#e89318;color:#13263f!important;font-size:13px;font-weight:850;
  box-shadow:0 5px 15px rgba(183,115,11,.13);
}
.nfc52-menu-offer a:hover,.nfc52-checkout-offer a:hover{background:#f6ac38;}
.nfc52-menu-offer small,.nfc52-checkout-offer small{font-size:11px;color:#64758a;line-height:1.5;}
.nfc52-checkout-offer{margin:17px 0;background:#f7f9fc;gap:10px;box-shadow:none;}
.nfc52-checkout-offer h3{font-size:21px;}
.nfc52-checkout-offer p{font-size:12px;}

/* Packs: os três conjuntos centrados quando existem; o pack isolado
   também se mantém centrado, com vantagens concretas deduzidas dos itens. */
.vitrine-page .v-combos>.shell{max-width:1160px!important;}
.vitrine-page .v-combos .v-section-heading{align-items:center!important;flex-direction:column!important;gap:8px!important;text-align:center!important;margin:0 auto 24px!important;}
.vitrine-page .v-combos .v-section-heading>div{max-width:730px!important;}
.vitrine-page .v-combos .v-section-heading h2{max-width:720px;margin:0 auto 10px;line-height:1.15;}
.vitrine-page .v-combos .v-section-heading p{margin:0 auto!important;max-width:650px!important;}
.vitrine-page .v-combos .v-text-link{display:inline-block;margin:8px auto 0!important;}
.vitrine-page .v-combos .nfc-combo-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),350px))!important;
  justify-content:center!important;align-items:stretch!important;
  gap:18px!important;margin-inline:auto!important;
}
.vitrine-page .v-combos .nfc-combo-card{width:100%!important;max-width:350px!important;padding:17px!important;border-radius:18px;display:flex;flex-direction:column;gap:10px;}
.vitrine-page .v-combos .nfc-combo-photo-link{border-radius:12px;overflow:hidden;background:#f4f7fa;}
.vitrine-page .v-combos .nfc-combo-photo-link img{display:block;width:100%;height:195px!important;object-fit:contain!important;}
.vitrine-page .v-combos .nfc-combo-card h3{font-size:18px!important;margin:0!important;min-height:0!important;}
.vitrine-page .v-combos .nfc-combo-items{min-height:0!important;margin:2px 0 0!important;gap:5px!important;}
.vitrine-page .v-combos .nfc-combo-price-box{margin-top:auto!important;padding-top:8px!important;}
.vitrine-page .v-combos .nfc-combo-card .nfc-combo-buy{min-height:47px!important;border-radius:11px;font-size:12px!important;}
.vitrine-page .v-combos .nfc-combo-selected-bar{grid-column:1/-1;width:100%;max-width:760px;margin:0 auto 4px;}
.vitrine-page .v-combos .nfc-combo-grid.nfc-single-combo{display:flex!important;flex-direction:column!important;align-items:center!important;gap:15px!important;}
.vitrine-page .v-combos .nfc-combo-grid.nfc-single-combo>.nfc-combo-card{width:min(100%,390px)!important;max-width:390px!important;}
.nfc52-pack-benefits{border-top:1px solid #e1e8f0;margin-top:2px;padding-top:11px;display:grid;gap:6px;}
.nfc52-pack-benefits>strong{font-size:12px;color:#193754;font-weight:850;}
.nfc52-pack-benefits ul{display:grid;gap:5px;margin:0;padding:0;list-style:none;}
.nfc52-pack-benefits li{color:#40566e;font-size:12px;line-height:1.35;padding-left:18px;position:relative;}
.nfc52-pack-benefits li::before{content:'✓';position:absolute;left:0;top:0;color:#b77711;font-weight:900;}
@media(max-width:720px){
  .vitrine-page .v-combos .nfc-combo-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),350px))!important;}
  .vitrine-page .v-combos .nfc-combo-card{max-width:min(100%,390px)!important;}
  .vitrine-page .v-combos .nfc-combo-photo-link img{height:205px!important;}
}
@media(max-width:380px){
  .vitrine-page .v-combos .nfc-combo-card{padding:13px!important;}
  .nfc52-menu-offer,.nfc52-checkout-offer{padding:16px;}
}

/* Login: branco e navy definidos explicitamente para que o modo claro,
   os estilos de tema e as folhas antigas não produzam campos ilegíveis. */
html body #view-gateway{color:#172f4b!important;}
html body #view-gateway>div.bg-white{background:#fff!important;color:#172f4b!important;border-color:#e1e7f0!important;}
html body #view-gateway h1,html body #view-gateway label{color:#142c47!important;-webkit-text-fill-color:#142c47!important;}
html body #view-gateway h1 span{color:#b86808!important;-webkit-text-fill-color:#b86808!important;}
html body #view-gateway p{color:#526980!important;}
html body #view-gateway #gateway-email,html body #view-gateway #gateway-password{
  color:#152d48!important;background:#f8fafc!important;border:1px solid #aebfd1!important;
  -webkit-text-fill-color:#152d48!important;color-scheme:light;
}
html body #view-gateway #gateway-email::placeholder,html body #view-gateway #gateway-password::placeholder{color:#647991!important;opacity:1!important;}
html body #view-gateway input:focus-visible{outline:2px solid #d58a19!important;outline-offset:1px!important;}
html body #view-gateway form button[type="submit"]{background:#c87911!important;color:#fff!important;-webkit-text-fill-color:#fff!important;min-height:44px!important;}
html body #view-gateway form button[type="button"]{color:#985909!important;-webkit-text-fill-color:#985909!important;}

/* Pedidos & Cozinha: o título escuro no modo claro, branco apenas quando
   o gerente ativou o tema escuro. Corrige a antiga regra #manager-tab-orders. */
html body:not(.nfc-manager-dark-active) #manager-tab-orders .nfc-kitchen-head h3,
html body:not(.nfc-manager-dark-active) #manager-tab-orders .nfc-kitchen-heading-row h4{
  color:#132c47!important;-webkit-text-fill-color:#132c47!important;
}
html body:not(.nfc-manager-dark-active) #manager-tab-orders .nfc-kitchen-head p{
  color:#506780!important;-webkit-text-fill-color:#506780!important;
}
html body:not(.nfc-manager-dark-active) #manager-tab-orders .nfc-kitchen-head,
html body:not(.nfc-manager-dark-active) #manager-tab-orders{color:#1e3650!important;}
html body:not(.nfc-manager-dark-active) #manager-tab-orders .nfc-kitchen-settings summary{color:#213c58!important;}
html body:not(.nfc-manager-dark-active) #manager-tab-orders .nfc-kitchen-secondary{
  background:#ecf2f8!important;color:#213a57!important;border-color:#bfcedd!important;
}
html body.nfc-manager-dark-active #manager-tab-orders .nfc-kitchen-head h3,
html body.nfc-manager-dark-active #manager-tab-orders .nfc-kitchen-head p{color:#eff5ff!important;-webkit-text-fill-color:#eff5ff!important;}
html body #main-app-header #auth-user-info button{color:#ffb2c2!important;-webkit-text-fill-color:#ffb2c2!important;}
html body #main-app-header #auth-user-info{background:#20364e!important;border-color:#456078!important;}

/* Distribuição por linhas: um pack sozinho na última linha fica centrado. */
.vitrine-page .v-combos .nfc-combo-grid:not(.nfc-single-combo){display:flex!important;flex-wrap:wrap!important;align-items:stretch!important;justify-content:center!important;gap:18px!important;}
.vitrine-page .v-combos .nfc-combo-grid:not(.nfc-single-combo)>.nfc-combo-card{flex:0 1 350px!important;width:min(100%,350px)!important;min-width:0!important;}
/* O Tailwind já elimina a margem do body; serve como fallback quando está indisponível. */
body:has(#view-gateway){margin:0!important;}
@media(max-width:600px){
  /* Evitar que formulários grandes empurrem o painel para fora do ecrã. */
  body:has(#view-gateway) #app-main-wrapper,
  body:has(#view-gateway) #main-app-header>div,
  body:has(#view-gateway) #view-gerente,
  body:has(#view-gateway) #manager-tab-orders {
    box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;
  }
  body:has(#view-gateway) #view-gerente .manager-tab-content{box-sizing:border-box!important;max-width:100%!important;min-width:0!important;}
}
