.checkout { width: min(650px, calc(100% - 32px)); margin: clamp(28px, 7vw, 88px) auto; padding: clamp(22px, 5vw, 50px); border: 1px solid #dcebe8; border-radius: 28px; background: #fffdf7; color: #163c4b; text-align: center; }
.checkout h1 { margin: 0; font: 900 clamp(27px, 5vw, 42px)/1.12 Nunito, sans-serif; text-wrap: balance; }
.checkout p { margin: 16px auto; max-width: 48ch; }
.checkout-back { color: #163c4b; text-decoration: none; font-weight: 700; }
.checkout-actions { display: grid; gap: 10px; max-width: 320px; margin: 22px auto 0; }
.checkout-auth { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: 12px; font: 700 15px/1.2 Nunito, sans-serif; letter-spacing: .1px; text-decoration: none; }
.checkout-auth-logo { width: 20px; height: 20px; flex-shrink: 0; }
.checkout-auth-google { background: #fff; color: #3c4043; border: 1.5px solid #dadce0; }
.checkout-auth-google:hover { background: #f8f9fa; text-decoration: none; }
.checkout-auth-apple { background: #000; color: #fff; border: 1.5px solid #000; }
.checkout-auth-apple:hover { background: #111; text-decoration: none; }
.checkout-auth-apple .checkout-auth-logo { width: 16px; height: 19px; }
.checkout [hidden] { display: none; }
.checkout-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 10px 22px; border: 1px solid transparent; border-radius: 999px; background: #086d80; color: white; font: 900 16px Nunito, sans-serif; text-decoration: none; cursor: pointer; }
.checkout-button:hover { background: #06576a; text-decoration: none; }
.checkout-provider { background: #edf7f7; color: #163c4b; border-color: #a8c7cf; }
.checkout-provider:hover { background: #d3ebee; }
.checkout-button:disabled { opacity: .65; cursor: wait; }
.checkout-periods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 24px 0 0; border: 0; }
.checkout-periods legend { margin-bottom: 8px; font-weight: 700; }
.checkout-periods label { position: relative; cursor: pointer; }
.checkout-periods input { position: absolute; opacity: 0; }
.checkout-periods span { display: grid; gap: 4px; padding: 13px 6px; border: 2px solid #d3e4e7; border-radius: 16px; background: #f7fbfc; }
.checkout-periods input:checked + span { border-color: #086d80; background: #d9eff1; }
.checkout-periods input:focus-visible + span { outline: 2px solid #086d80; outline-offset: 3px; }
.checkout-plan-actions { max-width: none; margin-top: 18px; }
.checkout-logout {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 44px; padding: 8px 16px; border: 0; border-radius: 999px;
  background: transparent; color: #086d80; font: 700 15px Nunito, sans-serif;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.checkout-logout:hover { color: #06576a; }
.checkout-account { margin: 10px auto 0; color: #435e6b; font-size: 14px; }
.checkout-account-strong { margin: 4px auto 16px; color: #0b3a5c; font-size: 18px; font-weight: 900; overflow-wrap: anywhere; }
#checkout-return + .checkout-button { margin-top: 10px; }
.checkout-membership { margin-top: 4px; white-space: pre-line; font-weight: 600; color: #24565B; }
.checkout-legal { font-size: 14px; }

/* Short hop to Stripe: a calm spinner instead of an empty form. */
.checkout-loading::before { content: ''; display: block; width: 34px; height: 34px; margin: 6px auto 14px; border-radius: 50%; border: 4px solid #d6eef3; border-top-color: #086d80; animation: checkout-spin .9s linear infinite; }
@keyframes checkout-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .checkout-loading::before { animation-duration: 3s; } }
