.checkout-page .page::before { left: 0; }
.checkout-page .page::after { right: 0; }
.checkout-page [hidden] { display: none !important; }
.checkout-heading { margin: 16px 0 28px; }
.checkout-heading h1 { font-size: clamp(1.8rem, 4vw, 3.3rem); line-height: 1.2; letter-spacing: -0.045em; margin: 14px 0 20px; word-break: keep-all; }
.checkout-steps { display: flex; flex-wrap: wrap; gap: 12px 30px; list-style: none; border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); padding: 18px 0; margin: 0 0 28px; font-size: 0.86rem; color: var(--muted); }
.checkout-status { margin: 18px 0; padding: 14px 18px; background: #edf3d8; border-radius: 12px; line-height: 1.7; }
.checkout-status:empty { display: none; }
.checkout-status[data-error="true"] { background: #fff0e9; color: #8b310f; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 32px; }
.checkout-selection { padding: 0; }
.checkout-selection h2 { margin-bottom: 18px; font-size: 1.4rem; }
#product-options { border: 0; padding: 0; min-width: 0; display: grid; gap: 16px; }
.product-option { cursor: pointer; display: block; padding: 24px; border: 2px solid var(--stroke); border-radius: 20px; background: #fff; }
.product-option:has(input:checked) { border-color: #597b12; box-shadow: 0 0 0 3px #c7ff3d40; }
.product-option input { width: 20px; height: 20px; accent-color: #54720b; vertical-align: middle; margin-right: 8px; }
.product-option strong { font-size: 1.2rem; }
.product-option .option-price { display: block; margin-top: 12px; font-size: 1.75rem; font-weight: 700; letter-spacing: -0.04em; }
.product-option .option-price small { font-size: 0.85rem; font-weight: 500; }
.product-option ul { padding-left: 18px; margin: 14px 0 0; display: grid; gap: 8px; color: var(--muted); line-height: 1.6; font-size: 0.9rem; }
.product-option .unavailable { display: block; margin-top: 12px; color: #983b17; }
.checkout-guidance { margin-top: 30px; border-top: 1px solid var(--stroke); padding-top: 28px; }
.checkout-guidance p { margin: 12px 0; font-size: 0.9rem; color: var(--muted); line-height: 1.8; word-break: keep-all; }
.checkout-guidance strong { color: var(--ink); }
.checkout-guidance a, .checkout-agreements a, .summary-note a { text-decoration: underline; text-underline-offset: 3px; }
.checkout-summary { padding: 30px; border-radius: 24px; border: 1px solid var(--stroke); background: #fff; box-shadow: var(--shadow); }
.checkout-summary h2 { font-size: 1.4rem; margin: 14px 0 28px; }
.selected-name { font-size: 1.1rem; font-weight: 700; }
.selected-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 12px 0; }
.selected-price strong { font-family: "Space Grotesk", sans-serif; font-size: clamp(2.5rem, 4vw, 3.5rem); letter-spacing: -0.05em; }
.selected-price span { color: var(--muted); font-size: 0.9rem; }
.summary-note { font-size: 0.83rem; color: var(--muted); line-height: 1.8; margin: 14px 0; word-break: keep-all; }
.checkout-member { padding: 18px 0; margin: 16px 0; border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); font-size: 0.9rem; line-height: 1.8; overflow-wrap: anywhere; }
#auth-required > p { font-size: 0.9rem; line-height: 1.7; }
.full-button { width: 100%; display: flex; justify-content: center; min-height: 52px; margin-top: 22px; font: inherit; font-weight: 700; text-align: center; cursor: pointer; }
.full-button:disabled { opacity: 0.5; cursor: not-allowed; }
.signup-link { display: block; text-align: center; font-size: 0.88rem; margin-top: 20px; text-decoration: underline; }
.checkout-agreements { border: 0; padding: 0; margin: 18px 0 0; }
.checkout-agreements legend { font-weight: 700; margin-bottom: 6px; }
.checkout-agreements label { display: flex; align-items: start; gap: 10px; margin-top: 14px; font-size: 0.87rem; line-height: 1.7; word-break: keep-all; }
.checkout-agreements input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; accent-color: #54720b; }
.checkout-security { margin-top: 24px; color: var(--muted); font-size: 0.78rem; line-height: 1.7; }
.subscriptions-section { margin: 46px 0; padding: 26px 0; border-top: 1px solid var(--stroke); }
.subscriptions-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.subscriptions-heading h2 { margin-top: 8px; }
.subscription-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: 18px 0; }
.subscription-entry { border: 1px solid var(--stroke); background: #fff; border-radius: 18px; padding: 22px; }
.subscription-entry h3 { font-size: 1.1rem; margin: 12px 0; }
.subscription-entry p { font-size: 0.9rem; line-height: 1.8; }
.subscription-state { font-weight: 700; color: #4b680c; }
.checkout-page a:focus-visible, .checkout-page button:focus-visible, .checkout-page input:focus-visible { outline: 3px solid #54720b; outline-offset: 4px; }
.checkout-page .site-footer { margin-top: 50px; }
.checkout-page .site-footer p { line-height: 1.9; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 760px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .checkout-selection { display: contents; }
  #choose-title { order: 1; margin: 0; }
  #product-options { order: 2; }
  .checkout-layout .checkout-summary { order: 3; }
  .checkout-guidance { order: 4; margin-top: 0; }
  .checkout-summary { padding: 24px 20px; }
  .product-option { padding: 20px 16px; }
  .checkout-page .site-header { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding-bottom: 24px; }
  .checkout-page .site-header .nav { grid-column: 1 / -1; grid-row: 2; gap: 24px; font-size: 0.9rem; }
  .checkout-page .site-header > .btn { grid-column: 2; grid-row: 1; padding: 10px 14px; }
}
