/* Purchase form and payment status. Uses the theme's tokens, with fallbacks. */
.pw-purchase { display: grid; gap: 16px; }
.pw-choices { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; min-width: 0; }
.pw-business { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; min-width: 0; }
.pw-business legend { padding: 0; margin-bottom: 6px; font-weight: 700; }
.pw-business .pw-small { margin: 0; }
.pw-field { display: grid; gap: 4px; font-weight: 600; }
.pw-field input { padding: 10px 12px; border: 2px solid currentColor; background: transparent; color: inherit; font: inherit; }
.pw-choices legend { padding: 0; margin-bottom: 10px; font-weight: 700; }
.pw-managed[hidden] { display: none; }
.pw-managed { display: grid; gap: 10px; padding: 14px 16px; border-left: 4px solid var(--orange, #ee3b0c); background: var(--paper-2, #f4f3ef); }
.pw-managed-h { margin: 0; font-weight: 700; }
.buy-card .pw-managed, .on-ink .pw-managed { background: transparent; }
.pw-option { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 12px 14px; border: 2px solid currentColor; cursor: pointer; }
.pw-option:has(input:checked) { border-color: var(--orange, #ee3b0c); box-shadow: inset 0 0 0 2px var(--orange, #ee3b0c); }
.pw-check { display: block; margin: 14px 0 0; }
.pw-check label { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; line-height: 1.5; cursor: pointer; }
.pw-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange, #ee3b0c); }
.pw-check[hidden] { display: none; }
.pw-option input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--orange, #ee3b0c); }
.pw-option input:focus-visible { outline: 3px solid var(--orange, #ee3b0c); outline-offset: 3px; }
.pw-option-body { display: grid; gap: 4px; }
.pw-option-body strong { font-size: 1rem; }
.pw-option-total { font-weight: 700; font-size: 0.95rem; }
.pw-option-text, .pw-small, .pw-then { font-size: 0.92rem; color: var(--muted, #5f5e59); }
.pw-benefits { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: 0.92rem; }
.pw-benefits li { padding-left: 20px; text-indent: -20px; }
.pw-benefits li::before { content: "✓"; content: "✓" / ""; display: inline-block; width: 20px; text-indent: 0; font-weight: 700; color: var(--orange, #ee3b0c); }
.buy-card .pw-option-text, .buy-card .pw-small, .buy-card .pw-then, .on-ink .pw-option-text, .on-ink .pw-small, .on-ink .pw-then { color: var(--muted-on-ink, #bdbab2); }
.pw-then { margin-top: -8px; text-align: right; }
.pw-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; padding-top: 12px; border-top: 2px solid currentColor; font-weight: 700; }
.pw-total strong { font: 900 2rem/1 var(--display, sans-serif); }
.pw-total strong.is-pending { font: 700 1rem/1.4 var(--sans, sans-serif); }
.pw-purchase .btn { width: 100%; }
.pw-purchase .btn[aria-disabled="true"] { cursor: progress; translate: none; }
.pw-error { padding: 12px 14px; border: 3px solid var(--orange, #ee3b0c); font-weight: 600; }
.pw-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pw-note { border: 1px dashed currentColor; padding: 10px 12px; font-size: 0.82rem; line-height: 1.45; }

.pw-status .wrap { display: grid; gap: 20px; justify-items: start; }
.pw-status .section-head { margin-bottom: 0; }
.pw-next { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; font-size: 1.1rem; }
.pw-next li::marker { font-weight: 800; color: var(--orange-text, #c42f06); }
.pw-help { max-width: 60ch; }
