/**
 * KFFM Exit Intent Popup Styles
 */

/* Prevent body scroll when popup is open */
body.kffm-popup-open {
	overflow: hidden;
}

/* Overlay */
.kffm-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

/* Popup container */
.kffm-popup {
	position: relative;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 8px;
	box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
	animation: kffmPopupFadeIn 0.3s ease-out;
}

@keyframes kffmPopupFadeIn {
	from {
		opacity: 0;
		transform: translateY(-20px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Popup content */
.kffm-popup-content {
	padding: 30px;
}

.kffm-popup-content img {
	max-width: 100%;
	height: auto;
}

/* Close button */
.kffm-popup-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 30px;
	height: 30px;
	background-color: #333;
	color: #fff;
	border: none;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	transition: background-color 0.2s ease;
}

.kffm-popup-close:hover {
	background-color: #555;
}

/* CTA Button wrapper */
.kffm-popup-button-wrapper {
	text-align: center;
	margin-top: 20px;
}

/* CTA Button */
.kffm-popup-button {
	display: inline-block;
	padding: 12px 30px;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 5px;
	border: none;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.kffm-popup-button:hover {
	opacity: 0.9;
	transform: scale(1.02);
	text-decoration: none;
}

.kffm-popup-button:active {
	transform: scale(0.98);
}

/* Mobile responsiveness */
@media screen and (max-width: 600px) {
	.kffm-popup-overlay {
		padding: 10px;
	}

	.kffm-popup {
		max-width: 100% !important;
	}

	.kffm-popup-content {
		padding: 20px;
	}

	.kffm-popup-close {
		width: 36px;
		height: 36px;
		font-size: 24px;
	}

	.kffm-popup-button {
		padding: 10px 20px;
		font-size: 14px;
		width: 100%;
		box-sizing: border-box;
	}
}
