.checkout-page {
  background:
    radial-gradient(circle at 12% 5%, rgba(167, 229, 92, .25), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(108, 141, 255, .16), transparent 26rem),
    #f5f9f5;
}

.checkout-shell {
  width: min(1040px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 24px 0 54px;
}

.checkout-topbar,
.checkout-brand,
.existing-account,
.payment-trust {
  display: flex;
  align-items: center;
}

.checkout-topbar {
  justify-content: space-between;
}

.checkout-brand {
  gap: 11px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
}

.checkout-back {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(290px, 380px) minmax(0, 540px);
  justify-content: center;
  gap: 22px;
  margin-top: 64px;
}

.checkout-summary,
.checkout-card,
.result-card {
  border: 1px solid rgba(210, 224, 213, .92);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(28, 69, 41, .09);
}

.checkout-summary {
  align-self: start;
  padding: 36px;
  color: #fff;
  background: linear-gradient(150deg, #172b20, #173d29 65%, #14743c 130%);
}

.checkout-kicker,
.step-label {
  color: #94dc55;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.checkout-summary h1 {
  margin: 18px 0 10px;
  font-size: 31px;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.checkout-summary > p {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
  line-height: 1.65;
}

.checkout-price {
  display: flex;
  align-items: flex-end;
  margin: 34px 0 30px;
}

.checkout-price > span {
  align-self: flex-start;
  margin: 8px 4px 0 0;
  font-size: 26px;
  font-weight: 800;
}

.checkout-price strong {
  font-size: 68px;
  line-height: .85;
  letter-spacing: -.065em;
}

.checkout-price small {
  margin-left: 9px;
  color: rgba(255, 255, 255, .58);
  font-size: 13px;
}

.checkout-summary ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  list-style: none;
}

.checkout-summary li {
  position: relative;
  padding-left: 23px;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
}

.checkout-summary li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #b7ef76;
  font-weight: 900;
}

.payment-trust {
  gap: 11px;
  margin-top: 24px;
}

.payment-trust > span,
.account-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #143f25;
  background: #b9ef7a;
  font-weight: 900;
}

.payment-trust div,
.existing-account div {
  display: grid;
  gap: 3px;
}

.payment-trust strong {
  font-size: 12px;
}

.payment-trust small {
  color: rgba(255, 255, 255, .52);
  font-size: 11px;
}

.checkout-card {
  padding: clamp(28px, 5vw, 44px);
  background: rgba(255, 255, 255, .92);
}

.checkout-heading h2 {
  margin: 9px 0 8px;
  font-size: 29px;
  letter-spacing: -.035em;
}

.checkout-heading p {
  margin: 0 0 27px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.checkout-login-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -8px 0 22px;
  padding: 13px 15px;
  border: 1px solid #cfe5d4;
  border-radius: 13px;
  color: #53665a;
  background: #f3faf4;
  font-size: 12px;
  line-height: 1.45;
}

.checkout-login-prompt[hidden] {
  display: none;
}

.checkout-login-prompt a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 10px;
  color: #fff;
  background: var(--green-dark);
  font-weight: 850;
  text-decoration: none;
}

.checkout-login-prompt a:hover {
  background: #0c753b;
}

.checkout-login-prompt a:focus-visible {
  outline: 3px solid rgba(22, 166, 83, .32);
  outline-offset: 2px;
}

#registrationFields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px 14px;
}

#registrationFields label,
.currency-choice > label {
  display: grid;
  gap: 7px;
}

#registrationFields label:nth-child(n + 3) {
  grid-column: 1 / -1;
}

#registrationFields label > span,
.currency-choice legend {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

#registrationFields input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fbfdfb;
}

#registrationFields small {
  color: var(--muted);
  font-size: 11px;
}

.currency-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0 18px;
  padding: 0;
  border: 0;
}

.currency-choice legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.currency-choice > label {
  position: relative;
  cursor: pointer;
}

.currency-choice input {
  position: absolute;
  opacity: 0;
}

.currency-choice label > span {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfdfb;
}

.currency-choice input:checked + span {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 0 0 2px rgba(32, 199, 104, .12);
}

.currency-choice input:focus-visible + span {
  outline: 3px solid rgba(22, 166, 83, .48);
  outline-offset: 2px;
}

.currency-choice small {
  color: var(--muted);
  font-size: 11px;
}

.terms-check {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.terms-check input {
  width: 16px;
  height: 16px;
  margin: 1px 8px 0 0;
  accent-color: var(--green);
}

.terms-check a {
  color: var(--green-dark);
  font-weight: 750;
}

.checkout-submit,
.checkout-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 22px;
  border-radius: 13px;
  color: #fff;
  background: var(--green);
  box-shadow: 0 10px 24px rgba(32, 199, 104, .2);
  font-weight: 900;
  text-decoration: none;
}

.checkout-submit:disabled {
  color: #8b958d;
  background: #e5eae6;
  box-shadow: none;
  cursor: not-allowed;
}

.checkout-continue {
  color: #173421;
  background: #b9ef7a;
}

.checkout-footnote {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.checkout-alert {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid #f0c16d;
  border-radius: 12px;
  color: #7b5209;
  background: #fff8e6;
  font-size: 13px;
  line-height: 1.55;
}

.checkout-alert[data-kind="error"] {
  color: #9d2942;
  border-color: #efb3bf;
  background: #fff2f5;
}

.existing-account {
  gap: 12px;
  margin: 0 0 20px;
  padding: 14px;
  border-radius: 13px;
  background: var(--green-soft);
}

.existing-account small {
  color: var(--muted);
}

.result-shell {
  width: min(560px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 60px;
}

.result-card {
  margin-top: 80px;
  padding: clamp(34px, 7vw, 58px);
  background: rgba(255, 255, 255, .94);
  text-align: center;
}

.result-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 22px;
  background: var(--green-soft);
}

.result-icon span {
  width: 25px;
  height: 25px;
  border: 3px solid rgba(22, 166, 83, .25);
  border-top-color: var(--green-dark);
  border-radius: 50%;
  animation: result-spin .8s linear infinite;
}

.result-card[data-status="paid"] .result-icon::before {
  content: "✓";
  color: var(--green-dark);
  font-size: 34px;
  font-weight: 900;
}

.result-card[data-status="paid"] .result-icon span,
.result-card[data-status="error"] .result-icon span {
  display: none;
}

.result-card[data-status="error"] .result-icon::before {
  content: "!";
  color: #b5475d;
  font-size: 34px;
  font-weight: 900;
}

.result-card h1 {
  margin: 11px 0 13px;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.18;
  letter-spacing: -.04em;
}

.result-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.result-action {
  margin-top: 26px;
}

.checkout-retry {
  margin-top: 15px;
  color: var(--green-dark);
  background: transparent;
  font-weight: 800;
}

@keyframes result-spin { to { transform: rotate(360deg); } }

@media (max-width: 780px) {
  .checkout-layout { grid-template-columns: 1fr; margin-top: 36px; }
  .checkout-summary { order: 2; }
  .checkout-card { order: 1; }
}

@media (max-width: 520px) {
  .checkout-shell { width: min(100% - 24px, 1040px); padding-top: 14px; }
  .checkout-layout { gap: 14px; }
  .checkout-summary, .checkout-card { padding: 25px; border-radius: 21px; }
  #registrationFields, .currency-choice { grid-template-columns: 1fr; }
  #registrationFields label { grid-column: 1 / -1; }
  .currency-choice legend { grid-column: 1; }
  .checkout-login-prompt { align-items: stretch; flex-direction: column; }
  .checkout-login-prompt a { text-align: center; }
  .result-card { margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .result-icon span { animation: none; }
}
