/* Prompt Radar exit-intent popup — scoped to #pr-ei-popup-root */

#pr-ei-popup-root.pr-ei-root,
#pr-ei-popup-root.pr-ei-root * {
	box-sizing: border-box;
}

#pr-ei-popup-root.pr-ei-root {
	--pr-ei-coral: #ff5e73;
	--pr-ei-coral-dark: #e83f5b;
	--pr-ei-coral-soft: #fff0f3;
	--pr-ei-ink: #17192b;
	--pr-ei-white: #ffffff;
	--pr-ei-radius: 12px;

	position: fixed;
	inset: 0;
	z-index: 2147483000;
	isolation: isolate;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--pr-ei-white);
	display: grid;
	place-items: center;
}

#pr-ei-popup-root.pr-ei-root[hidden] {
	display: none !important;
}

html.pr-ei-popup-open {
	overflow: hidden;
}

#pr-ei-popup-root .pr-ei-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.64);
	backdrop-filter: blur(2px);
}

#pr-ei-popup-root .pr-ei-popup {
	position: relative;
	width: min(720px, calc(100% - 32px));
	margin: 0 auto;
	border-radius: var(--pr-ei-radius);
	background-color: var(--pr-ei-coral-dark);
	box-shadow: 0 28px 72px rgba(2, 8, 23, 0.45);
	overflow: hidden;
}

#pr-ei-popup-root .pr-ei-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	padding: 0;
	margin: 0;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.28);
	color: transparent;
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
	z-index: 20;
}

#pr-ei-popup-root .pr-ei-close::before {
	content: "";
	width: 14px;
	height: 14px;
	background-color: #fff;
	/* Geometric X, optically centered (avoids × glyph offset) */
	clip-path: polygon(
		2px 0,
		7px 5px,
		12px 0,
		14px 2px,
		9px 7px,
		14px 12px,
		12px 14px,
		7px 9px,
		2px 14px,
		0 12px,
		5px 7px,
		0 2px
	);
}

#pr-ei-popup-root .pr-ei-close:hover {
	background: rgba(255, 255, 255, 0.4);
}

#pr-ei-popup-root .pr-ei-cta__inner {
	position: relative;
	/* Keep height when width is reduced — room for hero art */
	min-height: 380px;
	height: 380px;
	overflow: hidden;
	border-radius: inherit;
	display: flex;
	align-items: center;
	/* Light right panel + hero; coral left via ::before — text gets ~62% */
	background-color: #ebebed;
	background-image: url("../assets/exit-intent-hero.jpg");
	background-repeat: no-repeat;
	background-position: right center;
	background-size: 40% auto;
}

#pr-ei-popup-root .pr-ei-cta__inner::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 62%;
	background: var(--pr-ei-coral-dark);
	z-index: 0;
}

#pr-ei-popup-root .pr-ei-cta__content {
	position: relative;
	z-index: 1;
	width: 60%;
	max-width: none;
	box-sizing: border-box;
	padding: 2.25rem 1.5rem 2.25rem 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.75rem;
}

#pr-ei-popup-root .pr-ei-cta__title,
#pr-ei-popup-root h2.pr-ei-cta__title {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: clamp(1.75rem, 3.5vw, 2.35rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--pr-ei-white) !important;
	background: none;
}

#pr-ei-popup-root .pr-ei-cta__description,
#pr-ei-popup-root .pr-ei-cta__note {
	margin: 0;
	color: var(--pr-ei-white);
}

#pr-ei-popup-root .pr-ei-cta__description {
	font-size: 1.05rem;
	opacity: 0.95;
}

#pr-ei-popup-root .pr-ei-cta__note {
	font-size: 0.9rem;
	opacity: 0.85;
}

#pr-ei-popup-root .pr-ei-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	margin-top: 0.35rem;
	padding: 0.8rem 1.5rem;
	border: 0;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#pr-ei-popup-root .pr-ei-btn--brand {
	color: var(--pr-ei-ink);
	background: #fff;
	box-shadow: 0 8px 24px rgba(23, 25, 43, 0.18);
}

#pr-ei-popup-root .pr-ei-btn--brand:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(23, 25, 43, 0.26);
}

@media (max-width: 640px) {
	#pr-ei-popup-root .pr-ei-popup {
		width: min(420px, calc(100% - 24px));
	}

	#pr-ei-popup-root .pr-ei-cta__inner {
		min-height: 0;
		height: auto;
		background-image: none;
	}

	#pr-ei-popup-root .pr-ei-cta__inner::before {
		width: 100%;
	}

	#pr-ei-popup-root .pr-ei-cta__content {
		width: 100%;
		max-width: none;
		padding: 1.75rem 1.25rem 1.5rem;
	}
}
