/* ===========================
   Exit-intent popup
   =========================== */

.exit_popup_overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.8);
	z-index: 9998;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility .3s;
}

.exit_popup_overlay.show {
	opacity: 1;
	visibility: visible;
}

.exit_popup {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.9);
	width: 360px;
	max-width: calc(100% - 40px);
	box-sizing: border-box;
	background: #000;
	color: #fff;
	border-radius: 14px;
	border: 1px solid #aaa;
	padding: 40px 26px 30px;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility .3s, transform .3s ease;
	font-family: Circe, sans-serif;
	box-sizing: border-box;
}

.exit_popup.show {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, -50%) scale(1);
}

.exit_popup_close {
	top: 16px;
	right: 16px;
}

.exit_popup_title {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	margin-top: 10px;
	margin-bottom: 14px;
}

.exit_popup_text {
	font-size: 17px;
	line-height: 1.4;
	color: #d3d3d3;
	margin-bottom: 22px;
}

.exit_popup_form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.exit_popup_form_row {
	display: flex;
	align-items: stretch;
	gap: 11px;
	box-sizing: border-box;
}

.exit_popup_form input[type="email"] {
	flex: 1;
	min-width: 0;
	box-sizing: border-box;
	padding: 6px 4px;
	border: none;
	background: #fff;
	color: #111;
	font-size: 15px;
	font-family: Circe, sans-serif;
	font-weight: 700;
	outline: none;
}

.exit_popup_form input[type="email"]::placeholder {
	color: #111;
	font-weight: 700;
	opacity: 1;
}

.exit_popup_form .exit_popup_btn {
	flex-shrink: 0;
	padding: 10px 22px;
	font-size: 14px;
	border: none;
	border-radius: 8px;
	background: #ff1aa8;
	color: #fff;
	font-family: Circe, sans-serif;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s, transform .2s, box-shadow .2s, opacity .2s;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.exit_popup_form .exit_popup_btn:hover {
	background: #ff2fb4;
	box-shadow: 0 6px 18px rgba(255, 26, 168, 0.4);
}

.exit_popup_form.loading .exit_popup_btn {
	opacity: 0.6;
	pointer-events: none;
}

.exit_popup_hint {
	font-size: 13px;
	color: #888;
	margin-top: 2px;
	padding-left: 4px;
}

.exit_popup_error {
	font-size: 13px;
	color: #ff5a8a;
	margin-top: 2px;
	padding-left: 4px;
	min-height: 0;
}

.exit_popup_error:empty {
	display: none;
}

/* Success state */
.exit_popup_success {
	display: none;
	text-align: center;
	padding: 10px 0;
}

.exit_popup.sent .exit_popup_form,
.exit_popup.sent .exit_popup_text {
	display: none;
}

.exit_popup.sent .exit_popup_success {
	display: block;
}

.exit_popup_success_icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: linear-gradient(130deg, #ff008c, #da15c0);
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.exit_popup_success_icon::after {
	content: '';
	width: 22px;
	height: 12px;
	border-left: 3px solid #fff;
	border-bottom: 3px solid #fff;
	transform: rotate(-45deg) translate(2px, -2px);
}

.exit_popup_success_title {
	font-size: 20px;
	font-weight: 700;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 12px;
}

.exit_popup_success_text {
	font-size: 17px;
	line-height: 1.45;
	color: #d3d3d3;
	text-align: left;
	padding-left: 55px;
	background: url('/static/i/calm-down.png') no-repeat 11px 3px;
}
.exit_popup_success_text b {
	font-weight: 700;
}

/* Mobile */
@media screen and (max-width: 480px) {
	.exit_popup {
		width: 320px;
		padding: 36px 22px 24px;
	}

	.exit_popup_title {
		font-size: 22px;
	}

	.exit_popup_text {
		font-size: 14px;
	}

	.exit_popup_form .exit_popup_btn {
		padding: 10px 16px;
		font-size: 13px;
	}
}