/* Checkout slip in the typing pool's look: bond paper, carbon blue, a red stamp for trouble. */
html:not(.can-buy) .cc-buy, html:not(.can-buy) .l2, html:not(.can-buy) .strip__buy,
html:not(.can-buy) .rail-buy, html:not(.can-buy) .sticky-slip { display: none; }
.nojs { margin-top: 10px; }
.nojs .terms { margin-top: 8px; }
.pay-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-right: 40px; }
.pay-amt { font: 700 26px/32px var(--font-typed); white-space: nowrap; }
.pay-what { font: italic 400 14px/21px var(--font-typed); color: var(--ink-soft); }
#checkout .note { display: block; margin: 0; padding: 0; background: none; border: 0; font: italic 400 13px/19px var(--font-typed); color: var(--ink-soft); }
#checkout .note a { font-weight: 400; color: var(--carbon); }
.pay-view { height: 0; overflow: hidden; transition: height 240ms var(--ease-feed); }
.pay-track { display: flex; align-items: flex-start; transition: transform 320ms var(--ease-feed); }
.pay-pane { flex: 0 0 100%; min-width: 0; display: grid; gap: 12px; padding: 2px 2px 14px; }
.pay-el { min-height: 48px; }
.pay-label { display: block; font: 700 12px/16px var(--font-printed); letter-spacing: .08em; text-transform: uppercase; color: var(--carbon); margin-bottom: -6px; }
.pay-input { width: 100%; min-height: 48px; padding: 10px 12px; font: 400 16px var(--font-typed); color: var(--ink); background: var(--bond); border: 0; border-bottom: 2px solid var(--carbon); border-radius: 0; }
.pay-input:focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.pay-input::placeholder { color: var(--ink-soft); opacity: .7; }
.pay-wide { width: 100%; }
.pay-or { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; color: var(--ink-soft); font: italic 400 14px var(--font-typed); }
.pay-or::before, .pay-or::after { content: ""; border-top: 1px solid var(--rule); }
.pay-bar { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.pay-bar b { font: 700 12px/16px var(--font-printed); letter-spacing: .08em; text-transform: uppercase; color: var(--carbon); outline: none; }
.pay-back { background: none; border: 0; padding: 6px 0; font: inherit; color: var(--carbon); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.btn-ink, .buy { display: inline-flex; align-items: center; justify-content: center; gap: .35em; min-height: 52px; padding: 0 22px; border: 0; border-radius: 0; background: var(--carbon); color: var(--bond); font: 700 15px var(--font-printed); letter-spacing: .04em; cursor: pointer; box-shadow: 0 2px 0 var(--carbon-deep); transition: background-color var(--dur-ui) ease; }
.btn-ink:active, .buy:active { transform: translateY(2px); box-shadow: none; }
.btn-ghost { background: transparent; color: var(--carbon); box-shadow: inset 0 0 0 2px var(--carbon), 0 2px 0 var(--carbon); }
.buy:disabled { cursor: progress; animation: pay-pulse 900ms ease-in-out infinite alternate; }
@keyframes pay-pulse { to { opacity: .55; } }
.pay-msg { margin: 0; padding: 10px 12px; border-left: 3px solid var(--stamp); color: var(--stamp); background: var(--bond-shade); font: 400 14px/20px var(--font-typed); }
.pay-msg[hidden] { display: none; }
.pay-load[hidden] { display: none; }
.pay-x { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: none; color: var(--ink); font-size: 20px; cursor: pointer; }
dialog.pay[data-busy] .pay-x { visibility: hidden; }
.pay-paid { display: flex; align-items: center; gap: 12px; font: 700 20px/26px var(--font-typed); outline: none; }
.pay-check { display: grid; place-items: center; width: 40px; height: 40px; border: 3px double var(--stamp); color: var(--stamp); rotate: -6deg; font-size: 20px; }
.pay-steps { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 4px 0; padding: 0; text-align: center; font: 400 12px var(--font-printed); color: var(--ink-soft); }
.pay-steps li { position: relative; display: grid; justify-items: center; gap: 6px; margin: 0; }
.pay-steps li::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--rule); background: var(--bond); z-index: 1; }
.pay-steps li + li::after { content: ""; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: var(--rule); }
.pay-steps .is-done { color: var(--ink); font-weight: 700; }
.pay-steps .is-done::before { background: var(--carbon); border-color: var(--carbon); }
.pay-steps li.is-done + li.is-done::after { background: var(--carbon); }
.pay-files { min-height: 48px; border-top: 1px solid var(--carbon); }
.pay-files a { display: flex; align-items: baseline; gap: 8px; min-height: 48px; padding: 12px 0 9px; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 700; color: var(--ink); }
.pay-files .lead { flex: 1; min-width: 12px; border-bottom: 1px dotted var(--ink-soft); transform: translateY(-4px); }
.pay-files .pg { font: 400 12px var(--font-printed); letter-spacing: .12em; text-transform: uppercase; color: var(--stamp); white-space: nowrap; }
dialog.pay.is-paid .pay-tos, dialog.pay.is-paid .pay-what { display: none; }
@media (prefers-reduced-motion: reduce) { .pay-view, .pay-track { transition: none; } .buy:disabled { animation: none; opacity: .7; } }
