.checkout-page {
  background: #090e15;
}

.checkout-header {
  display: flex;
  width: min(540px, 100%);
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 20px;
}

.checkout-header .wordmark {
  gap: 8px;
  font-size: 19px;
}

.checkout-header .wordmark img {
  width: 32px;
  height: 32px;
}

.checkout-header .wordmark small {
  padding: 0;
  border: 0;
  color: var(--muted);
  font-size: inherit;
  font-weight: 550;
}

.checkout-home, .checkout-text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.checkout-home:hover, .checkout-text-button:hover {
  color: var(--text);
}

.checkout-main {
  width: min(500px, calc(100% - 32px));
  padding: clamp(10px, 3vh, 32px) 0 36px;
}

.checkout-card {
  padding: clamp(16px, 5vw, 28px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #111a27;
}

.checkout-card [hidden] { display: none; }
.checkout-card a:not(.button) { color: var(--cyan); }
.checkout-card h1 { font-size: clamp(28px, 7vw, 36px); }
.checkout-card h2 { margin: 0; font-size: 17px; }

.checkout-intro, .checkout-payment-note, .checkout-access {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.checkout-intro { margin: 5px 0 16px; }

.checkout-card .signup-status:not(:empty) { margin: 0 0 12px; }

.checkout-access {
  margin: 0 0 16px;
}

.checkout-access:empty { display: none; }
.checkout-access[data-active] { color: var(--cyan); }

.checkout-fieldset {
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.checkout-fieldset legend {
  margin-bottom: 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
}

.checkout-choices {
  display: grid;
  gap: 8px;
}

.checkout-methods {
  grid-template-columns: repeat(auto-fit, minmax(min(115px, 100%), 1fr));
}

.checkout-choice {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d1521;
  cursor: pointer;
}

.checkout-choice:hover {
  border-color: var(--line-strong);
}

.checkout-choice:has(input:checked) {
  border-color: var(--cyan);
  background: #14282f;
}

.checkout-radio {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--cyan);
}

.checkout-choice-title {
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.checkout-choice-note {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.checkout-choice-price {
  margin-left: auto;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  text-align: right;
}

.checkout-card .button {
  font-size: 14px;
  font-weight: 750;
}

.checkout-card .button.primary {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: none;
  color: #071d21;
}

.checkout-payment-note { margin: 6px 0 12px; }

.checkout-history {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.checkout-history summary, .checkout-receipt-disclosure summary {
  display: list-item;
  min-height: 44px;
  padding: 12px 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.checkout-receipt-disclosure { margin-top: 8px; }

.checkout-order {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.checkout-order p, .checkout-receipt-form p {
  margin: 5px 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.checkout-order-actions, .checkout-receipt-form { margin-top: 12px; }
.checkout-receipt-form .signup-field { margin-bottom: 10px; }

.checkout-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 8px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.checkout-back {
  min-height: 44px;
  margin-top: 8px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
