.checkout-page {
  min-height: 100vh;
  background: #f4f7f6;
}

.checkout-topbar {
  position: static;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

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

.checkout-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 80px;
}

.checkout-heading h1 {
  margin: 6px 0 24px;
  font-size: clamp(32px, 5vw, 52px);
}

.steps {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.steps span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.steps .active {
  color: var(--accent);
}

.steps .active span {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 52px;
  align-items: start;
  margin-top: 42px;
}

.checkout-form {
  display: grid;
  gap: 34px;
}

.checkout-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.checkout-form legend {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.domain-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.domain-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 143, 213, 0.14);
}

.domain-input input {
  border: 0;
  box-shadow: none;
}

.domain-input input:focus {
  box-shadow: none;
}

.domain-input span {
  padding: 0 14px;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.field-help {
  margin: -10px 0 16px;
  color: var(--muted);
}

.payment-choice {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.payment-choice label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.payment-choice input {
  width: auto;
  margin-top: 4px;
}

.payment-choice small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 500;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.duration-option {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--ink);
  font-weight: 800;
}

.duration-option select {
  width: min(260px, 100%);
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.duration-option select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 143, 213, 0.14);
}

.renewal-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.renewal-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.renewal-option small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.payment-methods span {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.terms {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-weight: 500;
}

.terms input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.terms a {
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pay-button {
  width: 100%;
  min-height: 50px;
}

.pay-button:disabled {
  cursor: wait;
  opacity: .65;
}

.checkout-status {
  min-height: 24px;
  margin: -20px 0 0;
  color: #a12b2b;
  font-weight: 700;
}

.order-summary {
  position: sticky;
  top: 24px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.summary-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.order-summary h2 {
  margin: 8px 0 4px;
  font-size: 25px;
}

.summary-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 12px 0 24px;
}

.summary-price strong {
  color: var(--accent);
  font-size: 34px;
}

.summary-price span,
.secure-note {
  color: var(--muted);
}

.order-summary dl {
  margin: 0;
}

.order-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.order-summary dt {
  color: var(--muted);
}

.order-summary dd {
  margin: 0;
  font-weight: 800;
}

.secure-note {
  margin: 20px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.result-shell {
  display: grid;
  min-height: calc(100vh - 74px);
  padding: 40px 20px;
  place-items: center;
}

.result-panel {
  width: min(580px, 100%);
  text-align: center;
}

.result-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #65736f;
  font-size: 24px;
  font-weight: 900;
}

.result-icon.success { background: #087f5b; }
.result-icon.failure { background: #b33636; }
.result-reference { color: var(--muted); font-family: monospace; }

@media (max-width: 760px) {
  .checkout-shell {
    width: min(100% - 28px, 620px);
    padding-top: 34px;
  }

  .steps {
    gap: 10px;
    justify-content: space-between;
  }

  .steps li {
    gap: 5px;
    font-size: 11px;
  }

  .checkout-layout,
  .field-grid,
  .payment-methods {
    grid-template-columns: 1fr;
  }

  .checkout-layout {
    gap: 34px;
  }

  .order-summary {
    grid-row: 1;
    position: static;
  }
}
.account-details {
  display: grid;
  gap: 1px;
  margin: 24px 0;
  overflow: hidden;
  text-align: left;
  background: #d8dee5;
  border: 1px solid #d8dee5;
  border-radius: 6px;
}

.account-details div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 11px 14px;
  background: #fff;
}

.account-details dt { color: #5c6875; }
.account-details dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
