/* ══════════════════════════════════════════════════════════════════════
   Promotion module — [jsi_promote]
   App-style: sticky title bar, tappable cards, full-screen bottom sheets
   on mobile. Uses the shared --jsi-* tokens so dark/light themes just work.
   ══════════════════════════════════════════════════════════════════════ */

.jsi-promote { max-width: 980px; margin: 0 auto; padding: 0 16px 120px; }
.jsi-promote svg, .jsi-pm-sheets svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Title bar */
.jsi-pm-bar {
	position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px;
	padding: 12px 0; margin-bottom: 14px;
	background: color-mix(in srgb, var(--jsi-bg) 88%, transparent);
}
.jsi-pm-bar h1 { flex: 1; margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: var(--jsi-text); }
.jsi-pm-back {
	width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
	background: var(--jsi-panel); border: 1px solid var(--jsi-line); color: var(--jsi-text);
}
.jsi-pm-mine-link {
	font-size: 13px; font-weight: 600; padding: 8px 13px; border-radius: 999px; color: var(--jsi-text-dim);
	background: var(--jsi-panel); border: 1px solid var(--jsi-line); white-space: nowrap;
}
.jsi-pm-mine-link b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--jsi-gold); color: #fff; font-size: 11px; }
.jsi-pm-mine-link.is-active { color: var(--jsi-text); border-color: var(--jsi-gold-line); }

/* Hero */
.jsi-pm-hero {
	position: relative; overflow: hidden; border-radius: 20px; padding: 26px 22px; margin-bottom: 18px;
	background: radial-gradient(120% 140% at 0% 0%, rgba(124,92,255,.35), transparent 60%), linear-gradient(135deg, rgba(124,92,255,.16), rgba(124,58,237,.08));
	border: 1px solid var(--jsi-gold-line);
}
.jsi-pm-hero h2 { margin: 8px 0 8px; font-size: clamp(21px, 4.6vw, 30px); line-height: 1.18; letter-spacing: -.02em; color: var(--jsi-text); max-width: 20ch; }
.jsi-pm-hero p { margin: 0; color: var(--jsi-text-dim); max-width: 46ch; }
.jsi-pm-hero-soft { background: var(--jsi-panel); border-color: var(--jsi-line); }
.jsi-pm-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--jsi-gold); }

/* Module cards */
.jsi-pm-modules { display: grid; gap: 12px; margin-bottom: 26px; }
.jsi-pm-module {
	display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px;
	background: var(--jsi-panel); border: 1px solid var(--jsi-line); color: var(--jsi-text);
	transition: transform .15s ease, border-color .15s ease, background .15s ease; -webkit-tap-highlight-color: transparent;
}
.jsi-pm-module:hover, .jsi-pm-module:active { background: var(--jsi-panel-hover); border-color: var(--jsi-gold-line); transform: translateY(-1px); }
.jsi-pm-module-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: var(--jsi-gold-dim); color: var(--jsi-gold); flex: none; }
.jsi-pm-module-body { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.jsi-pm-module-body strong { font-size: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.jsi-pm-module-body small { color: var(--jsi-text-dim); font-size: 13px; line-height: 1.4; }
.jsi-pm-module-body em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--jsi-gold); margin-top: 2px; }
.jsi-pm-chevron { font-size: 26px; color: var(--jsi-text-soft); line-height: 1; }
.jsi-pm-module.is-soon { opacity: .78; }
.jsi-pm-soon { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--jsi-gold-dim); color: var(--jsi-gold); }

.jsi-pm-section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 12px; }
.jsi-pm-section-head h3 { margin: 0; font-size: 16px; color: var(--jsi-text); }
.jsi-pm-section-head a { font-size: 13px; color: var(--jsi-gold); font-weight: 600; }

.jsi-pm-lead { color: var(--jsi-text-dim); font-size: 15px; line-height: 1.5; margin: 0 0 14px; max-width: 62ch; }
.jsi-pm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px !important; }
.jsi-pm-chips li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--jsi-text); background: var(--jsi-panel); border: 1px solid var(--jsi-line); }
.jsi-pm-chips li svg { color: var(--jsi-gold); font-size: 16px; }
.jsi-pm-chips-col { flex-direction: column; align-items: stretch; }
.jsi-pm-chips-col li { border-radius: 14px; padding: 13px 15px; }

/* Tier cards */
.jsi-pm-tiers { display: grid; grid-template-columns: 1fr; gap: 14px; }
.jsi-pm-tier {
	position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 20px; border-radius: 20px;
	background: var(--jsi-panel); border: 1px solid var(--jsi-line);
}
.jsi-pm-tier.is-popular { border-color: var(--jsi-gold); box-shadow: 0 0 0 1px var(--jsi-gold-line), 0 18px 50px rgba(124,92,255,.18); }
.jsi-pm-tier h4 { margin: 0; font-size: 17px; color: var(--jsi-text); }
.jsi-pm-price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--jsi-text); }
.jsi-pm-features { display: flex; flex-direction: column; gap: 9px; margin: 2px 0 6px !important; flex: 1; }
.jsi-pm-features li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; color: var(--jsi-text-dim); }
.jsi-pm-features li svg { color: var(--jsi-success); margin-top: 2px; font-size: 15px; stroke-width: 2.4; }
.jsi-pm-tier .jsi-btn { width: 100%; }
.jsi-pm-badge { position: absolute; top: 16px; right: 16px; font-size: 10px; font-weight: 800; letter-spacing: .07em; padding: 4px 10px; border-radius: 999px; }
.jsi-pm-badge-pro { background: var(--jsi-gold-dim); color: var(--jsi-gold); border: 1px solid var(--jsi-gold-line); }
.jsi-pm-badge-popular { background: var(--jsi-gold); color: #fff; }
.jsi-pm-badge-elite { background: linear-gradient(135deg, #7C3AED, #ff8a3d); color: #1a0f00; }

/* Global ads explainer */
.jsi-pm-steps { display: grid; gap: 10px; margin-bottom: 20px; }
.jsi-pm-steps div { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 14px; background: var(--jsi-panel); border: 1px solid var(--jsi-line); font-size: 14px; color: var(--jsi-text-dim); }
.jsi-pm-steps b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--jsi-gold); color: #fff; font-size: 13px; flex: none; }
.jsi-pm-cta { width: 100%; max-width: 420px; }
.jsi-pm-fine { font-size: 12px; line-height: 1.5; margin-top: 10px; }

/* Lists / rows */
.jsi-pm-list { display: grid; gap: 10px; }
.jsi-pm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--jsi-panel); border: 1px solid var(--jsi-line); color: var(--jsi-text); }
.jsi-pm-row:hover { background: var(--jsi-panel-hover); }
.jsi-pm-row-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.jsi-pm-row-main strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jsi-pm-row-main small { color: var(--jsi-text-soft); font-size: 12.5px; }
.jsi-pm-empty { text-align: center; padding: 34px 20px; }
.jsi-pm-empty .jsi-btn { margin-top: 10px; }

/* Campaign page */
.jsi-pm-camp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.jsi-pm-camp-head h2 { margin: 4px 0 4px; font-size: 20px; color: var(--jsi-text); }
.jsi-promote .jsi-panel { margin-bottom: 14px; }
.jsi-promote .jsi-panel h3 { margin: 0 0 12px; font-size: 16px; color: var(--jsi-text); }
.jsi-pm-progress { display: flex; justify-content: space-between; gap: 4px; margin: 0 0 16px !important; padding: 14px 8px; border-radius: 16px; background: var(--jsi-panel); border: 1px solid var(--jsi-line); counter-reset: none; }
.jsi-pm-progress li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--jsi-text-soft); text-align: center; }
.jsi-pm-progress li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--jsi-panel-hover); border: 1px solid var(--jsi-line); }
.jsi-pm-progress li.is-done { color: var(--jsi-text); }
.jsi-pm-progress li.is-done span { background: var(--jsi-success); border-color: var(--jsi-success); color: #04130b; }
.jsi-pm-progress li.is-done span svg { stroke-width: 3; }
.jsi-pm-progress li.is-current span { box-shadow: 0 0 0 4px var(--jsi-success-soft); }

.jsi-pm-dl { display: grid; grid-template-columns: minmax(90px, auto) 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
.jsi-pm-dl dt { color: var(--jsi-text-soft); }
.jsi-pm-dl dd { margin: 0; color: var(--jsi-text); word-break: break-word; }
.jsi-pm-dl a { color: var(--jsi-gold); }
.jsi-pm-creative { margin-top: 14px; border-radius: 14px; overflow: hidden; border: 1px solid var(--jsi-line); background: #000; max-width: 360px; }
.jsi-pm-creative img, .jsi-pm-creative video { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; }

.jsi-pm-checklist { display: grid; gap: 10px; margin: 0 !important; }
.jsi-pm-checklist li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--jsi-text-dim); }
.jsi-pm-checklist li.is-done { color: var(--jsi-text); }
.jsi-pm-tick { width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--jsi-line); display: grid; place-items: center; flex: none; }
.jsi-pm-checklist li.is-done .jsi-pm-tick { background: var(--jsi-success); border-color: var(--jsi-success); color: #04130b; }
.jsi-pm-checklist li a { color: var(--jsi-gold); }

.jsi-pm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.jsi-pm-stats > div { padding: 12px 14px; border-radius: 14px; background: var(--jsi-panel-hover); border: 1px solid var(--jsi-line); display: flex; flex-direction: column; gap: 3px; }
.jsi-pm-stats span { font-size: 11.5px; color: var(--jsi-text-soft); }
.jsi-pm-stats strong { font-size: 18px; color: var(--jsi-text); }
.jsi-pm-stats-6 { grid-template-columns: repeat(3, 1fr); margin-bottom: 14px; }
.jsi-pm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.jsi-pm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.jsi-pm-table th { text-align: left; font-weight: 600; color: var(--jsi-text-soft); padding: 8px 6px; border-bottom: 1px solid var(--jsi-line); }
.jsi-pm-table td { padding: 9px 6px; color: var(--jsi-text); border-bottom: 1px solid var(--jsi-line); }
.jsi-pm-note-row td { color: var(--jsi-text-soft); border-bottom-style: dashed; }

/* Payment method picker */
.jsi-pm-methods { display: grid; gap: 10px; margin: 6px 0 14px; }
.jsi-pm-method {
	display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 14px; border-radius: 16px; cursor: pointer;
	background: var(--jsi-panel); border: 1.5px solid var(--jsi-line); color: var(--jsi-text); transition: border-color .15s ease, background .15s ease;
}
.jsi-pm-method:hover { background: var(--jsi-panel-hover); }
.jsi-pm-method.is-selected { border-color: var(--jsi-gold); background: var(--jsi-gold-dim); }
.jsi-pm-method-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--jsi-panel-hover); color: var(--jsi-gold); flex: none; }
.jsi-pm-method-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.jsi-pm-method-tx strong { font-size: 14.5px; }
.jsi-pm-method-tx small { color: var(--jsi-text-soft); font-size: 12.5px; }
.jsi-pm-pay-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.jsi-pm-pay-result { margin-top: 12px; }
.jsi-pm-view-camp { display: inline-flex; margin-top: 12px; }

/* Bottom sheet */
html.jsi-pm-locked, html.jsi-pm-locked body { overflow: hidden; }
.jsi-pm-sheet { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.62); }
.jsi-pm-sheet[hidden] { display: none; }
.jsi-pm-sheet-panel {
	width: 100%; max-width: 640px; height: 100dvh; display: flex; flex-direction: column;
	background: var(--jsi-bg-alt); color: var(--jsi-text); animation: jsi-pm-up .26s cubic-bezier(.2,.8,.2,1);
}
.jsi-pm-form { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.jsi-pm-sheet-head { display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; border-bottom: 1px solid var(--jsi-line); }
.jsi-pm-sheet-head > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.jsi-pm-sheet-title { font-size: 16px; }
.jsi-pm-sheet-sub { color: var(--jsi-text-soft); font-size: 12.5px; }
.jsi-pm-sheet-close { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; cursor: pointer; background: var(--jsi-panel); border: 1px solid var(--jsi-line); color: var(--jsi-text); }
.jsi-pm-stepdots { display: flex; gap: 5px; }
.jsi-pm-stepdots i { width: 18px; height: 5px; border-radius: 3px; background: var(--jsi-line); }
.jsi-pm-stepdots i.is-on { background: var(--jsi-gold); }
.jsi-pm-sheet-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 18px 16px 24px; }
.jsi-pm-sheet-body .jsi-field { margin-bottom: 14px; }
.jsi-pm-sheet-body .jsi-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.jsi-pm-sheet-body .jsi-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--jsi-text); }
.jsi-pm-sheet-body .jsi-field small { display: block; margin-top: 5px; font-size: 12px; }
.jsi-pm-sheet-body input[type=text], .jsi-pm-sheet-body input[type=url], .jsi-pm-sheet-body input[type=tel], .jsi-pm-sheet-body input[type=number], .jsi-pm-sheet-body input[type=date], .jsi-pm-sheet-body select, .jsi-pm-sheet-body textarea { width: 100%; font-size: 16px; /* 16px stops iOS zooming into the field */ }
.jsi-pm-group-label { margin: 18px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--jsi-text-soft); }
.jsi-pm-terms { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; font-size: 12.5px; line-height: 1.5; color: var(--jsi-text-dim); }
.jsi-pm-terms input { margin-top: 3px; flex: none; }
.jsi-pm-sheet-foot { display: flex; gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--jsi-line); background: var(--jsi-bg-alt); }
.jsi-pm-sheet-foot .jsi-btn { flex: 1; }
.jsi-pm-sheet-foot .jsi-btn[hidden] { display: none; }
.jsi-pm-total { display: flex; align-items: baseline; justify-content: space-between; padding: 16px; border-radius: 16px; background: var(--jsi-gold-dim); border: 1px solid var(--jsi-gold-line); }
.jsi-pm-total strong { font-size: 26px; letter-spacing: -.02em; }
.jsi-pm-total-label { color: var(--jsi-text-dim); font-size: 13px; font-weight: 600; }

/* Platform picker + live quote */
.jsi-pm-platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jsi-pm-platform { position: relative; display: block; margin: 0 !important; cursor: pointer; }
.jsi-pm-platform input { position: absolute; opacity: 0; inset: 0; }
.jsi-pm-platform span { display: block; padding: 12px; border-radius: 12px; text-align: center; font-size: 13px; font-weight: 600; background: var(--jsi-panel); border: 1.5px solid var(--jsi-line); color: var(--jsi-text-dim); }
.jsi-pm-platform input:checked + span { border-color: var(--jsi-gold); background: var(--jsi-gold-dim); color: var(--jsi-text); }
.jsi-pm-platform input:focus-visible + span { outline: 2px solid var(--jsi-gold); outline-offset: 2px; }
.jsi-pm-estimate { margin-top: 6px; }
.jsi-pm-quote { margin: 14px 0; padding: 14px 16px; border-radius: 16px; background: var(--jsi-panel); border: 1px solid var(--jsi-line); display: grid; gap: 8px; }
.jsi-pm-quote > div { display: flex; justify-content: space-between; font-size: 14px; color: var(--jsi-text-dim); }
.jsi-pm-quote .is-total { padding-top: 8px; border-top: 1px dashed var(--jsi-line); color: var(--jsi-text); font-weight: 700; font-size: 16px; }
.jsi-pm-quote [hidden], .jsi-pm-estimate[hidden], .jsi-pm-ps[hidden], .jsi-pm-step[hidden] { display: none !important; }

@keyframes jsi-pm-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (min-width: 720px) {
	.jsi-promote { padding: 0 24px 80px; }
	.jsi-pm-tiers { grid-template-columns: repeat(2, 1fr); }
	.jsi-pm-steps { grid-template-columns: repeat(3, 1fr); }
	.jsi-pm-modules { grid-template-columns: repeat(2, 1fr); }
	.jsi-pm-modules .jsi-pm-module:first-child { grid-column: 1 / -1; }
	.jsi-pm-sheet { align-items: center; }
	.jsi-pm-sheet-panel { height: min(92dvh, 860px); border-radius: 22px; border: 1px solid var(--jsi-line); overflow: hidden; }
	.jsi-pm-sheet-head { padding-top: 14px; }
}
@media (min-width: 1000px) {
	.jsi-pm-tiers { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 420px) {
	.jsi-pm-sheet-body .jsi-field-row { grid-template-columns: 1fr; gap: 0; }
	.jsi-pm-stats-6 { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	.jsi-pm-sheet-panel { animation: none; }
	.jsi-pm-module { transition: none; }
}

.jsi-pm-promoting { display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; font-size: 14px; color: var(--jsi-text-dim); background: var(--jsi-gold-dim); border: 1px solid var(--jsi-gold-line); }
.jsi-pm-promoting svg { color: var(--jsi-gold); font-size: 20px; }
.jsi-pm-promoting strong { color: var(--jsi-text); }
.jsi-pm-bio[hidden] { display: none !important; }

/* ══════════════════════════════════════════════════════════════════════
   Creative uploader — styled dropzone, preview, live progress bar
   (uploads in the background; see initUploader() in jsi-promote.js)
   ══════════════════════════════════════════════════════════════════════ */
.jsi-pm-up { position: relative; }

.jsi-pm-up-zone {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	text-align: center; padding: 22px 16px; border-radius: 16px; cursor: pointer;
	background: var(--jsi-panel); border: 1.5px dashed var(--jsi-gold-line);
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.jsi-pm-up-zone[hidden], .jsi-pm-up-file[hidden], .jsi-pm-up-error[hidden] { display: none !important; }
.jsi-pm-up-zone:hover, .jsi-pm-up-zone.is-drag { background: var(--jsi-gold-dim); border-color: var(--jsi-gold); }
.jsi-pm-up-zone.is-drag { transform: scale(1.01); }
.jsi-pm-up-zone:focus-within { outline: 2px solid var(--jsi-gold); outline-offset: 2px; }

/* The real input covers the whole zone: tapping anywhere opens the picker, and it stays keyboard-focusable. */
.jsi-pm-up-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }

.jsi-pm-up-icon {
	display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-size: 22px;
	background: var(--jsi-gold-dim); color: var(--jsi-gold); margin-bottom: 2px;
}
.jsi-pm-up-title { font-size: 14px; font-weight: 700; color: var(--jsi-text); }
.jsi-pm-up-hint { font-size: 12px; line-height: 1.45; color: var(--jsi-text-soft); max-width: 34em; }

/* Selected file card */
.jsi-pm-up-file {
	display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px;
	background: var(--jsi-panel); border: 1px solid var(--jsi-line);
}
.jsi-pm-up[data-state="done"] .jsi-pm-up-file { border-color: rgba(61,220,151,.45); }
.jsi-pm-up-thumb {
	flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
	background: var(--jsi-gold-dim); color: var(--jsi-gold); font-size: 24px;
}
.jsi-pm-up-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jsi-pm-up-meta { flex: 1; min-width: 0; }
.jsi-pm-up-name { font-size: 13.5px; font-weight: 600; color: var(--jsi-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jsi-pm-up-status { margin-top: 2px; font-size: 12px; color: var(--jsi-text-soft); font-variant-numeric: tabular-nums; }
.jsi-pm-up[data-state="done"] .jsi-pm-up-status { color: var(--jsi-success); font-weight: 600; }

.jsi-pm-up-track { height: 7px; margin-top: 9px; border-radius: 99px; overflow: hidden; background: var(--jsi-line); position: relative; }
.jsi-pm-up-fill {
	display: block; height: 100%; width: 0; border-radius: inherit; position: relative; overflow: hidden;
	background: linear-gradient(90deg, var(--jsi-gold), color-mix(in srgb, var(--jsi-gold) 60%, #fff));
	transition: width .22s ease;
}
.jsi-pm-up[data-state="uploading"] .jsi-pm-up-fill::after, .jsi-pm-up[data-state="processing"] .jsi-pm-up-fill::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
	transform: translateX(-100%); animation: jsi-pm-up-shine 1.2s linear infinite;
}
.jsi-pm-up[data-state="processing"] .jsi-pm-up-fill { width: 100% !important; opacity: .75; }
.jsi-pm-up[data-state="done"] .jsi-pm-up-fill { width: 100% !important; background: var(--jsi-success); }
@keyframes jsi-pm-up-shine { to { transform: translateX(100%); } }

.jsi-pm-up-action {
	flex: none; min-width: 34px; height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer;
	font-size: 12.5px; font-weight: 700; line-height: 1; color: var(--jsi-text-dim);
	background: var(--jsi-panel-hover); border: 1px solid var(--jsi-line);
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.jsi-pm-up[data-state="done"] .jsi-pm-up-action { padding: 0; width: 34px; font-size: 20px; }
.jsi-pm-up-action:hover { color: var(--jsi-error); border-color: rgba(255,82,82,.45); background: var(--jsi-error-soft); }

.jsi-pm-up-error { margin: 8px 2px 0; font-size: 12.5px; color: var(--jsi-error); }
.jsi-pm-up[data-state="error"] .jsi-pm-up-zone { border-color: rgba(255,82,82,.55); }

/* Continue / Pay are locked only while a file is actually uploading. */
.jsi-pm-next:disabled, .jsi-pm-submit:disabled { opacity: .55; cursor: progress; }

@media (prefers-reduced-motion: reduce) {
	.jsi-pm-up-zone, .jsi-pm-up-fill, .jsi-pm-up-action { transition: none; }
	.jsi-pm-up[data-state="uploading"] .jsi-pm-up-fill::after, .jsi-pm-up[data-state="processing"] .jsi-pm-up-fill::after { animation: none; }
}

/* Tapping a method pays straight away: show it is working and block a second tap. */
.jsi-pm-method:disabled { opacity: .6; cursor: progress; }
.jsi-pm-method.is-selected:disabled { opacity: 1; }
