.login-link {
  font-weight: 600;
  white-space: nowrap;
}

.checkout-dialog[hidden],
.checkout-card-step[hidden] {
  display: none;
}

.checkout-dialog {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 2, 0.76);
  backdrop-filter: blur(8px);
}

.checkout-panel {
  --checkout-accent: #e3ac53;
  --checkout-accent-soft: rgba(227, 172, 83, 0.16);
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 32px;
  border: 1px solid color-mix(in srgb, var(--checkout-accent) 50%, transparent);
  border-radius: 10px;
  background: linear-gradient(160deg, #152539, #0e1928 72%);
  color: #f5f0e6;
  box-shadow: 0 24px 100px rgba(0, 0, 0, 0.65);
  font-family: "Instrument Sans", -apple-system, "Segoe UI", Arial, sans-serif;
}

body[data-landing-model="b"] .checkout-panel {
  --checkout-accent: #8fa3ff;
  --checkout-accent-soft: rgba(35, 64, 232, 0.18);
  background: linear-gradient(160deg, #20232b, #101114 72%);
  color: #f2f2ee;
}

.checkout-panel h2 {
  margin: 0;
  color: inherit;
  font-family: inherit;
  font-size: clamp(2rem, 6vw, 2.65rem);
  font-weight: 700;
  line-height: 1.05;
}

.checkout-eyebrow,
.checkout-plan {
  margin: 0;
  color: var(--checkout-accent);
  font-family: ui-monospace, "IBM Plex Mono", "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.checkout-plan {
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.checkout-intro {
  margin: 16px 0 22px;
  color: rgba(245, 240, 230, 0.72);
  font-size: 0.92rem;
  line-height: 1.55;
}

.checkout-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245, 240, 230, 0.2);
  border-radius: 7px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: 400 1.5rem/1 sans-serif;
}

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

.checkout-panel label {
  display: grid;
  gap: 6px;
  color: rgba(245, 240, 230, 0.88);
  font-size: 0.76rem;
  font-weight: 600;
}

.checkout-panel input:not([type="checkbox"]) {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(245, 240, 230, 0.18);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.34);
  color: inherit;
  font: 400 0.9rem/1.2 "Instrument Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  outline: none;
}

.checkout-panel input:focus {
  border-color: var(--checkout-accent);
  box-shadow: 0 0 0 3px var(--checkout-accent-soft);
}

.checkout-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-card-step {
  display: grid;
  gap: 13px;
  margin: 2px 0 0;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--checkout-accent) 30%, transparent);
  border-radius: 7px;
}

.checkout-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 4px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--checkout-accent) 30%, transparent);
  border-radius: 7px;
}

.checkout-mode legend {
  padding: 0 6px;
  color: var(--checkout-accent);
  font-size: 0.76rem;
  font-weight: 700;
}

.checkout-mode label {
  grid-template-columns: 18px 1fr;
  align-items: start;
  padding: 10px;
  border: 1px solid rgba(245, 240, 230, 0.15);
  border-radius: 6px;
  cursor: pointer;
}

.checkout-mode input { margin: 2px 0 0; accent-color: var(--checkout-accent); }
.checkout-mode span { display: grid; gap: 3px; }
.checkout-mode strong { font-size: 0.8rem; }
.checkout-mode small { color: rgba(245, 240, 230, 0.62); font-weight: 400; line-height: 1.35; }

.checkout-card-step legend {
  padding: 0 6px;
  color: var(--checkout-accent);
  font: 600 0.72rem/1 ui-monospace, "IBM Plex Mono", "JetBrains Mono", monospace;
}

.checkout-hint,
.checkout-security {
  margin: 0;
  color: rgba(245, 240, 230, 0.6);
  font-size: 0.7rem;
  line-height: 1.45;
}

.checkout-consent {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 9px !important;
  font-weight: 400 !important;
}

.checkout-consent input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--checkout-accent);
}

.checkout-feedback {
  min-height: 18px;
  margin: 0;
  color: #9fdda9;
  font-size: 0.76rem;
}

.checkout-feedback[data-state="error"] {
  color: #f38686;
}

.checkout-submit {
  width: 100%;
  margin-top: 2px;
  padding: 13px 22px;
  border: 0;
  border-radius: 5px;
  background: var(--checkout-accent);
  color: #101114;
  cursor: pointer;
  font: 700 0.95rem/1 "Instrument Sans", -apple-system, "Segoe UI", Arial, sans-serif;
}

.checkout-submit:disabled {
  cursor: wait;
  opacity: 0.68;
}

.checkout-security {
  margin-top: 18px;
  text-align: center;
}

@media (max-width: 620px) {
  .checkout-dialog {
    align-items: end;
    padding: 0;
  }

  .checkout-panel {
    max-height: 94vh;
    padding: 26px 20px;
    border-radius: 14px 14px 0 0;
  }

  .checkout-fields {
    grid-template-columns: 1fr;
  }

  .checkout-mode { grid-template-columns: 1fr; }
}
