/* RFM Popups — brand-token styles for the popups themselves (modal + bar). Self-contained. */

.rfm-pop-overlay{position:fixed;inset:0;background:rgba(8,4,14,.62);display:grid;place-items:center;z-index:99999;padding:20px;animation:rfm-fade .2s ease}
@keyframes rfm-fade{from{opacity:0}to{opacity:1}}
.rfm-pop-root{font-family:'Inter',system-ui,-apple-system,sans-serif}

/* ── modal ── */
.rfm-pop{width:340px;max-width:100%;border-radius:18px;background:linear-gradient(180deg,#1A0E2E,#140A22);border:1px solid #3A1F5E;box-shadow:0 24px 60px rgba(0,0,0,.6),0 0 0 1px rgba(157,107,255,.10);position:relative;overflow:hidden;color:#C9BEDB}
.rfm-pop-x{position:absolute;top:11px;right:12px;width:26px;height:26px;border-radius:50%;border:1px solid #3A1F5E;color:#8A7BA3;display:grid;place-items:center;font-size:16px;line-height:1;cursor:pointer;background:rgba(0,0,0,.35);z-index:2;padding:0}
.rfm-pop-x:hover{color:#fff;border-color:#9D6BFF}
.rfm-pop-poster{height:128px;position:relative;display:grid;place-items:center;background:radial-gradient(120px 80px at 30% 20%,rgba(224,82,156,.5),transparent 60%),linear-gradient(135deg,#3A1F5E,#7B3FE4 60%,#9D6BFF);background-size:cover;background-position:center}
.rfm-pop-poster.has-img{background-size:contain;background-position:center;background-repeat:no-repeat;background-color:#0E0716}
.rfm-pop-eq{display:flex;align-items:flex-end;gap:4px;height:46px}
.rfm-pop-eq span{width:6px;background:rgba(255,255,255,.85);border-radius:3px;height:16px;animation:rfm-eq 1s ease-in-out infinite}
.rfm-pop-eq span:nth-child(2){animation-delay:.15s}
.rfm-pop-eq span:nth-child(3){animation-delay:.3s}
.rfm-pop-eq span:nth-child(4){animation-delay:.45s}
.rfm-pop-eq span:nth-child(5){animation-delay:.6s}
@keyframes rfm-eq{0%,100%{height:14px}50%{height:42px}}
.rfm-pop-tag{position:absolute;bottom:10px;left:12px;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#fff;background:rgba(11,6,18,.55);border:1px solid rgba(255,255,255,.2);padding:4px 9px;border-radius:999px}
.rfm-pop-body{padding:18px 20px 20px}
.rfm-pop-body h3{font-family:'Space Grotesk','Inter',sans-serif;font-size:18.5px;line-height:1.25;margin:0 0 8px;color:#fff;font-weight:600;letter-spacing:-.01em}
.rfm-pop-body p{font-size:12.5px;line-height:1.55;color:#C9BEDB;margin:0 0 15px}
.rfm-pop-email{width:100%;background:#0E0716;border:1px solid #3A1F5E;border-radius:10px;padding:11px 13px;color:#fff;font-size:12.5px;margin-bottom:9px;font-family:inherit;box-sizing:border-box}
.rfm-pop-email::placeholder{color:#6A5A86}
.rfm-pop-email:focus{outline:none;border-color:#9D6BFF;box-shadow:0 0 0 3px rgba(123,63,228,.22)}
.rfm-pop-cta{width:100%;border:none;border-radius:11px;padding:12px;color:#fff;font-weight:700;font-size:13.5px;background:linear-gradient(135deg,#7B3FE4,#9D6BFF);cursor:pointer;font-family:inherit;box-shadow:0 8px 22px rgba(123,63,228,.4);display:block;text-align:center;text-decoration:none;box-sizing:border-box}
.rfm-pop-cta:hover{filter:brightness(1.08)}
.rfm-pop-cta[disabled]{opacity:.6;cursor:default;filter:none}
.rfm-pop-foot{text-align:center;font-size:10.5px;color:#8A7BA3;margin-top:10px}
.rfm-pop-badge{display:inline-block;font-size:10.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#0B0612;background:#B8F84A;padding:4px 10px;border-radius:999px;margin-bottom:11px}
.rfm-pop-countdown{display:flex;align-items:baseline;gap:3px;justify-content:center;margin:2px 0 15px;font-variant-numeric:tabular-nums}
.rfm-pop-countdown b{font-family:'Space Grotesk','Inter',sans-serif;font-size:21px;font-weight:700;color:#fff;background:#0E0716;border:1px solid #3A1F5E;border-radius:8px;padding:6px 8px;min-width:38px;text-align:center;display:inline-block}
.rfm-pop-countdown i{font-style:normal;font-size:11px;color:#8A7BA3;margin-right:7px}
.rfm-cd-ended{color:#E0529C;font-weight:600;font-size:13px}
.rfm-pop-coupon{display:flex;align-items:center;gap:8px;width:100%;background:#0E0716;border:1px dashed #7B3FE4;border-radius:11px;padding:11px 13px;margin-bottom:12px;cursor:pointer;font-family:inherit;box-sizing:border-box}
.rfm-pop-coupon:hover{border-color:#9D6BFF}
.rfm-pop-coupon .rfm-cp-tag{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#8A7BA3}
.rfm-pop-coupon b{flex:1;text-align:left;color:#fff;font-size:15px;letter-spacing:.04em;font-family:'Space Grotesk',Inter,sans-serif}
.rfm-pop-coupon .rfm-cp-copy{font-size:11.5px;font-weight:700;color:#B8F84A}
.rfm-pop-done{text-align:center;color:#B8F84A;font-weight:600;font-size:13px;padding:8px 0}

/* ── sticky bar ── */
body.rfm-has-bar{padding-top:52px}
.rfm-pop-root.is-bar{position:fixed;left:0;right:0;top:0;z-index:99998;display:flex;justify-content:center;padding:8px 14px;background:rgba(11,6,18,.94);border-bottom:1px solid #3A1F5E}
body.admin-bar .rfm-pop-root.is-bar{top:32px}
@media screen and (max-width:782px){body.admin-bar .rfm-pop-root.is-bar{top:46px}}
.rfm-bar{display:flex;align-items:center;gap:12px;width:100%;max-width:780px;position:relative;color:#C9BEDB}
.rfm-bar-body{flex:1;min-width:0;display:flex;align-items:baseline;gap:8px}
.rfm-bar-body b{color:#fff;font-size:13.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rfm-bar-body p{margin:0;font-size:12px;color:#8A7BA3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rfm-bar .rfm-pop-form{display:flex;align-items:center;gap:8px;margin-left:auto}
.rfm-bar .rfm-pop-email.compact{width:180px;margin:0;padding:8px 11px}
.rfm-bar .rfm-pop-cta{width:auto;display:inline-block;padding:9px 16px;font-size:12.5px;white-space:nowrap;box-shadow:none}
.rfm-bar-thumb{width:42px;height:42px;border-radius:9px;background-size:cover;background-position:center;flex:0 0 auto;border:1px solid #3A1F5E}
.rfm-bar .rfm-pop-x{position:static;flex:0 0 auto}
.rfm-bar .rfm-pop-done{padding:0;margin-left:auto}

@media (prefers-reduced-motion:reduce){.rfm-pop-eq span{animation:none;height:28px}.rfm-pop-overlay{animation:none}}
@media (max-width:560px){
	.rfm-bar{flex-wrap:wrap;gap:8px}
	.rfm-bar .rfm-pop-form{width:100%}
	.rfm-bar .rfm-pop-email.compact{flex:1;width:auto}
	body.rfm-has-bar{padding-top:84px}
}

/* Inline offers share the maker's art, close button and content renderer. */
.rfm-pop-root.is-inline { width: 100%; }
.is-inline .rfm-pop {
	display: grid;
	grid-template-columns: 122px minmax(0, 1fr);
	gap: 16px;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	padding: 14px;
	border-color: #856ac6;
	box-shadow: none;
}
.is-inline .rfm-pop-poster { height: auto; aspect-ratio: 1; border-radius: 11px; overflow: hidden; }
.is-inline .rfm-pop-art { width: 100%; height: 100%; object-fit: contain; display: block; }
.is-inline .rfm-pop-body { padding: 4px 38px 4px 0; }
.is-inline .rfm-pop-body h3 { margin: 0 0 5px; }
.is-inline .rfm-pop-body p { margin: 0 0 10px; font-size: 14px; line-height: 1.35; }
.is-inline .rfm-pop-x { width: 44px; height: 44px; top: 5px; right: 5px; border: 0; background: transparent; font-size: 23px; color: #f0e8ff; }
.is-inline .rfm-pop-cta { display: inline-flex; align-items: center; justify-content: center; width: auto; min-height: 44px; padding: 9px 14px; background: #e3d6ff; color: #211641; box-shadow: none; }
.is-inline .rfm-pop-countdown {
	justify-content: start;
	flex-wrap: wrap;
	column-gap: 7px;
	row-gap: 2px;
	margin: 0 0 10px;
	font-size: 12px;
	line-height: 1.3;
	color: #cbbce7;
}
.is-inline .rfm-cd-label { white-space: nowrap; }
.is-inline .rfm-cd-values { display: inline-flex; align-items: baseline; gap: 2px; white-space: nowrap; }
.is-inline .rfm-cd-values b { min-width: 0; border: 0; border-radius: 0; padding: 0; background: transparent; font-size: 13px; }
.is-inline .rfm-cd-values i { margin: 0 3px 0 0; font-size: 11px; color: #cbbce7; }
.is-inline .rfm-cd-values i:last-child { margin-right: 0; }
.stage.mobile .is-inline .rfm-pop { grid-template-columns: 74px minmax(0, 1fr); gap: 10px; }
@media (max-width: 560px) {
	.is-inline .rfm-pop { grid-template-columns: 82px minmax(0, 1fr); align-items: start; gap: 11px; padding: 11px; }
	.is-inline .rfm-pop-body { padding: 3px 28px 3px 0; }
	.is-inline .rfm-pop-body h3 { font-size: 15.5px; }
	.is-inline .rfm-pop-body p { font-size: 12.5px; }
	.is-inline .rfm-pop-cta { padding: 7px 9px; font-size: 12.5px; }
	.is-inline .rfm-pop-x { right: 1px; top: 1px; }
}
