.wppn-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.wppn-modal-overlay.wppn-open {
	opacity: 1;
	pointer-events: auto;
}

.wppn-modal {
	background: #fff;
	border-radius: 12px;
	max-width: var(--wppn-modal-w, 360px);
	width: 90%;
	padding: 24px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
	text-align: center;
	transform: translateY(8px);
	transition: transform 0.2s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wppn-modal-overlay.wppn-open .wppn-modal {
	transform: translateY(0);
}

.wppn-modal-logo {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	object-fit: cover;
	margin: 0 auto 14px;
	display: block;
}

.wppn-modal-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 6px;
	color: #1a1a1a;
}

.wppn-modal-body {
	font-size: 14px;
	color: #555;
	margin: 0 0 20px;
	line-height: 1.4;
}

.wppn-modal-actions {
	display: flex;
	gap: 10px;
}

.wppn-modal-actions button {
	box-sizing: border-box;
	flex: 1;
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	border: 1px solid #d5d5d5;
}

.wppn-modal-later {
	background: #fff;
	color: #555;
}

.wppn-modal-allow {
	background: var(--wppn-accent, #2563eb);
	color: #fff;
	border-color: var(--wppn-accent, #2563eb);
}

.wppn-modal-allow:hover {
	filter: brightness(0.92);
}

.wppn-modal-later:hover {
	background: #f5f5f5;
}

.wppn-bell-btn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #2563eb;
	color: #fff;
	border: none;
	font-size: 22px;
	line-height: 52px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
	z-index: 999998;
	padding: 0;
}

.wppn-bell-btn:hover {
	background: #1d4ed8;
}

.wppn-bell-btn[data-state="denied"] {
	background: #9ca3af;
}

.wppn-bell-btn[data-state="denied"]:hover {
	background: #6b7280;
}

/* Subscribed (permission already granted) gets its own color + a small
   checkmark badge, so it's visually distinct from "default" (not yet
   subscribed) instead of both showing the exact same blue bell. */
.wppn-bell-btn[data-state="granted"] {
	background: #16a34a;
}

.wppn-bell-btn[data-state="granted"]:hover {
	background: #15803d;
}

.wppn-bell-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	color: #16a34a;
	font-size: 10px;
	line-height: 16px;
	text-align: center;
	font-weight: 700;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.wppn-bell-tip {
	/* Every layout-affecting property below is !important. This span is
	   injected directly into the page's own DOM (inside whatever button/
	   header markup the theme wraps it in), so it's exposed to the site's
	   theme and page-builder CSS — many of which set broad, high-
	   specificity typography resets like "span { line-height: 1.8 }" or
	   "*, *::before { box-sizing: content-box }". Before this hardening,
	   an inherited line-height from exactly that kind of host-page rule
	   is what stretched "You're subscribed" across a tall box with huge
	   gaps between words instead of a normal compact one-line tooltip —
	   the same failure mode the line-height fix below already targets,
	   just arriving from the theme instead of from .wppn-bell-btn. */
	display: block !important;
	position: absolute !important;
	bottom: 62px !important;
	right: 0 !important;
	background: #1a1a1a !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	/* Explicit line-height is the fix: without one, this span inherits
	   .wppn-bell-btn's line-height (52/40/64px, set there to vertically
	   center the bell glyph in a round button) — that's what was
	   stretching "You're subscribed" across a tall box with huge gaps
	   between words instead of a normal single-line tooltip. */
	line-height: 1.4 !important;
	white-space: normal !important;
	word-break: normal !important;
	overflow-wrap: break-word !important;
	text-align: left !important;
	/* Wide enough that short messages ("You're subscribed") always stay
	   on one line, but capped relative to the viewport so longer
	   messages (like the "blocked" tip) wrap tidily instead of running
	   off the edge of a narrow phone screen. */
	max-width: min(240px, calc(100vw - 24px)) !important;
	/* Belt-and-braces alongside max-width: without an explicit width,
	   this absolutely-positioned span (only "right" is set, not "left")
	   is supposed to shrink-to-fit its content by default — but a theme
	   rule as blunt as "span { width: 100% }" can still override that on
	   some sites. width: max-content pins it to its actual text width
	   (still capped by max-width above for the long "blocked" message),
	   so it can't be stretched wide/full-width by an outside rule. */
	width: max-content !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 9px 14px !important;
	border-radius: 8px !important;
	opacity: 0;
	pointer-events: none;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.wppn-bell-btn.wppn-tip-open .wppn-bell-tip {
	opacity: 1;
	transform: translateY(0);
}

/* --- Bell size variants (medium = unchanged default, 52px) --- */
.wppn-bell-btn.wppn-bell-size-small {
	width: 40px;
	height: 40px;
	font-size: 17px;
	line-height: 40px;
}

.wppn-bell-btn.wppn-bell-size-large {
	width: 64px;
	height: 64px;
	font-size: 28px;
	line-height: 64px;
}

/* --- Bell position variants (bottom-right = unchanged default) --- */
.wppn-bell-btn.wppn-bell-pos-top-left {
	top: 20px; bottom: auto; left: 20px; right: auto;
}
.wppn-bell-btn.wppn-bell-pos-top-center {
	top: 20px; bottom: auto; left: 50%; right: auto; transform: translateX(-50%);
}
.wppn-bell-btn.wppn-bell-pos-top-right {
	top: 20px; bottom: auto; left: auto; right: 20px;
}
.wppn-bell-btn.wppn-bell-pos-middle-left {
	top: 50%; bottom: auto; left: 20px; right: auto; transform: translateY(-50%);
}
.wppn-bell-btn.wppn-bell-pos-middle-right {
	top: 50%; bottom: auto; left: auto; right: 20px; transform: translateY(-50%);
}
.wppn-bell-btn.wppn-bell-pos-bottom-left {
	bottom: 20px; top: auto; left: 20px; right: auto;
}
.wppn-bell-btn.wppn-bell-pos-bottom-center {
	bottom: 20px; top: auto; left: 50%; right: auto; transform: translateX(-50%);
}
/* bottom-right needs no override — it's the base .wppn-bell-btn rule */

/* Tooltip flips to below the bell when the bell sits in the top half. */
.wppn-bell-pos-top-left .wppn-bell-tip,
.wppn-bell-pos-top-center .wppn-bell-tip,
.wppn-bell-pos-top-right .wppn-bell-tip {
	bottom: auto;
	top: 62px;
}

/* The tooltip was always anchored with right:0 (expanding leftward),
   which is correct for a bell on the right side of the screen but runs
   the text off the left edge of the viewport — unreadable — when the
   bell itself sits on the left. Flip the anchor to expand rightward
   instead for every left-side position. */
.wppn-bell-pos-top-left .wppn-bell-tip,
.wppn-bell-pos-middle-left .wppn-bell-tip,
.wppn-bell-pos-bottom-left .wppn-bell-tip {
	right: auto;
	left: 0;
}

/* Safety net for narrow mobile screens: even correctly-anchored tips can
   hit a viewport edge on a small phone. Let long messages wrap instead
   of running off-screen unreadable. */
.wppn-bell-tip {
	max-width: min(70vw, 260px);
	white-space: normal;
}

/* --- Toast (used for "connecting…" / permission-outcome feedback) --- */
.wppn-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translateX(-50%) translateY(12px);
	max-width: min(90vw, 420px);
	background: #1a1a1a;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	padding: 12px 18px;
	border-radius: 8px;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	z-index: 1000000;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wppn-toast.wppn-open {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

/* --- Modal size variants (medium = unchanged default, 360px) --- */
.wppn-modal-size-small .wppn-modal {
	max-width: 280px;
	padding: 18px;
}
.wppn-modal-size-large .wppn-modal {
	max-width: 440px;
	padding: 30px;
}

/* --- Modal position variants (center = unchanged default) ---
   Corner/edge positions keep the same dimmed backdrop, just move where
   the card sits within it — a small, safe change from the existing
   centered design, not a different interaction model. */
.wppn-pos-top-left { align-items: flex-start; justify-content: flex-start; }
.wppn-pos-top-right { align-items: flex-start; justify-content: flex-end; }
.wppn-pos-bottom-left { align-items: flex-end; justify-content: flex-start; }
.wppn-pos-bottom-center { align-items: flex-end; justify-content: center; }
.wppn-pos-bottom-right { align-items: flex-end; justify-content: flex-end; }
.wppn-pos-middle-left { align-items: center; justify-content: flex-start; }
.wppn-pos-middle-right { align-items: center; justify-content: flex-end; }

.wppn-pos-top-left .wppn-modal,
.wppn-pos-top-right .wppn-modal,
.wppn-pos-bottom-left .wppn-modal,
.wppn-pos-bottom-center .wppn-modal,
.wppn-pos-bottom-right .wppn-modal,
.wppn-pos-middle-left .wppn-modal,
.wppn-pos-middle-right .wppn-modal {
	margin: 24px;
}

/* "Top center": the popup keeps its own design and sits in the middle of the top edge.
   Only the Top bar and Bottom bar designs (10 and 2) are full-width bars. */
.wppn-pos-top-center { align-items: flex-start; justify-content: center; }
.wppn-pos-top-center .wppn-modal { margin: 24px; }

/* --- Thank-you prompt: separate from the soft-ask modal, always
   centered, always 2/3 of the viewport width (capped so it doesn't get
   huge on large monitors), closed with an X rather than a decision. --- */
.wppn-thankyou-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.wppn-thankyou-overlay.wppn-open {
	opacity: 1;
	pointer-events: auto;
}

.wppn-thankyou-card {
	position: relative;
	background: #fff;
	border-radius: 12px;
	width: 44vw;
	max-width: 380px;
	padding: 24px 22px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
	text-align: center;
	transform: translateY(8px);
	transition: transform 0.2s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.wppn-thankyou-overlay.wppn-open .wppn-thankyou-card {
	transform: translateY(0);
}

.wppn-thankyou-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	color: #888;
	cursor: pointer;
	padding: 6px;
}

.wppn-thankyou-close:hover {
	color: #333;
}

.wppn-thankyou-logo {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	object-fit: cover;
	margin: 0 auto 14px;
	display: block;
}

.wppn-thankyou-title {
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 8px;
	color: #1a1a1a;
}

.wppn-thankyou-body {
	font-size: 14px;
	color: #555;
	margin: 0;
	line-height: 1.5;
}

@media (max-width: 600px) {
	.wppn-thankyou-card {
		width: 82vw;
	}

	/* Corner/edge-positioned popups (including bell-anchored opens, which
	   always use one of these classes) keep a smaller margin on narrow
	   screens so the card doesn't crowd into the edge or overlap the bell
	   itself, and the card is allowed to use more of the available width
	   instead of staying pinned to its desktop max-width. */
	.wppn-pos-top-left .wppn-modal,
	.wppn-pos-top-center .wppn-modal,
	.wppn-pos-top-right .wppn-modal,
	.wppn-pos-bottom-left .wppn-modal,
	.wppn-pos-bottom-center .wppn-modal,
	.wppn-pos-bottom-right .wppn-modal,
	.wppn-pos-middle-left .wppn-modal,
	.wppn-pos-middle-right .wppn-modal {
		margin: 12px;
		width: calc(100% - 24px);
	}
}

/* The bell picture (SVG). It takes the button's text colour and is sized from the button's font size. */
.wppn-bell-btn .wppn-bell-svg {
	width: 1em;
	height: 1em;
	display: inline-block;
	vertical-align: middle;
	margin-top: -3px;
	pointer-events: none;
}

/* ==========================================================================
   Popup designs (Dashboard > Popup design). Eight looks, all built to work on
   a phone: they wrap instead of overflowing, buttons stay tappable, and the
   layouts that sit at the screen edge respect the notch / home bar.
   Design 1 is the original card and needs no extra rules.
   Rules are written against ".wppn-design-N .wppn-modal" so the same CSS also
   draws the previews on the Dashboard.
   ========================================================================== */
.wppn-modal-text { min-width: 0; }
.wppn-modal-actions button { min-height: 40px; }

/* 2 - Bottom bar: slim full-width strip, page stays usable behind it */
.wppn-modal-overlay.wppn-design-2 { background: transparent; align-items: flex-end; justify-content: center; }
.wppn-modal-overlay.wppn-design-2.wppn-open { pointer-events: none; }
.wppn-design-2 .wppn-modal { pointer-events: auto; max-width: 100%; width: 100%; margin: 0; border-radius: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; text-align: left; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.16); transform: translateY(100%); }
.wppn-design-2 .wppn-modal-logo { margin: 0; width: 40px; height: 40px; flex: 0 0 40px; }
.wppn-design-2 .wppn-modal-text { flex: 1 1 220px; }
.wppn-design-2 .wppn-modal-title { margin: 0 0 2px; }
.wppn-design-2 .wppn-modal-body { margin: 0; }
.wppn-design-2 .wppn-modal-actions { flex: 1 1 220px; max-width: 300px; margin-left: auto; }

/* 3 - Gradient */
.wppn-design-3 .wppn-modal { background: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #ec4899); border-radius: 20px; box-shadow: 0 18px 50px rgba(99, 102, 241, 0.45); }
.wppn-design-3 .wppn-modal-logo { background: #fff; padding: 6px; border-radius: 16px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }
.wppn-design-3 .wppn-modal-title { color: #fff; }
.wppn-design-3 .wppn-modal-body { color: rgba(255, 255, 255, 0.92); }
.wppn-design-3 .wppn-modal-later { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.wppn-design-3 .wppn-modal-later:hover { background: rgba(255, 255, 255, 0.15); }
.wppn-design-3 .wppn-modal-allow { background: #fff; color: #4f46e5; border-color: #fff; font-weight: 600; }

/* 4 - Dark */
.wppn-design-4 .wppn-modal { background: #111827; border: 1px solid #1f2937; border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5); }
.wppn-design-4 .wppn-modal-title { color: #f9fafb; }
.wppn-design-4 .wppn-modal-body { color: #9ca3af; }
.wppn-design-4 .wppn-modal-later { background: transparent; color: #d1d5db; border-color: #374151; }
.wppn-design-4 .wppn-modal-later:hover { background: #1f2937; }

/* 5 - Soft and round */
.wppn-design-5 .wppn-modal { background: #f8fafc; border-radius: 28px; padding: 30px 26px 24px; box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22); }
.wppn-design-5 .wppn-modal-logo { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18); background: #fff; }
.wppn-design-5 .wppn-modal-title { font-size: 18px; }
.wppn-design-5 .wppn-modal-actions button { border-radius: 999px; padding: 11px 18px; }
.wppn-design-5 .wppn-modal-later { background: transparent; border-color: transparent; color: #64748b; }

/* 6 - Side accent card */
.wppn-design-6 .wppn-modal { border-radius: 10px; border-left: 6px solid var(--wppn-accent, #2563eb); text-align: left; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 14px; padding: 18px 18px 16px; }
.wppn-design-6 .wppn-modal-logo { width: 44px; height: 44px; margin: 0; flex: 0 0 44px; }
.wppn-design-6 .wppn-modal-text { flex: 1 1 160px; }
.wppn-design-6 .wppn-modal-title { margin: 0 0 4px; }
.wppn-design-6 .wppn-modal-body { margin: 0; }
.wppn-design-6 .wppn-modal-actions { flex: 1 1 100%; justify-content: flex-end; }
.wppn-design-6 .wppn-modal-actions button { flex: 0 1 auto; padding: 8px 18px; }

/* 7 - Hero header */
.wppn-design-7 .wppn-modal { padding: 0; overflow: hidden; border-radius: 18px; }
.wppn-design-7 .wppn-modal::before { content: ""; display: block; height: 84px; background: linear-gradient(135deg, var(--wppn-accent, #2563eb), #0ea5e9); }
.wppn-design-7 .wppn-modal-logo { position: relative; width: 76px; height: 76px; margin: -38px auto 12px; border-radius: 50%; border: 4px solid #fff; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
.wppn-design-7 .wppn-modal-text { padding: 0 24px; }
.wppn-design-7 .wppn-modal-body { margin-bottom: 18px; }
.wppn-design-7 .wppn-modal-actions { flex-direction: column-reverse; padding: 0 24px 24px; }
.wppn-design-7 .wppn-modal-actions button { flex: none; width: 100%; padding: 12px 16px; }

/* 8 - Bottom sheet (made for phones) */
.wppn-modal-overlay.wppn-design-8 { align-items: flex-end; justify-content: center; }
.wppn-design-8 .wppn-modal { width: 100%; max-width: 560px; margin: 0; border-radius: 22px 22px 0 0; padding: 12px 22px calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateY(100%); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25); }
.wppn-design-8 .wppn-modal::before { content: ""; display: block; width: 42px; height: 4px; border-radius: 2px; background: #d1d5db; margin: 0 auto 16px; }
.wppn-design-8 .wppn-modal-logo { width: 60px; height: 60px; }
.wppn-design-8 .wppn-modal-actions { flex-direction: column-reverse; }
.wppn-design-8 .wppn-modal-actions button { flex: none; width: 100%; padding: 14px 16px; font-size: 15px; }
.wppn-design-8 .wppn-modal-later { border-color: transparent; color: #6b7280; }

/* Phones: bars and sheets always use the full width; corner placement never overflows. */
@media (max-width: 600px) {
	.wppn-design-6 .wppn-modal-actions button { flex: 1; }
	.wppn-design-2 .wppn-modal-actions { max-width: none; flex-basis: 100%; }
}

/* ==========================================================================
   Bell icon + "no logo" support (all designs)
   .wppn-modal-bell is a small bell picture. It stays hidden while a logo is
   showing. When the site has no logo (or the logo fails to load) the script adds
   .wppn-no-logo to the card and the bell takes the logo's place, so every design
   still has a tidy icon. Designs 9 and 10 never show a logo or icon at all, and
   designs 11, 12 and 14 always show the bell instead of the logo.
   ========================================================================== */
.wppn-modal-bell { display: none; align-items: center; justify-content: center; color: #fff; background: var(--wppn-accent, #2563eb); flex-shrink: 0; }
.wppn-modal-bell .wppn-bell-svg { width: 52%; height: 52%; display: block; }
.wppn-modal.wppn-no-logo .wppn-modal-bell { display: flex; width: 56px; height: 56px; border-radius: 12px; margin: 0 auto 14px; }

/* Fallback bell sized and shaped to match each design's logo. */
.wppn-design-2 .wppn-modal.wppn-no-logo .wppn-modal-bell { width: 40px; height: 40px; margin: 0; flex: 0 0 40px; }
.wppn-design-3 .wppn-modal.wppn-no-logo .wppn-modal-bell { background: #fff; color: #6366f1; border-radius: 16px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18); }
.wppn-design-5 .wppn-modal.wppn-no-logo .wppn-modal-bell { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18); }
.wppn-design-6 .wppn-modal.wppn-no-logo .wppn-modal-bell { width: 44px; height: 44px; margin: 0; flex: 0 0 44px; }
.wppn-design-7 .wppn-modal.wppn-no-logo .wppn-modal-bell { position: relative; width: 76px; height: 76px; margin: -38px auto 12px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
.wppn-design-8 .wppn-modal.wppn-no-logo .wppn-modal-bell { width: 60px; height: 60px; }

/* 9 - Minimal text: no logo, no icon, calm and quiet */
.wppn-design-9 .wppn-modal-logo,
.wppn-design-9 .wppn-modal-bell,
.wppn-design-10 .wppn-modal-logo,
.wppn-design-10 .wppn-modal-bell { display: none !important; }
.wppn-design-9 .wppn-modal { border-radius: 8px; border: 1px solid #e5e7eb; padding: 30px 28px 22px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12); }
.wppn-design-9 .wppn-modal-title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.wppn-design-9 .wppn-modal-body { font-size: 14px; line-height: 1.55; margin-bottom: 22px; }
.wppn-design-9 .wppn-modal-actions { flex-direction: row-reverse; align-items: center; }
.wppn-design-9 .wppn-modal-actions button { border-radius: 6px; }
.wppn-design-9 .wppn-modal-later { background: transparent; border-color: transparent; color: #6b7280; text-decoration: underline; text-underline-offset: 3px; }
.wppn-design-9 .wppn-modal-later:hover { background: transparent; color: #111827; }

/* 10 - Top bar: slim dark strip across the top, no logo, page stays usable */
.wppn-modal-overlay.wppn-design-10 { background: transparent; align-items: flex-start; justify-content: center; }
.wppn-modal-overlay.wppn-design-10.wppn-open { pointer-events: none; }
.wppn-design-10 .wppn-modal { pointer-events: auto; max-width: 100%; width: 100%; margin: 0; border-radius: 0; background: #111827; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; text-align: left; padding: calc(12px + env(safe-area-inset-top, 0px)) 20px 12px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3); transform: translateY(-100%); }
.wppn-design-10 .wppn-modal-text { flex: 1 1 260px; }
.wppn-design-10 .wppn-modal-title { color: #fff; margin: 0 0 2px; font-size: 15px; }
.wppn-design-10 .wppn-modal-body { color: #cbd5e1; margin: 0; font-size: 13px; }
.wppn-design-10 .wppn-modal-actions { flex: 0 1 auto; }
.wppn-design-10 .wppn-modal-actions button { flex: none; padding: 8px 18px; min-height: 36px; }
.wppn-design-10 .wppn-modal-later { background: transparent; color: #e2e8f0; border-color: #475569; }
.wppn-design-10 .wppn-modal-later:hover { background: #1f2937; }

/* 11 - Browser style: looks like the prompt browsers show, top-left, bell icon */
.wppn-modal-overlay.wppn-design-11 { background: transparent; align-items: flex-start; justify-content: flex-start; }
.wppn-modal-overlay.wppn-design-11.wppn-open { pointer-events: none; }
.wppn-design-11 .wppn-modal { pointer-events: auto; width: min(360px, calc(100% - 24px)); max-width: none; margin: 12px; border-radius: 8px; border: 1px solid #dadce0; padding: 16px 16px 12px; text-align: left; display: grid; grid-template-columns: 28px minmax(0, 1fr); grid-template-areas: "bell text" ". actions"; gap: 10px 12px; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28); transform: translateY(-10px); }
.wppn-design-11 .wppn-modal-logo { display: none; }
.wppn-design-11 .wppn-modal .wppn-modal-bell { display: flex; grid-area: bell; width: 28px; height: 28px; margin: 0; background: transparent; color: #5f6368; align-self: start; }
.wppn-design-11 .wppn-modal-bell .wppn-bell-svg { width: 24px; height: 24px; }
.wppn-design-11 .wppn-modal-text { grid-area: text; }
.wppn-design-11 .wppn-modal-title { font-size: 15px; margin: 0 0 4px; }
.wppn-design-11 .wppn-modal-body { font-size: 13px; margin: 0; color: #5f6368; }
.wppn-design-11 .wppn-modal-actions { grid-area: actions; justify-content: flex-end; }
.wppn-design-11 .wppn-modal-actions button { flex: none; border-radius: 18px; padding: 7px 18px; min-height: 36px; }
.wppn-design-11 .wppn-modal-later { background: transparent; border-color: transparent; color: var(--wppn-accent, #2563eb); }
.wppn-design-11 .wppn-modal-later:hover { background: rgba(0, 0, 0, 0.05); }

/* 12 - Floating card: small non-blocking card in the bottom corner, bell icon */
.wppn-modal-overlay.wppn-design-12 { background: transparent; align-items: flex-end; justify-content: flex-end; }
.wppn-modal-overlay.wppn-design-12.wppn-open { pointer-events: none; }
.wppn-design-12 .wppn-modal { pointer-events: auto; width: min(340px, calc(100% - 24px)); max-width: none; margin: 20px 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 16px; padding: 16px; text-align: left; display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "bell text" "actions actions"; gap: 12px 14px; box-shadow: 0 12px 36px rgba(15, 23, 42, 0.28); transform: translateY(20px); }
.wppn-design-12 .wppn-modal-logo { display: none; }
.wppn-design-12 .wppn-modal .wppn-modal-bell { display: flex; grid-area: bell; width: 44px; height: 44px; margin: 0; border-radius: 50%; }
.wppn-design-12 .wppn-modal-text { grid-area: text; align-self: center; }
.wppn-design-12 .wppn-modal-title { margin: 0 0 3px; }
.wppn-design-12 .wppn-modal-body { margin: 0; font-size: 13px; }
.wppn-design-12 .wppn-modal-actions { grid-area: actions; }
.wppn-design-12 .wppn-modal-actions button { border-radius: 10px; }
.wppn-design-12 .wppn-modal-later { background: #f3f4f6; border-color: transparent; }

/* 13 - Glass: frosted dark glass. Works with or without a logo. */
.wppn-modal-overlay.wppn-design-13 { background: rgba(15, 23, 42, 0.35); }
.wppn-design-13 .wppn-modal { background: rgba(17, 24, 39, 0.88); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
	.wppn-design-13 .wppn-modal { background: rgba(17, 24, 39, 0.55); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
}
.wppn-design-13 .wppn-modal-logo { background: rgba(255, 255, 255, 0.92); padding: 6px; border-radius: 16px; }
.wppn-design-13 .wppn-modal-title { color: #fff; font-size: 17px; }
.wppn-design-13 .wppn-modal-body { color: rgba(255, 255, 255, 0.85); }
.wppn-design-13 .wppn-modal-actions button { border-radius: 12px; }
.wppn-design-13 .wppn-modal-later { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.wppn-design-13 .wppn-modal-later:hover { background: rgba(255, 255, 255, 0.2); }

/* 14 - Bell icon: big bell in a colour circle, stacked buttons */
.wppn-design-14 .wppn-modal { border-radius: 24px; padding: 30px 26px 24px; }
.wppn-design-14 .wppn-modal-logo { display: none; }
.wppn-design-14 .wppn-modal .wppn-modal-bell { display: flex; width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.14); box-shadow: 0 0 0 8px color-mix(in srgb, var(--wppn-accent, #2563eb) 16%, transparent); }
.wppn-design-14 .wppn-modal-bell .wppn-bell-svg { width: 38px; height: 38px; transform-origin: 50% 8%; }
.wppn-design-14 .wppn-modal-title { font-size: 18px; }
.wppn-design-14 .wppn-modal-actions { flex-direction: column-reverse; }
.wppn-design-14 .wppn-modal-actions button { flex: none; width: 100%; padding: 12px 16px; border-radius: 999px; }
.wppn-design-14 .wppn-modal-later { border-color: transparent; color: #6b7280; }
@keyframes wppn-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(0); } }
@media (prefers-reduced-motion: no-preference) {
	.wppn-modal-overlay.wppn-open.wppn-design-14 .wppn-modal-bell .wppn-bell-svg { animation: wppn-ring 1.1s ease 0.35s 2; }
}

/* Phones: the bar, browser-style and floating designs use the full width. */
@media (max-width: 600px) {
	.wppn-design-10 .wppn-modal-actions { flex-basis: 100%; }
	.wppn-design-10 .wppn-modal-actions button { flex: 1; }
	.wppn-design-12 .wppn-modal { margin: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
}

/* ==========================================================================
   Popup position: the Dashboard choice always wins, whichever design is picked.
   (Designs 2, 8, 10, 11 and 12 have a natural edge to sit on, which is used only
   when the position is "Center".) Same specificity as the design rules above and
   later in the file, so these take over.
   ========================================================================== */
.wppn-modal-overlay.wppn-pos-top-left { align-items: flex-start; justify-content: flex-start; }
.wppn-modal-overlay.wppn-pos-top-center { align-items: flex-start; justify-content: center; }
.wppn-modal-overlay.wppn-pos-top-right { align-items: flex-start; justify-content: flex-end; }
.wppn-modal-overlay.wppn-pos-middle-left { align-items: center; justify-content: flex-start; }
.wppn-modal-overlay.wppn-pos-middle-right { align-items: center; justify-content: flex-end; }
.wppn-modal-overlay.wppn-pos-bottom-left { align-items: flex-end; justify-content: flex-start; }
.wppn-modal-overlay.wppn-pos-bottom-center { align-items: flex-end; justify-content: center; }
.wppn-modal-overlay.wppn-pos-bottom-right { align-items: flex-end; justify-content: flex-end; }
/* Bar designs (2 = bar, 10 = bar): always full width. Top positions put the bar at the top
   of the screen, bottom positions at the bottom, and Center / middle keep the design's own edge. */
.wppn-modal-overlay.wppn-design-2[class*="wppn-pos-middle"] { align-items: flex-end; }
.wppn-modal-overlay.wppn-design-10[class*="wppn-pos-middle"] { align-items: flex-start; }
.wppn-modal-overlay.wppn-design-2[class*="wppn-pos-top"]:not(.wppn-open) .wppn-modal,
.wppn-modal-overlay.wppn-design-8[class*="wppn-pos-top"]:not(.wppn-open) .wppn-modal { transform: translateY(-100%); }
.wppn-modal-overlay.wppn-design-10[class*="wppn-pos-bottom"]:not(.wppn-open) .wppn-modal { transform: translateY(100%); }
.wppn-design-2[class*="wppn-pos-top"] .wppn-modal { padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 14px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16); }
.wppn-design-10[class*="wppn-pos-bottom"] .wppn-modal { padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.3); }
/* The bottom sheet placed in a corner or on a side keeps a small margin. */
.wppn-design-8[class*="wppn-pos-"]:not(.wppn-pos-center) .wppn-modal { margin: 12px; }

/* ==========================================================================
   Logo choice (Dashboard > Customize): transparent or hidden
   ========================================================================== */
.wppn-logo-transparent .wppn-modal-logo {
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	object-fit: contain;
}
.wppn-logo-none .wppn-modal-logo { display: none !important; }
/* With the logo hidden, designs that do not use the bell icon show nothing in its place. */
.wppn-logo-none:not(.wppn-design-11):not(.wppn-design-12):not(.wppn-design-14) .wppn-modal-bell { display: none !important; }

/* ==========================================================================
   Customize: colours and sizes (variables are set from the Dashboard values)
   ========================================================================== */
.wppn-cu-bg .wppn-modal.wppn-modal { background: var(--wppn-cu-bg) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.wppn-cu-title .wppn-modal-title { color: var(--wppn-cu-title) !important; }
.wppn-cu-body .wppn-modal-body { color: var(--wppn-cu-body) !important; }
.wppn-cu-tsize .wppn-modal-title { font-size: var(--wppn-cu-tsize) !important; }
.wppn-cu-bsize .wppn-modal-body { font-size: var(--wppn-cu-bsize) !important; line-height: 1.5; }
.wppn-cu-bell .wppn-modal-bell { color: var(--wppn-cu-bell) !important; }
.wppn-cu-bellbg .wppn-modal-bell { background: var(--wppn-cu-bellbg) !important; }
.wppn-cu-bellsize .wppn-modal-bell { width: var(--wppn-cu-bellsize) !important; height: var(--wppn-cu-bellsize) !important; flex: 0 0 var(--wppn-cu-bellsize) !important; }
.wppn-cu-bellsize.wppn-design-11 .wppn-modal,
.wppn-cu-bellsize.wppn-design-12 .wppn-modal { grid-template-columns: var(--wppn-cu-bellsize) minmax(0, 1fr) !important; }
.wppn-cu-bellsize.wppn-design-11 .wppn-modal-bell .wppn-bell-svg { width: 85%; height: 85%; }

/* Dashboard previews: the same card, shown in place instead of fixed to the screen. */
.wppn-preview-grid .wppn-pv .wppn-modal { max-width: 100%; width: 100%; margin: 0; transform: none; pointer-events: none; }

/* ==========================================================================
   Website showcase: the plugin's real popup CSS above, shown in place on the page.
   ========================================================================== */
.pdx-controls { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; margin: 0 0 26px; }
.pdx-ctl { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pdx-ctl > span { font-size: .88rem; color: var(--slate); }
.pdx-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.pdx-seg button { border: 0; background: transparent; color: var(--ink); font: 600 .88rem/1 var(--body); padding: 11px 16px; min-height: 40px; cursor: pointer; }
.pdx-seg button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); }
.pdx-ctl input[type="color"] { width: 44px; height: 40px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; }

.pdx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.pdx-card { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: var(--surface); box-shadow: var(--shadow); }
.pdx-card[hidden] { display: none; }
.pdx-name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin-top: 4px; }
.pdx-note { color: var(--slate); font-size: .9rem; }
.pdx-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 250px; padding: 16px 12px; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, #E9EEF8, #F6F8FC); }
:root[data-theme="dark"] .pdx-stage { background: linear-gradient(135deg, #1A2650, #101A38); }
.pdx-stage .wppn-pv { display: block; width: 100%; max-width: 330px; }
.pdx-stage:has(.wppn-design-13) { background: linear-gradient(135deg, #7C93C9, #CFE0F5 50%, #6FB6E8); }
span.wppn-modal, span.wppn-modal-text { display: block; }
.pdx .wppn-pv .wppn-modal { max-width: 100%; width: 100%; margin: 0; transform: none; pointer-events: none; }
.pdx .wppn-pv .wppn-modal-title { display: block; font-size: 15px; }
.pdx .wppn-pv .wppn-modal-body { display: block; font-size: 13px; }
.pdx .wppn-pv button { cursor: default; }
.pdx .wppn-design-2 .wppn-modal { transform: none !important; }
.pdx .wppn-pv { --wppn-accent: #2563eb; }

/* Bars and the bottom sheet are normal tiles, pinned to the edge they use on a real page. */
.pdx-stage.pdx-stage-top, .pdx-stage.pdx-stage-bottom { padding-left: 0; padding-right: 0; }
.pdx-stage.pdx-stage-top { align-items: flex-start; padding-top: 0; }
.pdx-stage.pdx-stage-bottom { align-items: flex-end; padding-bottom: 0; }
.pdx-stage.pdx-stage-top .wppn-pv, .pdx-stage.pdx-stage-bottom .wppn-pv { max-width: none; }
.pdx-open { align-self: flex-start; margin-top: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink); font: 600 .88rem/1 var(--body); padding: 0 18px; min-height: 40px; border-radius: 999px; cursor: pointer; }
.pdx-open:hover { border-color: var(--btn-bg); }

.pdx-subhead { margin: 56px 0 10px; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.02em; }
.pdx-lede { color: var(--slate); max-width: 62ch; margin: 0 0 22px; }
.pdx-banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.pdx-trans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 820px) { .pdx-trans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pdx-trans { grid-template-columns: 1fr; } }
.pdx-trans .pdx-stage { min-height: 300px; }
.pdx-trans .pdx-stage .wppn-pv { max-width: 260px; }
.pdx-chk { background: repeating-conic-gradient(#E3E7EF 0 25%, #F6F8FC 0 50%) 0 0 / 16px 16px !important; }
:root[data-theme="dark"] .pdx-chk { background: repeating-conic-gradient(#1D2A55 0 25%, #14204A 0 50%) 0 0 / 16px 16px !important; }

/* Subscriber list example */
.subx { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 4vw, 40px); align-items: start; }
.subx-panel { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.subx-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.subx-bar strong { font-family: var(--display); font-size: 1.1rem; }
.subx-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 8px; background: var(--btn-bg); color: var(--btn-fg); font-size: .88rem; font-weight: 600; }
.subx-scroll { overflow-x: auto; }
.subx table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
.subx th, .subx td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.subx th { font-size: .8rem; color: var(--slate); font-weight: 600; }
.subx tr:last-child td { border-bottom: 0; }
.subx .st { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--signal-tint); color: var(--signal); font-size: .8rem; font-weight: 600; }
.subx .del { display: inline-block; padding: 3px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: .82rem; }
.subx-foot { padding: 12px 18px; border-top: 1px solid var(--line); color: var(--slate); font-size: .85rem; }
.subx-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px clamp(24px, 4vw, 48px); }
@media (max-width: 760px) { .subx-list { grid-template-columns: 1fr; } }
.subx-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.subx-list svg { width: 20px; height: 20px; color: var(--signal); margin-top: 2px; }

/* "Under development" tag on the WooCommerce section */
.devtag { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 14px; border-radius: 999px; background: var(--amber-tint, #FFF4D6); color: var(--amber-ink, #7A5A00); font-size: .85rem; font-weight: 700; }
.devnote { border-left: 4px solid var(--amber-ink, #7A5A00); background: var(--amber-tint, #FFF4D6); color: var(--amber-ink, #7A5A00); border-radius: 0 12px 12px 0; padding: 12px 16px; font-size: .95rem; }
.devnote strong { color: inherit; }

/* Preview window: one design on a desktop browser or a phone. */
.pdx-pvm { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(11, 18, 37, .68); }
.pdx-pvm[hidden] { display: none; }
.pdx-pvm-box { width: min(940px, 100%); max-height: calc(100vh - 40px); overflow: auto; box-sizing: border-box; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px 20px; box-shadow: var(--shadow); }
.pdx-pvm-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.pdx-pvm-head strong { font-family: var(--display); font-size: 1.05rem; }
.pdx-pvm-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pdx-pvm-actions .pdx-open { margin-top: 0; }
.pdx-pvm-stage { display: flex; justify-content: center; }
.pdx-pvm-note { margin: 12px 0 0; text-align: center; color: var(--slate); font-size: .88rem; }
.pdx-pvm-browser { width: 100%; border: 1px solid #DCE3F0; border-radius: 12px; overflow: hidden; background: #fff; }
.pdx-pvm-chrome { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #F1F3F7; }
.pdx-pvm-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #CBD2DE; display: block; }
.pdx-pvm-chrome span { flex: 1; margin-left: 10px; height: 20px; line-height: 20px; border-radius: 10px; background: #fff; color: #6B7487; font-size: 11px; padding: 0 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pdx-pvm-view { position: relative; overflow: hidden; background: #fff; height: 450px; }
.pdx-pvm-view.is-glass { background: linear-gradient(135deg, #7C93C9, #CFE0F5 50%, #6FB6E8); }
.pdx-pvm-phone { width: 300px; max-width: 100%; border: 9px solid #1B2540; border-radius: 34px; overflow: hidden; background: #fff; box-sizing: content-box; }
.pdx-pvm-phone .pdx-pvm-view { height: 540px; }
.pdx-pvm-line { position: absolute; left: 5%; height: 8px; border-radius: 4px; background: #E6E8EB; }
.wppn-modal-overlay.pdx-pvm-ov { position: absolute; inset: 0; z-index: 2; }
.pdx-pvm-ov .wppn-modal-title, .pdx-pvm-ov .wppn-modal-body { display: block; }
.pdx-pvm-ov .wppn-modal-actions button { cursor: default; }
/* The phone view copies the small-screen rules, which otherwise only react to the real window width. */
.pdx-pvm-mobile.wppn-design-6 .wppn-modal-actions button { flex: 1; }
.pdx-pvm-mobile.wppn-design-2 .wppn-modal-actions { max-width: none; flex-basis: 100%; }
.pdx-pvm-mobile.wppn-design-10 .wppn-modal-actions { flex-basis: 100%; }
.pdx-pvm-mobile.wppn-design-10 .wppn-modal-actions button { flex: 1; }
.pdx-pvm-mobile.wppn-design-12 .wppn-modal { margin: 12px; }
@media (max-width: 520px) { .pdx-pvm { padding: 10px; } .pdx-pvm-box { padding: 14px; } }
