/* Painel admin + cartão do cliente — reaproveita tokens e componentes de /css/site.css (Melt) */
.admin { min-height: 100svh; }
[hidden] { display: none !important; }
.muted { color: var(--text-muted); }

/* acesso */
.auth { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(400px, 100%); display: grid; gap: 16px; text-align: center; background: var(--surface); border: 1px solid var(--line); padding: 32px 24px; border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.auth-card img { width: 200px; margin: 0 auto 4px; }
.auth-card h1 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 38px; line-height: 1; color: var(--off); }

/* topo */
.adm-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
           padding: 10px var(--gutter); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.adm-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.adm-brand img { height: 34px; width: auto; }
.adm-brand span { font-size: 10.5px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--bronze); padding-left: 14px; border-left: 1px solid var(--line-strong); }

/* números */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 16px var(--gutter) 0; max-width: 1280px; margin: 0 auto; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; display: grid; gap: 2px; }
.stat span { font-size: 10px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
.stat b { font-family: var(--display); font-weight: 500; font-size: 32px; line-height: 1.15; color: var(--off); font-variant-numeric: lining-nums tabular-nums; }
.stat-hl { background: var(--bronze); border-color: var(--bronze); }
.stat-hl span { color: color-mix(in srgb, var(--choc-900) 75%, var(--bronze)); }
.stat-hl b { color: var(--choc-900); }

/* painéis */
.panes { display: grid; gap: 16px; padding: 16px var(--gutter) 40px; max-width: 1280px; margin: 0 auto; }
@media (min-width: 960px) { .panes { grid-template-columns: 380px 1fr; align-items: start; } }

.list-pane { display: grid; gap: 12px; }
.list-tools { display: flex; gap: 8px; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 44px; border-radius: var(--radius-full); background: var(--surface); border: 1px solid var(--line); color: var(--text-muted); }
.search:focus-within { border-color: var(--bronze); }
.search svg { width: 18px; height: 18px; }
.search input { flex: 1; border: 0; background: none; font-family: var(--sans); font-size: 15px; color: var(--off); min-width: 0; }
.search input::placeholder { color: color-mix(in srgb, var(--creme) 40%, transparent); }
.search input:focus { outline: none; }

.clientes { list-style: none; display: grid; gap: 8px; }
@media (min-width: 960px) { .clientes { max-height: calc(100svh - 270px); overflow-y: auto; padding: 2px; } }
.cli {
  width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; text-align: left;
  padding: 12px 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s var(--ease-out), border-color .2s;
}
.cli:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.cli[aria-current="true"] { border-color: var(--bronze); }
.cli-nome { font-family: var(--display); font-weight: 500; font-size: 18px; color: var(--off); line-height: 1.2; }
.cli-tel { font-size: 12px; color: var(--text-muted); }
.cli-prog { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
.bar { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; width: 100%; background: var(--bronze); border-radius: inherit; transform-origin: left; transition: transform .5s var(--ease-out); }
.cli-prog small { font-size: 11px; color: var(--text-muted); font-variant-numeric: lining-nums tabular-nums; }
.pill-premio { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
               background: var(--bronze); color: var(--choc-900); padding: 5px 9px; border-radius: var(--radius-full); white-space: nowrap; }
.pill-premio svg { width: 13px; height: 13px; }
.lista-vazia { text-align: center; padding: 32px 12px; color: var(--text-muted); font-size: 15px; }

/* detalhe */
.detail-pane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); min-height: 420px; }
.empty-detail { display: grid; place-items: center; align-content: center; gap: 16px; min-height: 420px; text-align: center; color: var(--text-muted); font-size: 15px; padding: 24px; }
.empty-detail img { width: 150px; opacity: .45; }
@media (max-width: 959px) {
  .detail-pane:not(.open) { display: none; }
  .detail-pane.open { position: fixed; inset: 0; z-index: 40; border-radius: 0; border: 0; overflow-y: auto; animation: slide-in .4s var(--ease-drawer); }
  .detail-pane .empty-detail { display: none; }
}
@keyframes slide-in { from { transform: translateX(100%); } }
.det { padding: 20px; display: grid; gap: 22px; }
@media (min-width: 960px) { .det { padding: 28px; } }
.det-head { display: flex; align-items: flex-start; gap: 12px; }
.det-head .voltar { display: none; }
@media (max-width: 959px) { .det-head .voltar { display: grid; } }
.det-head h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 5vw, 42px); line-height: 1.1; color: var(--off); }
.det-head .tel { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.det-head .acoes { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* cartão de carimbos: cartão creme + impressão cacau (identidade das embalagens) */
.cartao {
  position: relative; border-radius: var(--radius-xl); padding: 20px; color: var(--ink); overflow: hidden;
  background: var(--creme); box-shadow: var(--shadow);
}
.cartao::after { content: ""; position: absolute; width: 240px; height: 240px; right: -100px; top: -120px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--cobre) 45%, transparent); }
.cartao-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cartao-top .eyebrow { color: var(--cobre); }
.cartao-top b { font-family: var(--display); font-weight: 500; font-size: 22px; font-variant-numeric: lining-nums tabular-nums; }
.selos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 16px 0 12px; max-width: 400px; }
.cartao-msg { font-size: 15px; }
.cartao-msg b { font-weight: 600; }
.premio-box { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
              padding: 12px 14px; border-radius: var(--radius-lg); background: var(--ink); color: var(--creme); }
.premio-box p { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.premio-box svg { width: 20px; height: 20px; color: var(--bronze); }
.premio-box .btn { background: var(--bronze); color: var(--choc-900); }
.premio-box .btn:hover { background: var(--creme); }

/* compra */
.bloco { display: grid; gap: 12px; }
.bloco h3 { font-size: 10.5px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--bronze); }
.prods { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.prod { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: var(--radius-md); background: var(--bg); border: 1px solid var(--line); transition: border-color .2s; }
.prod.sel { border-color: var(--bronze); }
.prod img { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); }
.prod .pn { font-size: 13.5px; font-weight: 400; color: var(--creme); line-height: 1.25; }
.prod .stepper button { width: 34px; height: 36px; font-size: 18px; }
.prod .stepper output { min-width: 20px; }
.prod-avulso img { display: none; }
.prod-avulso { grid-template-columns: 1fr auto; }
.compra-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.compra-foot p { font-size: 14.5px; color: var(--text-muted); }
.compra-foot p b { color: var(--off); font-weight: 500; }

/* histórico */
.hist { list-style: none; display: grid; gap: 8px; }
.hist li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius-md); background: var(--bg); border: 1px solid var(--line); }
.hist .h1 { font-family: var(--display); font-weight: 500; color: var(--off); font-size: 16px; }
.hist .h2 { font-size: 13px; color: var(--text-muted); }
.hist li.cancel { opacity: .5; }
.hist li.cancel .h1 { text-decoration: line-through; }
.hist .tipo-premio .h1 { color: var(--bronze); }

/* modal */
.modal {
  position: fixed; z-index: 50; left: 50%; top: 50%; width: min(420px, calc(100vw - 32px)); translate: -50% -50%;
  display: grid; gap: 14px; padding: 22px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: modal-in .3s var(--ease-out);
}
@keyframes modal-in { from { opacity: 0; transform: scale(.96); } }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 30px; color: var(--off); }

/* no celular o botão de registrar fica sempre à mão */
@media (max-width: 959px) {
  .compra-foot { position: sticky; bottom: 0; z-index: 2; margin: 0 -20px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
                 background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 20px -16px #000; }
}

@media (prefers-reduced-motion: reduce) {
  .selo.pop, .detail-pane.open, .modal { animation: none; }
}

/* =========================================================
   Painel com abas: Pedidos | Clientes | Produtos | Loja
   ========================================================= */
.adm-top { flex-wrap: wrap; row-gap: 8px; }
.adm-abas { display: flex; gap: 2px; padding: 4px; border-radius: var(--radius-full); border: 1px solid var(--line); background: color-mix(in srgb, var(--choc-800) 60%, transparent); overflow-x: auto; scrollbar-width: none; }
.adm-abas::-webkit-scrollbar { display: none; }
.adm-aba {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: var(--radius-full); text-decoration: none; white-space: nowrap;
  font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); transition: color .2s, background-color .2s;
}
.adm-aba:hover { color: var(--creme); }
.adm-aba[aria-current="page"] { background: var(--bronze); color: var(--choc-900); }
.aba-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--creme); color: var(--choc-900); font-size: 10.5px; font-weight: 600; letter-spacing: 0; }
.adm-aba[aria-current="page"] .aba-n { background: var(--choc-900); color: var(--creme); }
.aba-n[hidden] { display: none; }
@media (max-width: 759px) {
  .adm-abas { order: 3; width: 100%; }
  .adm-aba { flex: 1; justify-content: center; padding: 9px 6px; letter-spacing: .1em; }
}
.auth-card .check { justify-self: start; }
.check-escuro { margin-top: 0; color: var(--creme); font-weight: 400; }
.check-escuro input { accent-color: var(--bronze); }

.vista { max-width: 1280px; margin: 0 auto; }
.vista[hidden] { display: none; }
.vista-topo { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 22px var(--gutter) 4px; }
.vista-topo h1 { font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(30px, 5vw, 40px); line-height: 1.05; color: var(--off); }
.vista-sub { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.icon-sm { width: 36px; height: 36px; }
.icon-sm svg { width: 17px; height: 17px; }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.link-perigo { color: var(--erro); }
.link-perigo:hover { background: color-mix(in srgb, var(--erro) 10%, transparent); }
.bloco-nota { font-size: 13px; }

/* interruptor (liga/desliga) */
.chave, .cfg-chave { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--creme); }
.chave input, .cfg-chave input {
  -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 40px; height: 24px; margin: 0; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line-strong); cursor: pointer; transition: background-color .2s, border-color .2s;
}
.chave input::after, .cfg-chave input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-muted);
  transition: transform .2s var(--ease-out), background-color .2s;
}
.chave input:checked, .cfg-chave input:checked { background: var(--bronze); border-color: var(--bronze); }
.chave input:checked::after, .cfg-chave input:checked::after { transform: translateX(16px); background: var(--choc-900); }
.chave input:focus-visible, .cfg-chave input:focus-visible { outline: 2px solid var(--bronze); outline-offset: 2px; }
.chave input:disabled, .cfg-chave input:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- pedidos ---------- */
.filtros { display: flex; gap: 6px; flex-wrap: wrap; }
.filtro {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: var(--radius-full); border: 1px solid var(--line-strong);
  font-size: 12.5px; font-weight: 500; color: var(--creme); transition: background-color .2s, border-color .2s, color .2s, transform .16s var(--ease-out);
}
.filtro:active { transform: scale(.97); }
.filtro[aria-pressed="true"] { background: var(--creme); border-color: var(--creme); color: var(--choc-900); }
.filtro span { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-grid; place-items: center; background: var(--bronze); color: var(--choc-900); font-size: 11px; font-weight: 600; }
.filtro span:empty { display: none; }

.faixa-push { display: flex; align-items: center; gap: 12px; margin: 14px var(--gutter) 0; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--creme); color: var(--ink); }
.faixa-push[hidden] { display: none; }
.faixa-push > svg { width: 24px; height: 24px; flex: none; color: var(--choc-700); }
.faixa-push p { flex: 1; font-size: 14px; }
.faixa-push .btn-primary { background: var(--choc-800); color: var(--creme); }

.pedidos { list-style: none; display: grid; gap: 12px; align-items: start; padding: 16px var(--gutter) 48px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.ped { display: grid; gap: 12px; padding: 16px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); }
.ped-topo { display: flex; align-items: center; gap: 10px; }
.ped-cod { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--off); letter-spacing: .02em; }
.ped-st { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--radius-full); border: 1px solid var(--line-strong); color: var(--creme); }
.st-novo { background: var(--bronze); border-color: var(--bronze); color: var(--choc-900); }
.st-preparando, .st-pronto, .st-saiu { border-color: var(--bronze); color: var(--bronze); }
.st-entregue, .st-aguardando_pagamento { color: var(--text-muted); }
.st-aguardando_pagamento { border-style: dashed; }
.st-cancelado { color: var(--erro); border-color: color-mix(in srgb, var(--erro) 50%, transparent); }
.ped-hora { margin-left: auto; font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ped-cli { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ped-cli p { display: grid; font-size: 15px; min-width: 0; }
.ped-cli b { font-weight: 500; color: var(--off); }
.ped-cli span { font-size: 13px; color: var(--text-muted); }
.ped-itens { list-style: none; display: grid; gap: 3px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--bg); font-size: 14.5px; }
.ped-itens b { color: var(--bronze); font-weight: 600; }
.ped-itens small { color: var(--text-muted); font-size: 13px; }
.ped-obs { font-size: 14px; padding: 8px 12px; border-radius: var(--radius-md); border: 1px dashed var(--line-strong); color: var(--creme); }
.ped-obs::before { content: "Obs.: "; color: var(--text-muted); }
.ped-alerta { font-size: 13.5px; font-weight: 500; padding: 8px 12px; border-radius: var(--radius-md); color: var(--erro); background: color-mix(in srgb, var(--erro) 10%, transparent); }
.ped-dados { display: grid; gap: 7px; font-size: 13.5px; }
.ped-dados > div { display: grid; grid-template-columns: 84px 1fr; gap: 8px; }
.ped-dados dt { color: var(--text-muted); }
.ped-dados dd { color: var(--creme); min-width: 0; }
.ped-dados small { color: var(--text-muted); }
.ped-ref { display: block; }
.ped-end-acoes { display: flex; flex-wrap: wrap; gap: 2px; margin: 2px 0 0 -8px; }
.ped-dados .link-btn { display: inline-flex; align-items: center; gap: 5px; }
.ped-dados .link-btn svg { width: 14px; height: 14px; }
.ped-total dd { font-family: var(--display); font-size: 19px; font-weight: 600; color: var(--off); }
.saldo { font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: var(--radius-full); white-space: nowrap; }
.saldo.pos { color: var(--bronze); background: color-mix(in srgb, var(--bronze) 14%, transparent); }
.saldo.neg { color: var(--erro); background: color-mix(in srgb, var(--erro) 12%, transparent); }
.ped-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.ped-acoes .link-perigo { margin-left: auto; }

/* ---------- produtos ---------- */
.secoes-prod { display: grid; gap: 26px; padding: 16px var(--gutter) 48px; }
.secao-prod h2 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--off); }
.secao-prod h2 small { font-family: var(--sans); font-size: 12px; color: var(--text-muted); }
.prods-adm { list-style: none; display: grid; gap: 8px; }
.prod-adm {
  display: grid; grid-template-columns: 56px 1fr auto; grid-template-areas: "foto info acoes" "foto chaves chaves"; gap: 8px 14px; align-items: center;
  padding: 10px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
}
@media (min-width: 900px) { .prod-adm { grid-template-columns: 56px 1fr auto auto; grid-template-areas: "foto info chaves acoes"; } }
.prod-adm > img { grid-area: foto; width: 56px; height: 56px; border-radius: var(--radius-md); object-fit: cover; }
.prod-adm.oculto { border-style: dashed; }
.prod-adm.oculto > img, .prod-adm.oculto .pa-info { opacity: .55; }
.pa-info { grid-area: info; display: grid; gap: 2px; min-width: 0; }
.pa-info b { font-family: var(--display); font-weight: 500; font-size: 17px; line-height: 1.2; color: var(--off); }
.pa-info span { font-size: 13px; color: var(--text-muted); }
.pa-info .pa-alerta { font-size: 12px; color: var(--erro); }
.pa-chaves { grid-area: chaves; display: flex; gap: 18px; flex-wrap: wrap; }
.pa-acoes { grid-area: acoes; display: flex; gap: 4px; }

.modal { max-height: calc(100svh - 32px); overflow-y: auto; overscroll-behavior: contain; }
.modal-produto { width: min(560px, calc(100vw - 32px)); }
.pf-foto { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; }
.pf-previa { position: relative; width: 112px; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-lg); background: var(--bg); border: 1px dashed var(--line-strong); color: var(--text-muted); }
.pf-previa svg { width: 32px; height: 32px; }
.pf-previa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-previa img[hidden] { display: none; }
.pf-foto-acoes { display: grid; gap: 8px; justify-items: start; }
.pf-foto-acoes .muted { font-size: 12.5px; }
.pf-chaves { display: flex; gap: 18px; flex-wrap: wrap; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23B79470' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
}
#pf-excluir { justify-self: center; }

.pf-perso { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pf-perso legend { padding: 0 6px; font-size: 10.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); }
.pf-escolha { display: grid; gap: 8px; }
.pf-sub { margin-top: 4px; font-size: 13px; color: var(--creme); }
.pf-itens { display: grid; gap: 8px; list-style: none; }
.pf-item { display: grid; grid-template-columns: minmax(0, 1fr) 92px auto auto; gap: 8px; align-items: center; }
.pf-item input:not([type=checkbox]) { min-height: 40px; padding: 0 12px; border-radius: var(--radius-md); background: var(--bg); border: 1px solid var(--line-strong); color: var(--creme); }
@media (max-width: 420px) { .pf-item { grid-template-columns: minmax(0, 1fr) 84px; } .pf-item .check { grid-column: 1; } }
/* botões "+ Opção"/"+ Adicional": sem isto, o <svg> sem viewBox cai no tamanho padrão (300×150) e o link estica na grade */
.pf-perso .link-btn { justify-self: start; display: inline-flex; align-items: center; gap: 6px; }
.pf-perso .link-btn svg { width: 16px; height: 16px; }

/* ---------- loja ---------- */
.cfg-grade { display: grid; gap: 16px; align-items: start; padding: 16px var(--gutter) 48px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.cfg-card { display: grid; gap: 14px; padding: 20px; border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--line); }
.cfg-larga { grid-column: 1 / -1; }
.cfg-card h2 { font-family: var(--display); font-weight: 500; font-size: 22px; color: var(--off); }
.cfg-card h3 { margin-top: 6px; font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); }
.cfg-card h3 small { font-weight: 400; letter-spacing: .02em; text-transform: none; color: var(--text-muted); }
.cfg-card > .btn { justify-self: start; }
/* coluna do quadro nunca mais larga que ele: no celular, texto longo de botão quebra a linha em vez de vazar pela direita */
.cfg-card { grid-template-columns: minmax(0, 1fr); }
.cfg-card .btn { max-width: 100%; white-space: normal; text-align: center; line-height: 1.4; padding-block: 8px; }
.cfg-nota { font-size: 13px; color: var(--text-muted); }
.cfg-chaves { display: grid; }
.cfg-chave { justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cfg-chave span { display: grid; gap: 2px; }
.cfg-chave b { font-weight: 500; font-size: 15px; color: var(--off); }
.cfg-chave small { font-size: 12.5px; color: var(--text-muted); }
.cfg-chave.travado { cursor: not-allowed; }
.cfg-tres { display: grid; gap: 10px; align-items: end; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.cfg-linha { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.cfg-linha .field { flex: 1; min-width: 160px; }
.cfg-linha .btn { min-height: 48px; }
.cfg-linha.cfg-centro { align-items: center; }
.cfg-linha.cfg-centro .btn { min-height: 40px; }
.cfg-ok { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; color: var(--creme); }
.cfg-ok svg { width: 18px; height: 18px; color: var(--bronze); }
.cfg-alerta { font-size: 14px; color: var(--erro); }
/* localização aproximada (CEP): precisa ser lida, mas não é erro — fundo bronze leve, sem borda colorida */
.cfg-aviso { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: start; padding: 12px 14px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--bronze) 13%, var(--bg)); font-size: 14px; line-height: 1.45; color: var(--creme); }
.cfg-aviso svg { width: 18px; height: 18px; margin-top: 1px; color: var(--bronze); }
.cfg-aviso b { font-weight: 500; color: var(--off); }
.cfg-aviso .link-btn { grid-column: 2; justify-self: start; margin-left: -8px; }
.cfg-item .link-btn { margin-left: -8px; }
.cfg-faixa { grid-template-columns: 1fr 1fr; align-items: end; }
.cfg-mais { align-self: end; padding-bottom: 15px; font-size: 14px; color: var(--creme); }
/* previsão no cartão do pedido: "pronto ~14h40" / "chega ~15h10" */
.ped-prev { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--bronze); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ped-prev svg { width: 13px; height: 13px; }
.cfg-item { display: grid; gap: 6px; justify-items: start; padding: 12px 14px; border-radius: var(--radius-md); background: var(--bg); border: 1px solid var(--line); font-size: 14px; }
.cfg-item b { font-weight: 500; color: var(--off); }
.cfg-item span { color: var(--text-muted); }
.cfg-sim { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.cfg-numeros { display: flex; flex-wrap: wrap; gap: 18px; }
.cfg-numeros div { display: grid; }
.cfg-numeros dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.cfg-numeros dd { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--off); }
.cfg-numeros dd.saldo { padding: 0; background: none; font-size: 20px; }
.cfg-numeros dd.saldo.pos { color: var(--bronze); }
