/* Exit-intent offer modal (self-contained portal + offer UI) */

#mkl-exit-offer-modal.modal {
	position: fixed !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	z-index: 200000;
	display: none;
	text-align: center;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
}

#mkl-exit-offer-modal.modal.active {
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	box-sizing: border-box;
}

#mkl-exit-offer-modal > .modal-back {
	display: none;
	position: fixed !important;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 0;
	background: rgba(0, 0, 0, 0.55);
	pointer-events: auto;
}

#mkl-exit-offer-modal.active > .modal-back {
	display: block;
}

#mkl-exit-offer-modal > .modal-dialog {
	position: relative;
	z-index: 1;
	display: block;
	text-align: initial;
	margin: 0 auto !important;
	max-width: 95vw;
	width: 480px;
	flex: 0 1 auto;
	max-height: calc(100vh - 48px);
}

#mkl-exit-offer-modal .mkl-exit-offer__content {
	position: relative;
	background: #fff;
	border-radius: 14px;
	padding: 32px 24px 28px;
	box-sizing: border-box;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
}

#mkl-exit-offer-modal .mkl-aeo-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	border: 0;
	background: transparent;
	color: #631080;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
}

#mkl-exit-offer-modal .mkl-aeo-modal__title {
	margin: 0 0 12px;
	font-family: "TTNorms Medium", sans-serif;
	font-size: 22px;
	line-height: 1.3;
	color: #231971;
}

#mkl-exit-offer-modal .mkl-aeo-modal__field {
	margin-bottom: 14px;
}

#mkl-exit-offer-modal .mkl-aeo-modal__field label {
	display: block;
	margin-bottom: 6px;
	font-family: "TTNorms Regular", sans-serif;
	font-size: 16px;
	color: #2a2742;
}

#mkl-exit-offer-modal .mkl-aeo-modal__field input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	border: 1px solid #d5d0e8;
	border-radius: 8px;
	font-family: "TTNorms Regular", sans-serif;
	font-size: 18px;
	color: #2a2742;
}

#mkl-exit-offer-modal .mkl-aeo-modal__submit {
	display: inline-block;
	width: 100%;
	margin-top: 8px;
	padding: 14px 20px;
	border: 0;
	border-radius: 8px;
	background: #231971;
	color: #fff;
	font-family: "TTNorms Medium", sans-serif;
	font-size: 18px;
	cursor: pointer;
}

#mkl-exit-offer-modal .mkl-aeo-modal__submit:disabled {
	opacity: 0.7;
	cursor: wait;
}

#mkl-exit-offer-modal .mkl-aeo-modal__success {
	margin-top: 12px;
	font-family: "TTNorms Regular", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #2a2742;
	white-space: pre-line;
}

.mkl-exit-offer__eyebrow {
	display: inline-block;
	margin: 0 0 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(35, 25, 113, 0.1);
	font-family: "TTNorms Medium", sans-serif;
	font-size: 13px;
	line-height: 1.3;
	color: #231971;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.mkl-exit-offer__lead {
	margin: 0 0 18px;
	font-family: "TTNorms Regular", sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: #2a2742;
}

.mkl-exit-offer__messengers {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin-top: 14px;
}

.mkl-exit-offer__msg {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid #d5d0e8;
	background: #fff;
	font-family: "TTNorms Medium", sans-serif;
	font-size: 14px;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	color: #231971;
	box-sizing: border-box;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.mkl-exit-offer__msg:hover {
	background: rgba(35, 25, 113, 0.06);
	border-color: rgba(35, 25, 113, 0.35);
}

.mkl-exit-offer__msg--tg {
	border-color: rgba(34, 158, 217, 0.45);
}

.mkl-exit-offer__msg--max {
	border-color: rgba(100, 81, 230, 0.4);
}

body.mkl-modal-open {
	overflow: hidden !important;
	overscroll-behavior: none;
}

html.mkl-modal-open {
	overflow: hidden !important;
}

@media (max-width: 520px) {
	.mkl-exit-offer__messengers {
		grid-template-columns: 1fr;
	}
}
