:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #687386;
  --line: #d9dee8;
  --panel: #ffffff;
  --surface: #eef3f8;
  --navy: #02194b;
  --danger: #ef4444;
  --focus: #0891b2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f3f6fa;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 24px 16px;
}

.checkout {
  width: min(100%, 460px);
}

.checkout__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 8px 8px 0 0;
  background: var(--navy);
  color: #fff;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  font-size: 24px;
}

.merchant,
.subtitle {
  margin: 0;
}

.merchant {
  font-size: 15px;
  font-weight: 700;
}

.subtitle {
  margin-top: 2px;
  opacity: .82;
  font-size: 12px;
}

.language {
  margin-left: auto;
}

.language select {
  height: 34px;
  min-width: 68px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.language option {
  color: var(--ink);
}

.invoice,
.amount-box,
.payment-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 0;
}

.invoice {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  font-size: 12px;
}

.invoice strong {
  display: block;
  margin-top: 3px;
  font-weight: 600;
}

.invoice__date {
  color: var(--muted);
  text-align: right;
}

.amount-box {
  padding: 20px 18px;
  text-align: center;
}

.amount-box strong {
  display: block;
  margin-top: 5px;
  color: var(--navy);
  font-size: 24px;
}

.muted {
  color: var(--muted);
  font-size: 12px;
}

.payment-card {
  margin-top: 20px;
  padding: 22px 18px 18px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, .08);
}

.card-visual {
  width: min(100%, 330px);
  height: 190px;
  margin: 0 auto 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 18px;
  background: linear-gradient(135deg, #1f2937 0%, #0f766e 55%, #f97316 135%);
  color: #fff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, .18);
}

.chip {
  width: 44px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #facc15, #f59e0b);
}

.card-lines {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.card-lines span {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  text-transform: uppercase;
}

form {
  display: grid;
  gap: 14px;
}

.gateway-restrictions {
  padding: 14px;
  border: 1px solid #d7dee9;
  border-left: 4px solid var(--navy);
  border-radius: 8px;
  background: #f8fafc;
  color: #344054;
}

.gateway-restrictions__title {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.gateway-restrictions__summary {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d7dee9;
}

.gateway-restrictions__summary div {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) 1.2fr;
  gap: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.gateway-restrictions__summary dt {
  color: var(--muted);
  font-weight: 600;
}

.gateway-restrictions__summary dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.gateway-restrictions__subtitle {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.gateway-restrictions__group + .gateway-restrictions__group {
  margin-top: 10px;
}

.gateway-restrictions__group h3 {
  margin: 0 0 3px;
  color: var(--navy);
  font-size: 12px;
}

.gateway-restrictions__group p,
.gateway-restrictions__empty,
.gateway-restrictions__note {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.gateway-restrictions__note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #d7dee9;
  color: #166534;
  font-weight: 700;
}

label {
  display: grid;
  gap: 7px;
  color: #263246;
  font-size: 13px;
  font-weight: 600;
}

input,
select {
  width: 100%;
  height: 42px;
  border: 1px solid #cfd6e3;
  border-radius: 8px;
  background: #f9fafc;
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
}

input:focus,
select:focus {
  outline: 2px solid rgba(8, 145, 178, .22);
  border-color: var(--focus);
}

.toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.toggle input {
  width: 18px;
  height: 18px;
}

button {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--danger);
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}

button:disabled {
  cursor: wait;
  opacity: .7;
}

.message {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.message--error {
  color: #b91c1c;
}

@media (max-width: 420px) {
  .page-shell {
    padding: 0;
  }

  .checkout__header,
  .payment-card {
    border-radius: 0;
  }

  .payment-card {
    margin-top: 14px;
  }
}
