/* The purchase on the finished film's page (status/app-status-purchase.js): the preview, its card, and the mock checkout
   the test provider opens. The checkout is light whatever the page's theme, as Paddle's own overlay is. */
#downloads .preview-frame { position: relative; }
#downloads .preview-frame video { display: block; width: 100%; }
.preview-making { margin: 0; padding: 48px 16px; border-radius: var(--r-md); background: var(--surface); color: var(--ink-dim); text-align: center; }
.preview-making[hidden] { display: none; }
.preview-tag { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .55); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .04em; pointer-events: none; }
.preview-note { margin: 10px 2px 14px; color: var(--ink-dim); font-size: .9rem; line-height: 1.45; }
.purchase-offer { display: grid; gap: 8px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.purchase-price { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.purchase-includes-title { margin: 0; color: var(--ink); font-weight: 600; }
.purchase-includes { margin: 0 0 6px; padding-left: 20px; color: var(--ink-dim); line-height: 1.5; }
.purchase-buy { min-height: 50px; border: 0; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); font-size: 1.05rem; font-weight: 700; cursor: pointer; }
.purchase-buy:disabled { opacity: .7; cursor: progress; }
.purchase-error { margin: 0; color: var(--danger); }
.purchase-error[hidden] { display: none; }

.mock-checkout { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10, 12, 16, .62); }
.mock-checkout[hidden] { display: none; }
.mock-badge { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 8px); right: 8px; z-index: 1001; padding: 7px 10px; border-radius: 6px; background: #d7263d; color: #fff; font: 700 .75rem/1 system-ui, sans-serif; letter-spacing: .1em; box-shadow: 0 2px 8px rgba(0, 0, 0, .4); pointer-events: none; }
.mock-sheet { position: relative; width: min(440px, 100%); max-height: 100%; overflow: auto; border-radius: 12px; background: #fff; color: #1d2433; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color-scheme: light; }
@media (max-width: 520px) { .mock-checkout { padding: 0; align-items: stretch; } .mock-sheet { width: 100%; border-radius: 0; padding-top: 34px; } }
.mock-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 8px 10px 16px; border-bottom: 1px solid #dfe3ea; }
.mock-seller { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.mock-logo { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #f2a33a, #d9622b); }
.mock-close { width: 44px; height: 44px; border: 0; background: none; color: #5b6475; font-size: 26px; line-height: 1; cursor: pointer; }
.mock-summary { display: grid; gap: 6px; padding: 16px; border-bottom: 1px solid #dfe3ea; }
.mock-row { display: flex; justify-content: space-between; gap: 12px; }
.mock-row > span:first-child { min-width: 0; }
.mock-tax { color: #5b6475; font-size: .87rem; }
.mock-total { padding-top: 6px; font-size: 1.1rem; font-weight: 700; }
.mock-step { display: grid; gap: 12px; padding: 16px; }
.mock-step[hidden] { display: none; }
.mock-field { display: grid; gap: 6px; min-width: 0; margin: 0; color: #5b6475; font-size: .87rem; font-weight: 400; }   /* the page's own label has a 28 px top margin */
.mock-field[hidden] { display: none; }
.mock-field input, .mock-field select { width: 100%; min-height: 44px; margin: 0; padding: 0 12px; box-sizing: border-box; box-shadow: none; border: 1px solid #dfe3ea; border-radius: 8px; background: #f6f7f9; color: #1d2433; font: 15px system-ui, sans-serif; }
.mock-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.mock-primary { min-height: 48px; border: 0; border-radius: 8px; background: #1d2433; color: #fff; font: 600 1rem system-ui, sans-serif; cursor: pointer; }
.mock-primary:disabled, .mock-wallet:disabled { opacity: .6; cursor: progress; }
.mock-wallet { min-height: 46px; border: 0; border-radius: 8px; font: 600 .95rem system-ui, sans-serif; cursor: pointer; }
.mock-apple { background: #000; color: #fff; }
.mock-paypal { background: #ffc439; color: #003087; }
.mock-or { display: flex; align-items: center; gap: 10px; color: #5b6475; font-size: .8rem; }
.mock-or::before, .mock-or::after { content: ""; flex: 1; height: 1px; background: #dfe3ea; }
.mock-back { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: #5b6475; font: .9rem system-ui, sans-serif; cursor: pointer; }
.mock-failed { margin: 0; color: #b42318; }
.mock-failed[hidden] { display: none; }
.mock-done { justify-items: center; padding: 32px 16px; text-align: center; }
.mock-done .mock-primary { width: 100%; }
.mock-tick { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #1f9d55; color: #fff; font-size: 30px; }
.mock-muted { color: #5b6475; font-size: .87rem; }
.mock-fineprint { margin: 0; padding: 0 16px 16px; color: #5b6475; font-size: .72rem; line-height: 1.4; }
/* A Snaps trip unpaid (app-status-snaps.js): its card above the marked photos, and nothing to share or save yet. */
.snaps .purchase-offer { margin: 10px 0 14px; }
.snaps .snaps-actions[hidden], #snaps-film[hidden] { display: none; }
