/* Popup Overlay */
.avenla-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;
}

/* Popup Container */
.avenla-popup-container {
	position: relative;
	background: #fff;
	border-radius: 8px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	animation: avenlaPopupSlideIn 0.3s ease-out;
}

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

/* Close Button */
.avenla-popup-close {
	position: absolute;
	top: 15px;
	right: 15px;
	margin: 0 !important;
	min-height: 32px !important;
	min-width: 32px !important;
	background: transparent;
	border: none;
	font-size: 32px;
	line-height: 1;
	color: #333;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease, transform 0.2s ease;
	z-index: 10;
}

.avenla-popup-close:hover {
	color: #000;
	transform: scale(1.1);
}

.avenla-popup-close:focus {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

/* Popup Content */
.avenla-popup-content {
	padding: 40px 30px 30px;
}

.avenla-popup-content h1,
.avenla-popup-content h2,
.avenla-popup-content h3 {
	margin-top: 0;
	margin-bottom: 15px;
}

.avenla-popup-content p {
	margin-bottom: 15px;
	line-height: 1.6;
}

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

.avenla-popup-content a {
	color: #0073aa;
	text-decoration: none;
}

.avenla-popup-content a:hover {
	text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
	.avenla-popup-container {
		max-width: 95%;
		margin: 10px;
	}

	.avenla-popup-content {
		padding: 35px 20px 20px;
	}

	.avenla-popup-close {
		top: 10px;
		right: 10px;
	}
}
