:root {
  --bg: #f4f4f5;
  --card: #ffffff;
  --ink: #111111;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #111111;
  --ok: #15803d;
  --warn: #b45309;
  --vipps: #ff5b24;
  --radius: 16px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.4;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 48px;
  min-height: 100vh;
}

.lang-switch {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 6px 0 4px;
}
.flag {
  border: 2px solid transparent;
  background: #fff;
  border-radius: 10px;
  padding: 4px 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: .55;
  transition: opacity .15s, border-color .15s, transform .1s;
}
.flag:active { transform: scale(0.92); }
.flag.active { opacity: 1; border-color: var(--accent); }

header.brand {
  text-align: center;
  padding: 12px 0 20px;
}
header.brand .kr-img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: contain;
  margin-bottom: 8px;
}
header.brand .kr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #2b2b2b;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 8px;
}
header.brand h1 {
  margin: 4px 0 0;
  font-size: 30px;
  letter-spacing: -0.5px;
}
header.brand .road {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 600;
}
header.brand .sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

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

.step-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin: 0 0 12px;
}

.choices {
  display: grid;
  gap: 12px;
}

.choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s;
}
.choice:active { background: #fafafa; }
.choice.selected { border-color: var(--accent); background: #f3f4f6; }
.choice .label { display: flex; flex-direction: column; }
.choice .label small { font-weight: 400; color: var(--muted); font-size: 13px; }
.choice .price { font-size: 20px; font-weight: 800; white-space: nowrap; }
.choice .ico {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.choice .ico img {
  height: 30px;
  width: auto;
  max-width: 46px;
  object-fit: contain;
  display: block;
  mix-blend-mode: multiply; /* skjuler den lyse jpg-bakgrunnen mot kortet */
}

label.field { display: block; }
label.field .lab { font-weight: 600; margin-bottom: 6px; display: block; }

#plate {
  width: 100%;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
  text-transform: uppercase;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
#name,
#email {
  width: 100%;
  font-size: 18px;
  padding: 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
#email:focus { outline: none; border-color: var(--accent); }
input[type="text"]:focus { outline: none; border-color: var(--accent); }
.hint { color: var(--muted); font-size: 13px; margin-top: 8px; text-align: center; }

.pay-buttons { display: grid; gap: 12px; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 18px;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-card { background: #111111; }
.btn-vipps { background: var(--vipps); }
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); }

.summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1px dashed var(--line);
  margin-top: 4px;
}
.summary .big { font-size: 24px; font-weight: 800; }

.hidden { display: none !important; }

.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  margin-bottom: 12px;
}

footer.legal {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  margin-top: 24px;
  line-height: 1.5;
}

/* Kvittering / status */
.status-icon { font-size: 64px; text-align: center; margin: 8px 0; }
.kv-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv-row:last-child { border-bottom: none; }
.kv-row .k { color: var(--muted); }
.kv-row .v { font-weight: 700; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge.paid { background: #dcfce7; color: var(--ok); }
.badge.pending { background: #fef3c7; color: var(--warn); }
.badge.reported { background: #e0f2fe; color: #0369a1; }
.center { text-align: center; }
.spinner {
  width: 28px; height: 28px; border: 3px solid var(--line);
  border-top-color: var(--accent); border-radius: 50%;
  margin: 16px auto; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.vipps-amount { font-size: 40px; font-weight: 800; text-align: center; margin: 8px 0; }
.vipps-num { font-size: 30px; font-weight: 800; text-align: center; letter-spacing: 1px; }
