:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f8;
  color: #18222d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.checkout-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(26, 124, 92, 0.12), transparent 36%),
    linear-gradient(315deg, rgba(234, 180, 84, 0.18), transparent 42%),
    #f4f6f8;
}

.checkout-panel {
  width: min(100%, 440px);
  background: #ffffff;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(31, 45, 61, 0.12);
  padding: 28px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #1a7c5c;
  color: #fff;
  font-weight: 800;
  font-size: 22px;
}

.eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  color: #667589;
}

h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
}

.payment-form {
  display: grid;
  gap: 16px;
}

.amount-label {
  font-weight: 700;
  color: #293747;
}

.amount-box {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  border: 1px solid #cbd5df;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.amount-box span {
  display: grid;
  place-items: center;
  height: 58px;
  background: #edf2f5;
  color: #526171;
  font-weight: 800;
}

.amount-box input {
  width: 100%;
  height: 58px;
  border: 0;
  padding: 0 16px;
  font: inherit;
  font-size: 26px;
  font-weight: 700;
  outline: none;
}

.channel-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.channel-group label {
  cursor: pointer;
}

.channel-group input {
  position: absolute;
  opacity: 0;
}

.channel-group span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #cbd5df;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #3f4e5f;
  background: #fff;
}

.channel-group input:checked + span {
  border-color: #1a7c5c;
  background: #e8f5ef;
  color: #125f45;
}

button,
.pay-link {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: #1a7c5c;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.status {
  min-height: 22px;
  margin: 0;
  color: #667589;
  font-size: 14px;
}

.status.error {
  color: #b42318;
}

.result {
  margin-top: 24px;
  display: grid;
  gap: 12px;
  text-align: center;
}

.result[hidden],
.pay-link[hidden] {
  display: none;
}

.qr-wrap {
  min-height: 224px;
  display: grid;
  place-items: center;
  border: 1px solid #d9e0e6;
  border-radius: 8px;
  background: #fafbfc;
}

.qr-wrap img {
  width: 190px;
  height: 190px;
  object-fit: contain;
}

.result-title {
  margin: 0;
  color: #3f4e5f;
}

.pay-link {
  display: grid;
  place-items: center;
}

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

  .checkout-panel {
    padding: 22px;
  }

  .channel-group {
    grid-template-columns: 1fr;
  }
}
