.aevo-exit-popup[hidden] {
	display: none;
}

/* Funnel blocks are non-modal and do not alter the site's body or form styles. */
.aevo-funnel-popup[hidden] {
	display: none !important;
}

.aevo-funnel-popup,
.aevo-funnel-popup * {
	box-sizing: border-box;
	letter-spacing: 0;
}

.aevo-funnel-popup {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 999990;
	width: 390px;
	max-width: calc(100% - 48px);
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	overflow-y: auto;
	padding: 28px 24px 22px;
	border: 1px solid #dce4d7;
	border-top: 4px solid #3D701C;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 10px 34px rgba(17, 24, 39, 0.18);
	color: #111827;
	font-family: inherit;
	animation: aevo-funnel-side 240ms ease-out both;
}

.aevo-funnel-popup__close {
	position: absolute;
	top: 8px;
	right: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: #111827;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.aevo-funnel-popup__close:hover {
	background: #f4f7f2;
	color: #3D701C;
}

.aevo-funnel-popup__headline {
	margin: 0 28px 12px 0;
	color: #111827;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.aevo-funnel-popup__text {
	margin: 0 0 18px;
	color: #374151;
	font-size: 16px;
	line-height: 1.55;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.aevo-funnel-popup__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 16px;
	border: 1px solid #3D701C;
	border-radius: 4px;
	background: #3D701C;
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.aevo-funnel-popup__cta:hover {
	border-color: #ffba00;
	background: #ffba00;
	color: #111827;
	text-decoration: none;
}

.aevo-funnel-popup__cta:focus-visible,
.aevo-funnel-popup__close:focus-visible {
	outline: 3px solid #ffba00;
	outline-offset: 3px;
}

.aevo-funnel-popup__note {
	margin: 12px 0 0;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

@keyframes aevo-funnel-side {
	from { opacity: 0; transform: translateX(48px); }
	to { opacity: 1; transform: translateX(0); }
}

@keyframes aevo-funnel-bottom {
	from { opacity: 0; transform: translateY(48px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
	.aevo-funnel-popup {
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom, 0px));
		width: 390px;
		max-width: calc(100% - 24px);
		max-height: 65vh;
		max-height: 65dvh;
		padding: 24px 20px 20px;
		animation-name: aevo-funnel-bottom;
	}

	.aevo-funnel-popup__headline { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
	.aevo-funnel-popup { animation: none; }
}

.aevo-exit-popup,
.aevo-exit-popup * {
	box-sizing: border-box;
}

.aevo-exit-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: inherit;
}

.aevo-exit-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.72);
	backdrop-filter: blur(3px);
}

.aevo-exit-popup__dialog {
	position: relative;
	width: min(100%, 620px);
	max-height: min(90vh, 820px);
	overflow-y: auto;
	padding: 34px;
	border: 1px solid rgba(17, 24, 39, 0.08);
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 24px 70px rgba(17, 24, 39, 0.28);
	color: #111827;
}

.aevo-exit-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #f3f4f6;
	color: #111827;
	cursor: pointer;
	font-size: 28px;
	line-height: 1;
	transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.aevo-exit-popup__close:hover,
.aevo-exit-popup__close:focus {
	background: #3D701C;
	color: #ffffff;
	outline: none;
	transform: scale(1.04);
}

.aevo-exit-popup__eyebrow {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	margin: 0 42px 12px 0;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(255, 186, 0, 0.16);
	color: #3D701C;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.aevo-exit-popup__headline {
	margin: 0 42px 8px 0;
	color: #111827;
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: 0;
}

.aevo-exit-popup__subheadline {
	margin: 0 0 16px;
	color: #3D701C;
	font-size: 20px;
	font-weight: 750;
	line-height: 1.35;
}

.aevo-exit-popup__text {
	margin: 0 0 18px;
	color: #374151;
	font-size: 16px;
	line-height: 1.6;
}

.aevo-exit-benefits {
	display: grid;
	gap: 12px;
	margin: 20px 0 22px;
	padding: 0;
	list-style: none;
}

.aevo-exit-benefits li {
	position: relative;
	min-height: 26px;
	margin: 0;
	padding-left: 34px;
	color: #111827;
	font-size: 15px;
	line-height: 1.5;
}

.aevo-exit-benefits li::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #3D701C;
	box-shadow: 0 4px 10px rgba(61, 112, 28, 0.18);
}

.aevo-exit-benefits li::after {
	content: "";
	position: absolute;
	top: 6px;
	left: 8px;
	width: 6px;
	height: 11px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.aevo-exit-popup__proof {
	margin: 0 0 20px;
	padding: 16px 18px;
	border-left: 4px solid #3D701C;
	border-radius: 12px;
	background: #f4f7f2;
	color: #111827;
}

.aevo-exit-popup__proof-label {
	margin: 0 0 7px;
	color: #3D701C;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.3;
	text-transform: uppercase;
}

.aevo-exit-popup__proof-quote {
	margin: 0 0 9px;
	padding: 0;
	border: 0;
	color: #374151;
	font-size: 14px;
	font-style: normal;
	line-height: 1.55;
}

.aevo-exit-popup__proof-author {
	color: #111827;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.4;
}

.aevo-exit-popup__form {
	margin: 0 0 16px;
	padding: 20px;
	border: 1px solid rgba(61, 112, 28, 0.16);
	border-radius: 14px;
	background: #f9fafb;
}

.aevo-exit-popup__form > *:last-child {
	margin-bottom: 0;
}

.aevo-exit-popup__note {
	margin: 0;
	color: #6b7280;
	font-size: 14px;
	line-height: 1.55;
}

body.aevo-exit-popup-is-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.aevo-exit-popup {
		align-items: flex-end;
		padding: 14px;
	}

	.aevo-exit-popup__dialog {
		width: 100%;
		max-height: 88vh;
		padding: 28px 20px 22px;
		border-radius: 18px 18px 12px 12px;
	}

	.aevo-exit-popup__headline {
		margin-right: 44px;
		font-size: 30px;
	}

	.aevo-exit-popup__subheadline {
		font-size: 18px;
	}

	.aevo-exit-benefits {
		gap: 11px;
		margin: 18px 0 20px;
	}

	.aevo-exit-benefits li {
		padding-left: 32px;
		font-size: 15px;
		line-height: 1.45;
	}

	.aevo-exit-popup__proof {
		margin-bottom: 18px;
		padding: 14px 15px;
	}

	.aevo-exit-popup__form {
		padding: 16px;
	}
}
