/* Fidelidade no cardápio, no checkout e no acompanhamento (modelo aprovado em 28/10/2026,
   analise/fidelidade/fidelidade-cliente-modelo.html). Cores e fontes seguem as da loja. */

/* topo do cardápio */
.fid-topo { display: flex; align-items: center; gap: 10px; width: 100%; margin: 14px 0 0; padding: 11px 12px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.fid-topo[hidden] { display: none; }
@media (max-width: 980px) { .fid-topo { width: calc(100% - 16px); margin-left: 8px; margin-right: 8px; } } /* a mesma margem do campo "Lista de categorias" */
.fid-topo-ic { display: flex; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #f0fdf4; color: #15803d; }
.fid-topo-txt { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.fid-topo-t { font-size: 14px; }
.fid-topo-t b { font-weight: 600; }
.fid-topo-s { margin-top: 1px; font-size: 12px; color: #6b7280; }
.fid-topo-ar { margin-left: auto; color: #9ca3af; font-size: 18px; }

/* página do produto */
.modal-title-bar:has(.fid-tag:not(:empty)) { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fid-tag { flex: none; align-self: center; padding: 1px 8px; border: 1px solid #bbf7d0; border-radius: 999px; background: #f0fdf4; color: #15803d; font-size: 12px; font-weight: 600; white-space: nowrap; }
.fid-tag:empty { display: none; }
/* tag o mais à direita possível, logo antes do ✕; com a página rolada (nome grudado no topo), some */
@media (min-width: 981px) {
  .modal-title-bar:has(.fid-tag:not(:empty)) h2 { margin-right: 0; }
  .modal-title-bar .fid-tag { margin-right: 32px; } /* ✕ a 12px da borda, 38px de largura; conteúdo a 26px */
}
@media (max-width: 980px) {
  .modal-title-bar:has(.fid-tag:not(:empty)) { padding-right: 16px; } /* parada, o ✕ fica sobre a foto, não na linha do nome */
  .modal-title-bar.fid-grudado { padding-right: 54px; }
  .modal-title-bar.fid-grudado .fid-tag { display: none; }
}
.fid-preco-premio { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; }
.fid-preco-premio s { color: #9ca3af; font-size: 15px; font-weight: 400; }
.fid-gratis { color: #15803d; }
.fid-faixa { margin-top: 12px; padding: 10px 12px; border: 1px solid #bbf7d0; border-radius: 10px; background: #f0fdf4; color: #166534; font-size: 14px; }
.addon-badge-required.fid-selo-premio { background: #e5e7eb; color: #374151; }
.modal-footer.fid-sem-qtd { grid-template-columns: 1fr !important; }
.modal-footer.fid-sem-qtd [data-add-cart] { flex: 1 1 auto; width: 100%; }

/* folha "Trocar pontos" */
html.fid-travado { overflow: hidden; }
.fid-sh { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: flex-end; justify-content: center; background: rgba(17, 24, 39, .45); }
.fid-sheet { width: 100%; max-width: 520px; max-height: 85vh; overflow-y: auto; padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; background: #fff; color: #111827; }
.fid-sheet h3 { display: flex; justify-content: space-between; align-items: center; margin: 0; font-size: 17px; }
.fid-x { min-width: 40px; min-height: 40px; border: 0; background: none; color: #9ca3af; font-size: 16px; cursor: pointer; }
.fid-sal { margin-top: 2px; font-size: 13px; color: #6b7280; }
.fid-rew { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding: 12px; border: 1px solid #e5e7eb; border-radius: 10px; font-size: 14px; }
.fid-rew-p { margin-top: 2px; font-size: 12px; color: #6b7280; }
.fid-rew.dis { opacity: .5; }
.fid-btn { min-height: 36px; padding: 7px 12px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: #111; font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.fid-btn.dk { border-color: #111; background: #111; color: #fff; }
.fid-btn:disabled { cursor: default; }

/* checkout */
.compact-toggle-btn.fid-usar { display: flex; align-items: center; width: 100%; margin-top: 12px; }
.compact-toggle-btn.fid-usar[hidden] { display: none; }
.fid-usar-ic { display: inline-flex; align-items: center; justify-content: center; width: 20px; }
.fid-usar-q { margin-left: auto; color: #15803d; font-size: 13px; font-weight: 500; }
.fid-apl { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border: 1px solid #bbf7d0; border-radius: 10px; background: #f0fdf4; color: #166534; font-size: 14px; }
.fid-apl button { min-height: 32px; padding: 5px 10px; border: 1px solid #fecaca; border-radius: 8px; background: #fff; color: #dc2626; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.mini-summary-line.fid-resumo span:last-child { color: #15803d; }

/* acompanhamento */
.fid-ganha { margin-top: 36px; color: #111; font-size: 15px; text-align: center; }
.fid-ganha-em { margin-bottom: 6px; font-size: 30px; line-height: 1; }

/* Por pedidos: cartão de selos (fidelidade-pedidos-modelo.html) */
.fid-cartao-p { margin-top: 2px; font-size: 20px; font-weight: 600; }
.fid-selos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 14px 0 10px; }
.fid-selos span { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 2px dashed #d1d5db; border-radius: 50%; color: #9ca3af; font-size: 13px; }
.fid-selos span.ok { border: 0; background: #16a34a; color: #fff; }
.fid-selos span.gift { border-color: #16a34a; color: #16a34a; }
.fid-cartao-f { color: #374151; font-size: 13px; }
.fid-cartao-f b { font-weight: 600; }
.fid-cartao-v { margin-top: 6px; color: #9ca3af; font-size: 12px; }
.fid-win { margin-top: 12px; padding: 12px; border: 1px solid #bbf7d0; border-radius: 10px; background: #f0fdf4; }
.fid-win > b { color: #15803d; font-size: 14px; font-weight: 600; }
.fid-win .fid-cartao-f { margin-top: 4px; }
.fid-win .fid-esc { margin-top: 10px; }
.fid-pi { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; padding: 9px 10px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; font-size: 13px; }
.fid-pi button { min-height: 36px; padding: 4px 10px; border: 1px solid #16a34a; border-radius: 6px; background: #fff; color: #15803d; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.fid-go { width: 100%; min-height: 44px; margin-top: 10px; padding: 10px; border: 0; border-radius: 8px; background: #16a34a; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.fid-bag { margin: 10px 0; }
.fid-pi span { color: #6b7280; font-size: 12px; white-space: nowrap; }
.fid-sheet.fid-area { max-width: none; max-height: none; margin-bottom: 16px; border: 1px solid #e5e7eb; border-radius: 12px; }
.fid-bag { margin: 10px 0; }
/* bloco da sacola, lista e item do prêmio (fidelidade-premio-modelo.html) */
.fid-bloco { display: flex; align-items: center; gap: 10px; margin: 10px 0; padding: 12px 14px; border: 1px solid #bbf7d0; border-radius: 12px; background: #f0fdf4; cursor: pointer; }
.fid-bloco.verde { cursor: default; }
.fid-bloco-ic { font-size: 22px; }
.fid-bloco-t { flex: 1; font-size: 14px; }
.fid-bloco-t b { font-weight: 600; }
.fid-bloco-t span { display: block; color: #15803d; font-size: 12px; }
.fid-bloco-a { border: 0; background: none; color: #15803d; font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.fid-bloco-selos { margin: 10px 0; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
.fid-bloco-selos .fid-selos { grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 0 0 8px; }
.fid-bloco-selos .fid-selos span { font-size: 10px; border-width: 1.5px; }
.fid-pr { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 10px; border: 1px solid #e5e7eb; border-radius: 12px; }
.fid-pr.dis { opacity: .5; }
.fid-ph { display: flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; overflow: hidden; border-radius: 8px; background: #fde68a; font-size: 20px; }
.fid-ph img { width: 100%; height: 100%; object-fit: cover; }
.fid-pr-t { flex: 1; min-width: 0; font-size: 14px; }
.fid-pr-t span { display: block; margin-top: 1px; color: #6b7280; font-size: 12px; }
.fid-barra-p { height: 5px; margin-top: 6px; overflow: hidden; border-radius: 99px; background: #f0f1f3; }
.fid-barra-p i { display: block; height: 100%; background: #16a34a; }
.fid-pr button { min-height: 36px; padding: 6px 12px; border: 1.5px solid #16a34a; border-radius: 8px; background: #fff; color: #15803d; font: inherit; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.fid-pr.dis button { border-color: #d1d5db; color: #6b7280; }
.fid-selo-premio-bag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: #dcfce7; color: #15803d; font-size: 11px; font-weight: 600; vertical-align: 1px; }
.bag-item.fid-item-premio { border-color: #bbf7d0; }
.bag-item.fid-item-premio .bag-item-top > b { color: #15803d; }
.fid-bloco-selos .fid-cartao-p { margin: 0 0 8px; font-size: 15px; }
.fid-ganhou { display: flex; align-items: center; gap: 10px; margin: 10px 0; padding: 12px 14px; border-radius: 12px; background: #16a34a; color: #fff; }
.fid-ganhou-t { flex: 1; min-width: 0; font-size: 14px; }
.fid-ganhou-t b { display: block; font-size: 15px; font-weight: 600; }
.fid-ganhou-t span { display: block; margin-top: 2px; font-size: 13px; }
.fid-ganhou button { flex: none; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 8px; background: #fff; color: #15803d; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.fid-cash-linha { margin: 10px 0; padding: 10px 14px; border: 1px solid #bbf7d0; border-radius: 12px; background: #f0fdf4; color: #15803d; font-size: 14px; }
.fid-cash-linha b { font-weight: 600; }
.fid-area-linha { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.fid-area-linha b { font-size: 20px; font-weight: 600; }
.fid-area-cash .fid-cartao-f { margin-top: 4px; }
.fid-sum-item { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; font-size: 14px; }
.fid-sum-item b { font-weight: 600; }
.fid-sum-item small { display: block; margin-top: 2px; color: #6b7280; font-size: 12px; }
.fid-sum-item strong { color: #15803d; font-weight: 600; white-space: nowrap; }
