/* Exit Intent Popup - overlay & modal */
.eip-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	visibility: hidden;
	opacity: 0;
	transition: visibility 0.25s ease, opacity 0.25s ease;
	pointer-events: none;
}

.eip-overlay.eip-visible {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

body.eip-body-open {
	overflow: hidden;
}

.eip-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	cursor: pointer;
}

.eip-modal {
	position: relative;
	width: 100%;
	max-width: 95vw;
	max-height: 95vh;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
	pointer-events: none;
}

.eip-modal > * {
	pointer-events: auto;
}

.eip-inner {
	position: relative;
	width: 100%;
	max-height: 95vh;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	border-radius: 8px;
	overflow: hidden;
}

.eip-close {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 10;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: none;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
	border-radius: 0 8px 0 0;
}

.eip-close:hover,
.eip-close:focus {
	background: rgba(0, 0, 0, 0.8);
	outline: none;
}

/* Responsive container for custom content (iframe / promo) */
.eip-content {
	width: 100%;
	height: 0;
	padding-bottom: 66.67%; /* 3:2 default, overridden by JS or inline */
	position: relative;
	overflow: hidden;
}


.eip-content iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

.eip-inner .eip-content {
	min-height: 200px;
}

.eip-content.eip-responsive {
	padding-bottom: 0;
}

/* Small screens */
@media (max-width: 768px) {
	.eip-overlay {
		padding: 10px;
	}

	.eip-inner {
		max-height: 90vh;
	}

	.eip-inner .eip-content {
		max-height: min(90vh, 400px);
		height: min(90vh, 400px);
	}

	.eip-close {
		width: 40px;
		height: 40px;
		font-size: 24px;
	}
}

@media (max-width: 480px) {
	.eip-inner .eip-content {
		height: min(85vh, 300px);
		max-height: min(85vh, 300px);
		min-height: 160px;
	}
}
