:root {
  --ink: #202720;
  --muted: #7b8179;
  --green: #28543d;
  --lime: #dcecae;
  --paper: #f7f8f5;
  --line: #e8ebe5;
  --white: #fff;
  --orange: #d97950;
  --red: #b94b45;
  --shadow: 0 12px 34px #1e30230d;
}
.hidden {
  display: none !important;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, 'DM Sans', Arial, sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  cursor: pointer;
}
a {
  color: var(--green);
}
.brand {
  font:
    700 25px Georgia,
    serif;
  letter-spacing: -1px;
  color: var(--green);
  text-decoration: none;
}
.brand span {
  color: var(--orange);
}
.topbar {
  height: 68px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(calc((100vw - 1180px) / 2), 24px);
}
.top-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
}
.top-links a {
  text-decoration: none;
}
.container {
  max-width: 1180px;
  margin: auto;
  padding: 30px 24px 60px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 10px 0 24px;
}
.page-head h1 {
  font:
    600 30px Georgia,
    serif;
  margin: 0 0 6px;
}
.page-head p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.primary {
  background: var(--green);
  color: white;
  border: 0;
  border-radius: 8px;
  padding: 11px 15px;
  font-weight: 700;
  font-size: 12px;
}
.primary:hover {
  background: #1d4430;
}
.secondary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  color: #566052;
  font-size: 11px;
}
.danger {
  color: var(--red) !important;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-size: 10px;
  font-weight: 700;
  color: #60695e;
}
.field input,
.field select,
.field textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
  font-size: 12px;
  outline-color: #829b7d;
  width: 100%;
}
.field textarea {
  min-height: 75px;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wide {
  grid-column: 1/-1;
}
.card,
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 12px);
  opacity: 0;
  z-index: 40;
  background: #222820;
  color: white;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 11px;
  transition: 0.2s;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.notice {
  background: #f1f4ed;
  border-radius: 8px;
  padding: 10px 12px;
  color: #64715e;
  font-size: 10px;
  line-height: 1.5;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 99px;
  padding: 5px 9px;
  background: #eef3ec;
  color: #47764a;
  font-size: 9px;
}
.status:before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status.orange {
  color: #b86e3e;
  background: #fff1e6;
}
.status.blue {
  color: #627d9a;
  background: #edf2f7;
}
.status.gray {
  color: #737a72;
  background: #f0f1ef;
}
.search {
  height: 38px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  max-width: 310px;
}
.search input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 11px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #92988f;
  background: #fcfcfa;
  padding: 12px 16px;
  white-space: nowrap;
}
td {
  font-size: 11px;
  padding: 12px 16px;
  border-top: 1px solid #f0f1ed;
  vertical-align: middle;
}
td:first-child {
  font-weight: 600;
}
.table-action {
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  padding: 4px;
}
.table-action.danger {
  color: var(--red);
}
.modal-back {
  position: fixed;
  inset: 0;
  background: #1118;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-back.open {
  display: flex;
}
.modal {
  width: min(500px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 20px 70px #0003;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.modal-head h2 {
  font:
    600 23px Georgia,
    serif;
  margin: 0;
}
.close {
  border: 0;
  background: none;
  font-size: 24px;
  color: #72796f;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 34px 20px;
  font-size: 12px;
}
.empty a {
  font-weight: 700;
  text-decoration: none;
}
@media (max-width: 700px) {
  .topbar {
    height: 60px;
    padding: 0 16px;
  }
  .container {
    padding: 20px 14px 40px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-head h1 {
    font-size: 26px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .wide {
    grid-column: auto;
  }
  .top-links {
    gap: 10px;
  }
}

.restaurant-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.restaurant-logo {
  max-width: 150px;
  max-height: 42px;
  object-fit: contain;
}
.brand-dot {
  color: var(--orange);
}

/* Verificação em duas etapas (painel do restaurante e plataforma) */
.mfa-steps {
  margin: 0 0 14px;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.7;
  color: #454c44;
}
.mfa-qr {
  display: block;
  width: 220px;
  height: 220px;
  margin: 0 auto 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  image-rendering: pixelated;
}
.mfa-manual {
  margin: 0 0 14px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.mfa-manual summary {
  cursor: pointer;
}
.mfa-manual code,
.mfa-codes code {
  font:
    600 13px/1.4 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: 0.06em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.mfa-confirm {
  display: grid;
  gap: 10px;
}
.mfa-ok {
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 9px;
  background: var(--lime);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}
.mfa-warning {
  font-size: 12px;
  line-height: 1.6;
  color: #6b4a1f;
  background: #fff4e8;
  border-radius: 9px;
  padding: 10px 12px;
  margin: 0 0 12px;
}
.mfa-codes {
  list-style: none;
  margin: 0 0 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: #fafbf9;
}
.mfa-codes li {
  text-align: center;
}
.mfa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.mfa-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 12px;
  cursor: pointer;
}
.mfa-check input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.mfa-done {
  width: 100%;
}
.mfa-done:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.mfa-muted {
  color: var(--muted);
  font-size: 12px;
}
.mfa-error {
  color: var(--red);
  font-size: 12px;
}
@media (max-width: 420px) {
  .mfa-codes {
    grid-template-columns: 1fr;
  }
}
/* Botão com cara de link ("Esqueci minha senha", "Voltar"). */
.text-link {
  background: none;
  border: 0;
  padding: 0;
  justify-self: start;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}
.text-link:hover {
  color: var(--green);
}

/* Endereço em partes (CEP, número, rua...): os campos entram direto na grade do formulário. */
.address-slot {
  display: contents;
}
.address-status {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}
.city-uf {
  display: flex;
  gap: 6px;
}
.city-uf input {
  flex: 1;
  min-width: 0;
}
.city-uf select {
  flex: none;
  width: 72px;
}
.address-legacy {
  margin: 0;
}

/* Pagamentos: painel do restaurante e lista de pedidos do cliente. */
.pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.gateway-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}
.gateway-chip {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 700;
  background: #fff;
}
.pay-connected {
  display: grid;
  gap: 3px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 10px 0;
  font-size: 12px;
}
.pay-connected span {
  font-size: 11px;
  color: var(--muted);
}
.gateway-form .seg {
  margin: 10px 0;
}
.gateway-steps {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin: 6px 0 12px;
  padding-left: 18px;
}
.gateway-form textarea {
  font:
    10px/1.35 ui-monospace,
    Consolas,
    monospace;
}
.field-help {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.45;
}
.pay-now {
  display: inline-block;
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
}
.pay-lead {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 4px;
}
.file-pick {
  display: inline-block;
  margin-top: 6px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
}

.pay-alert,
.pay-tip {
  margin-bottom: 14px;
  font-size: 12px;
}
.pay-alert {
  background: #fbeceb;
  color: #8f3a35;
}
.pay-tip {
  background: #fff4e8;
  color: #8a5a2b;
}
.pay-confirm {
  margin-top: 10px;
}
.refund-flag {
  color: #8f3a35;
}
/* Aparência escolhida pelo restaurante (topo do cardápio e telas de login) */
.look-dark {
  color: #1d241c !important;
}
.look-dark p {
  color: #3b4538 !important;
}
.look-dark .eyebrow,
.look-dark small {
  color: #4c6b2f !important;
}
.look-plain h1,
.look-plain h2,
.look-plain strong,
.look-plain p,
.look-plain small,
.look-plain .eyebrow {
  text-shadow: 0 1px 10px #000a;
}
.look-plain.look-dark h1,
.look-plain.look-dark h2,
.look-plain.look-dark strong,
.look-plain.look-dark p,
.look-plain.look-dark small,
.look-plain.look-dark .eyebrow {
  text-shadow: 0 1px 10px #fffc;
}
.look-center {
  justify-content: center;
  text-align: center;
}
.look-center > div,
.look-center p {
  margin-left: auto;
  margin-right: auto;
}
.look-sans h1,
.look-sans h2,
.look-sans strong {
  font-family: Arial, Helvetica, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.5px;
}
#hero [hidden],
.hero-preview [hidden],
.visual [hidden],
.login-preview [hidden] {
  display: none !important;
}
