/* Enfold Popup Manager – Frontend Styles */
.epm-popup-wrapper {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	pointer-events: none;
}
.epm-popup-wrapper.epm-is-open {
	display: block;
	pointer-events: auto;
}
.epm-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.6);
	z-index: 1;
	cursor: pointer;
}
.epm-popup {
	position: absolute;
	background: #fff;
	color: #333;
	padding: 32px 28px 28px 28px;
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	z-index: 2;
	width: calc(100% - 40px);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	box-sizing: border-box;
}
.epm-close {
	position: absolute;
	top: 8px;
	right: 10px;
	background: transparent;
	border: 0;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #555;
	padding: 4px 8px;
}
.epm-close:hover,
.epm-close:focus {
	color: #000;
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}
.epm-title {
	margin: 0 0 12px 0;
	font-size: 1.4em;
	line-height: 1.3;
}
.epm-content {
	font-size: 1em;
	line-height: 1.5;
}
.epm-content img {
	max-width: 100%;
	height: auto;
}

/* Positions */
.epm-pos-center .epm-popup       { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.epm-pos-top-center .epm-popup   { top: 40px; left: 50%; transform: translateX(-50%); }
.epm-pos-bottom-center .epm-popup{ bottom: 40px; left: 50%; transform: translateX(-50%); }
.epm-pos-top-left .epm-popup     { top: 40px; left: 40px; }
.epm-pos-top-right .epm-popup    { top: 40px; right: 40px; }
.epm-pos-bottom-left .epm-popup  { bottom: 40px; left: 40px; }
.epm-pos-bottom-right .epm-popup { bottom: 40px; right: 40px; }

@media (max-width: 640px) {
	.epm-pos-top-left .epm-popup,
	.epm-pos-top-right .epm-popup,
	.epm-pos-bottom-left .epm-popup,
	.epm-pos-bottom-right .epm-popup,
	.epm-pos-top-center .epm-popup,
	.epm-pos-bottom-center .epm-popup,
	.epm-pos-center .epm-popup {
		top: 50%;
		left: 50%;
		right: auto;
		bottom: auto;
		transform: translate(-50%, -50%);
		width: calc(100% - 24px);
	}
}
