:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --ink: #12181f;
  --muted: #5d6b7a;
  --line: #dfe5ec;
  --brand: #0a7d5a;
  --brand-ink: #ffffff;
  --warn: #b4530a;
  --danger: #b3261e;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 560px; margin: 0 auto; padding: 16px; }

header.brand { padding: 18px 16px 10px; max-width: 560px; margin: 0 auto; }
header.brand h1 { font-size: 20px; margin: 0; letter-spacing: -0.2px; }
header.brand p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}

#map, .map { height: 320px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 14px; }
.map-tall { height: 62vh; }

h2 { font-size: 15px; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }

.rate { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.rate:has(input:checked) { border-color: var(--brand); background: #f0faf6; }
.rate input { accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.rate .t { font-weight: 600; }
.rate .s { color: var(--muted); font-size: 13px; }
.rate .p { margin-left: auto; font-weight: 700; white-space: nowrap; }
/* Método que existe mas não serve para a tarifa escolhida: fica à vista, esbatido, com o motivo.
   Escondê-lo fazia o cliente pensar que não havia MB WAY de todo. */
.rate.off { cursor: not-allowed; opacity: 0.55; }
.rate.off .s { font-style: italic; }

button {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-ink);
  cursor: pointer;
}
button:disabled { opacity: 0.55; cursor: not-allowed; }
button.secondary { background: #e8edf3; color: var(--ink); }
button.danger { background: var(--danger); }

input[type=text], input[type=email], input[type=password] {
  width: 100%;
  padding: 13px;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.row + .row { border-top: 1px solid var(--line); }
.row .k { color: var(--muted); }
.row .v { font-weight: 600; text-align: right; }
.row.total .v { font-size: 19px; }

.big { font-size: 40px; font-weight: 700; letter-spacing: -1px; margin: 4px 0; }
.muted { color: var(--muted); font-size: 13px; }
.center { text-align: center; }
.link { background: none; border: 0; color: var(--brand); font-size: 14px; text-decoration: underline; cursor: pointer; width: auto; padding: 6px 0; }

.note { padding: 12px; border-radius: 10px; font-size: 14px; margin-bottom: 12px; }
.note.warn { background: #fdf3e7; color: var(--warn); border: 1px solid #f0d6b4; }
.note.err { background: #fdeceb; color: var(--danger); border: 1px solid #f2cbc8; }
.note.ok { background: #eaf7f1; color: var(--brand); border: 1px solid #c3e5d6; }
.note:empty { display: none; }

.hidden { display: none !important; }

.otp { letter-spacing: 8px; font-size: 24px; text-align: center; font-variant-numeric: tabular-nums; }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; margin-right: 5px; vertical-align: -1px; }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11161c;
    --card: #19202a;
    --ink: #e9eef4;
    --muted: #93a1b1;
    --line: #2a3644;
    --brand: #23a67c;
    --brand-ink: #06110d;
  }
  .rate:has(input:checked) { background: #142a23; }
  input[type=text], input[type=email], input[type=password] { background: #0f151c; }
  button.secondary { background: #253141; color: var(--ink); }
  .note.warn { background: #2d2013; border-color: #4a3620; color: #e0a565; }
  .note.err { background: #2e1917; border-color: #4d2925; color: #e8837b; }
  .note.ok { background: #13271f; border-color: #234a3a; color: #62c79f; }
}
