.lpcm-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.65);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lpcm-overlay.active {
	opacity: 1;
	visibility: visible;
}

.lpcm-box {
	position: relative;
	width: min(1000px, 92vw);
	max-height: 90vh;
	overflow: auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	transform: scale(0.9);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.lpcm-overlay.active .lpcm-box {
	transform: scale(1);
	opacity: 1;
}

.lpcm-close {
	position: absolute;
	right: 16px;
	top: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: #333;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.lpcm-close:hover,
.lpcm-close:focus {
	background: #f5f5f5;
	outline: none;
}

.lpcm-content {
	padding: 0;
	min-height: 60px;
}

/* Elementor popup templates are built to be hidden until their own JS runs. */
.lpcm-content--popup .elementor,
.lpcm-content--popup [data-elementor-type="popup"],
.lpcm-content--popup .elementor-location-popup,
.lpcm-content .elementor.elementor-location-popup {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	bottom: auto !important;
	width: 100% !important;
	height: auto !important;
	max-width: none !important;
	transform: none !important;
	pointer-events: auto !important;
}

.lpcm-content--popup .dialog-widget,
.lpcm-content--popup .dialog-type-lightbox,
.lpcm-content--popup .dialog-message,
.lpcm-content--popup .elementor-popup-modal {
	position: relative !important;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 100% !important;
	height: auto !important;
	max-height: none !important;
	transform: none !important;
}

.lpcm-content--popup .dialog-widget-overlay,
.lpcm-content--popup .elementor-popup-modal-overlay {
	display: none !important;
}

body.lpcm-modal-open {
	overflow: hidden;
}
