/* Base compartilhada por todas as páginas do portal (mesmas cores do zéca.delivery). */
:root {
  --vermelho: #cc0000;
  --vermelho-hover: #b00000;
  --vermelho-escuro: #8b0000;
  --rosa: #fdecec;
  --tinta: #3f3e3e;
  --suave: #717171;
  --linha: #e3e3e3;
  --fundo: #f5f5f5;
  --branco: #fff;
  --verde: #12804a;
  --verde-claro: #e5f5ec;
  --ambar: #925600;
  --ambar-claro: #fff3dc;
  --cinza-claro: #efefef;
  --raio: 12px;
  --fonte: "Nunito Sans", Arial, sans-serif;
  --fonte-marca: "Lilita One", "Nunito Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fonte); font-size: 16px; line-height: 1.45; color: var(--tinta); background: var(--branco); }
a { color: var(--vermelho); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #ffb4b4; outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border: 1px solid transparent; border-radius: 8px;
  background: var(--branco); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn:disabled { opacity: .6; cursor: default; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primario { background: var(--vermelho); color: #fff; }
.btn-primario:hover:not(:disabled) { background: var(--vermelho-hover); }
.btn-secundario { border-color: var(--linha); color: var(--tinta); }
.btn-secundario:hover:not(:disabled) { border-color: #c9c9c9; background: #fafafa; }
.btn-verde { background: var(--verde); color: #fff; }
.btn-verde:hover:not(:disabled) { background: #0e6b3d; }
.btn-perigo { border-color: #f0c4c4; color: var(--vermelho); }
.btn-perigo:hover:not(:disabled) { background: var(--rosa); }
.btn-bloco { width: 100%; }
.btn-pequeno { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-icone {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 0; border-radius: 8px; background: none; color: var(--suave); cursor: pointer;
}
.btn-icone:hover:not(:disabled) { background: var(--cinza-claro); color: var(--tinta); }
.btn-icone:disabled { opacity: .3; cursor: default; }
.btn-icone svg { width: 18px; height: 18px; }
.link { padding: 0; border: 0; background: none; color: var(--vermelho); font-weight: 700; text-decoration: none; cursor: pointer; }
.link:hover { text-decoration: underline; }

.carregando { pointer-events: none; }
.carregando::after {
  content: ""; width: 15px; height: 15px; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; animation: girar .7s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

/* formulários */
.campo { display: block; margin-bottom: 14px; text-align: left; }
.rotulo { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.campo small { display: block; margin-top: 5px; font-size: 13px; color: var(--suave); }
.campo .rotulo small { display: inline; margin: 0; font-weight: 600; }
.entrada {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--linha); border-radius: 8px;
  background: #fff; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.entrada { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
select.entrada {
  appearance: none; padding-right: 36px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23717171' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.entrada:focus { border-color: var(--vermelho); box-shadow: 0 0 0 3px rgba(204, 0, 0, .12); }
.entrada[readonly] { background: var(--fundo); color: var(--suave); }
.entrada.invalida { border-color: var(--vermelho); background-color: #fffafa; }
.entrada-codigo { height: 58px; font-size: 28px; font-weight: 800; letter-spacing: 10px; text-align: center; }
.grade { display: grid; gap: 0 14px; }
.grade-2 { grid-template-columns: 1fr 1fr; }
.grade-3 { grid-template-columns: repeat(3, 1fr); }
.grade-cidade { grid-template-columns: 1fr 110px; }
@media (max-width: 560px) { .grade-2, .grade-3 { grid-template-columns: 1fr; } }

.dinheiro { position: relative; display: block; }
.dinheiro::before {
  content: "R$"; position: absolute; top: 50%; left: 14px; transform: translateY(-50%);
  font-weight: 700; color: var(--suave); pointer-events: none;
}
.dinheiro .entrada { padding-left: 44px; }

.erro { margin: 0 0 14px; font-size: 14px; font-weight: 700; color: var(--vermelho); }
.erro:empty { display: none; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; text-align: left; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--vermelho); }

/* interruptor liga/desliga */
.interruptor { position: relative; display: inline-block; flex: none; width: 44px; height: 26px; }
.interruptor input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.interruptor span { position: absolute; inset: 0; border-radius: 99px; background: #cfcfcf; transition: background .15s; }
.interruptor span::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s;
}
.interruptor input:checked + span { background: var(--verde); }
.interruptor input:checked + span::after { transform: translateX(18px); }
.interruptor input:focus-visible + span { outline: 3px solid #ffb4b4; outline-offset: 2px; }

/* etiquetas de status */
.etiqueta {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px;
  background: var(--cinza-claro); color: var(--suave);
  font-size: 12px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap;
}
.etiqueta::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.etiqueta.em_analise { background: var(--ambar-claro); color: var(--ambar); }
.etiqueta.aprovado, .etiqueta.aberta { background: var(--verde-claro); color: var(--verde); }
.etiqueta.reprovado { background: var(--rosa); color: var(--vermelho); }
.etiqueta.suspenso { background: #e9e9e9; color: #505050; }

/* aviso flutuante */
.aviso {
  position: fixed; left: 50%; bottom: 24px; z-index: 200; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 10px; background: #2b2b2b; color: #fff;
  font-size: 15px; font-weight: 700; box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
  opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .2s, transform .2s;
}
.aviso.visivel { opacity: 1; transform: translate(-50%, 0); }
.aviso.aviso-erro { background: var(--vermelho); }

.icone-ok {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%;
  background: var(--verde-claro); color: var(--verde);
}
.icone-ok svg { width: 28px; height: 28px; }
