/* pay.html's checkout block: the Stripe form,
   its loading, success and error states, and the refund terms. Tokens come from site.css. */
.pay-secure { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; font: 400 12px/1.3 var(--mono); color: var(--ink-3); }
.pay-secure b { color: var(--ok); font-weight: 400; }
.pay-box { min-height: 320px; scroll-margin-top: calc(var(--nav-h) + 16px); }
#checkout { min-height: 300px; border-radius: 14px; overflow: hidden; }
.pay-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 420px; color: var(--ink-2); font: 400 13.5px var(--mono); background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.pay-loading::after { content: ""; width: .55em; height: 1em; background: var(--ink); animation: blink 1s steps(2, jump-none) infinite; }
.pay-terms { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.pay-terms b { color: var(--ink); font-weight: 600; }
.pay-terms p + p { margin-top: 8px; }
.pay-terms a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.pay-success, .pay-error { padding: 40px 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); }
.pay-error { text-align: center; }
.pay-success .tick { width: 52px; height: 52px; border-radius: 50%; margin-bottom: 20px; background: var(--ok); color: #04150d; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; }
.pay-success h2, .pay-error h2 { font: 600 24px/1.2 var(--sans); letter-spacing: -.03em; margin: 0 0 10px; color: var(--ink); text-transform: none; }
.pay-success p, .pay-error p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.pay-error p { max-width: 380px; margin: 0 auto; }
.pay-success .install { display: flex; margin: 18px 0 10px; white-space: normal; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.5; }
.pay-success .dl { font-size: 14px; color: var(--ink-2); }
.pay-success .dl a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.pay-success .btn, .pay-error .btn { margin-top: 24px; }
.pay-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--ink-3); text-align: center; }
.pay-foot a { color: var(--ink-2); }
.pay-foot a:hover { color: var(--ink); }
.ln { display: block; opacity: 0; transition: opacity .2s ease; }
.ln.show { display: block; opacity: 1; animation: none; }
@media (prefers-reduced-motion: reduce) { .pay-loading::after, .cur { animation: none; } .ln { transition: none; } .buybar { transition: none; } }
@media (max-width: 520px) { .pay-secure span + span { display: none; } }
/* "Not ready yet?": the 10% code form under the payment box. The field styles are shared with the field-notes form in site.css. */
.later { margin-top: 16px; padding: 18px; border: 1px dashed var(--line-2); border-radius: 12px; }
.later[hidden] { display: none; }
.later-h { font-size: 14.5px; color: var(--ink-2); margin-bottom: 12px; }
.later-h b { color: var(--ink); font-weight: 600; }
.later .ts:not(:empty) { margin-top: 10px; }
@media (max-width: 520px) { .later .field { flex-direction: column; border-radius: 14px; } .later input[type=email] { height: 44px; } }
