/* Esconde [hidden] */
[hidden]{display:none !important}

/* ===== MODAL CEP (overlay central) ===== */
.geo-modal{
  position:fixed;inset:0;background:rgba(0,0,0,.55);
  display:none;place-items:center;z-index:9999;padding:16px
}
.geo-modal.show{display:grid}
.geo-card{
  width:min(92vw,520px);background:#fff;border-radius:16px;padding:20px;
  box-shadow:0 10px 40px rgba(0,0,0,.25)
}
.geo-card h3{margin:0 0 10px;font-size:24px;text-align:center}
.geo-card label{display:block;font-weight:600;margin:6px 0 4px}
.geo-card input[type="text"]{width:100%;padding:10px;border:1px solid #e5e7eb;border-radius:10px}
.geo-card .row{display:flex;gap:8px;margin-top:8px}
.geo-card .row>*{flex:1}
.geo-card .small{color:#6b7280;font-size:12px;margin-top:6px;display:block}

button.btn,a.btn{
  display:inline-block;background:#ff004d;color:#fff;border:0;border-radius:10px;
  padding:10px 14px;font-weight:700;cursor:pointer;text-decoration:none
}
.linkTrocar{
  margin-left:8px;background:none;border:0;color:#2563eb;
  font-weight:600;cursor:pointer;text-decoration:underline;padding:0
}

/* ===== CARRINHO: botão no TOPO DIREITO + drawer ===== */
.cart-fab{
  position:fixed;
  top:max(12px, env(safe-area-inset-top));
  right:max(12px, env(safe-area-inset-right));
  bottom:auto;
  background:#111;color:#fff;border:0;border-radius:999px;
  padding:10px 14px;box-shadow:0 10px 30px rgba(0,0,0,.25);
  cursor:pointer;font-size:16px;display:flex;align-items:center;gap:8px;z-index:9000
}
.cart-badge{background:#ff004d;color:#fff;border-radius:999px;padding:2px 8px;font-size:12px}

.cart-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:9990}
.cart-drawer{
  position:fixed;right:0;top:0;height:100dvh;width:min(92vw,420px);
  background:#fff;border-left:1px solid #eee;z-index:9991;display:flex;flex-direction:column
}
.cart-header{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid #eee}
.cart-close{background:#0000;border:0;font-size:22px;cursor:pointer}
.cart-items{flex:1;overflow:auto;padding:10px 14px}
.cart-line{display:flex;gap:10px;align-items:center;justify-content:space-between;border-bottom:1px dashed #eee;padding:8px 0}
.cart-line .info{flex:1}
.cart-line .rm{background:#0000;border:1px solid #ddd;border-radius:8px;padding:4px 8px;cursor:pointer}
.cart-total{display:flex;justify-content:space-between;align-items:center;padding:10px 14px}
.cart-actions{padding:10px 14px}
.cart-checkout{display:block;text-align:center}

/* ===== CHECKOUT RESPONSIVO ===== */
.checkout-grid{
  display:grid;
  grid-template-columns:1fr; /* mobile-first */
  gap:20px;
  max-width:1120px;
  padding:16px;
}
@media (min-width:980px){
  .checkout-grid{ grid-template-columns:1.2fr 1fr; } /* desktop */
}

.summary-list .sum-line{display:flex;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px dashed #eee}
.summary-list .sum-info{max-width:72%}

/* Formulário */
.checkout-form label{display:block;margin:8px 0}
.checkout-form input,.checkout-form textarea,.checkout-form select{
  width:100%;padding:10px;border:1px solid #e5e7eb;border-radius:10px
}
.checkout-form .linha{display:grid;grid-template-columns:1fr;gap:10px}
@media (min-width:640px){ .checkout-form .linha{grid-template-columns:1fr 1fr} }
@media (min-width:980px){ .checkout-form .linha.triple{grid-template-columns:2fr 2fr 80px} }

/* Tabs pagamento */
.tabs{display:flex;gap:12px;margin-bottom:8px}
.tabs label{display:flex;align-items:center;gap:6px;cursor:pointer}
.pg-pane label{display:block;margin:8px 0}
#qrcode canvas{display:block;margin:8px 0}

/* Blindagem extra: não deixar labels do checkout herdarem estilo dos sabores */
.checkout-form label,
.pagamento .opcoes label,
#checkoutForm label{
  display:block !important;
  width:auto !important;
  height:auto !important;
  border:0 !important;
  border-radius:0 !important;
  cursor:text !important;
}
/* Rodapé do checkout (selos de pagamento) */
.checkout-footer{
  background:#fff;
  border-top:1px solid #eee;
  margin-top:20px;
}
.checkout-footer .container{
  padding:18px 16px;
  display:grid;
  gap:14px;
  justify-items:center;
}
.checkout-footer img{max-width:100%;height:auto;display:block}

@media (min-width:720px){
  .checkout-footer .container{
    grid-template-columns:1fr 1fr;
    align-items:center;
  }
}

