/* Bevel Kit — popups (class names follow Elementor Pro's popup markup so Pro-built popups keep their styling) */

.bvl-popup-modal.bvl-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	background-color: transparent;
	user-select: auto;
}
.bvl-popup-modal.bvl-popup[hidden] { display: none; }

.bvl-popup-modal .dialog-widget-content {
	position: relative;
	background-color: #fff;
	width: initial;
	overflow: visible;
	max-width: 100%;
	max-height: 100%;
	border-radius: 0;
	box-shadow: none;
	pointer-events: all;
}

.bvl-popup-modal .dialog-message {
	width: 640px;
	max-width: 100vw;
	max-height: 100vh;
	padding: 0;
	overflow: auto;
	display: flex;
}
.bvl-popup-modal .dialog-message > .elementor,
.bvl-popup-modal .dialog-message > #elementor { width: 100%; }

.bvl-popup-modal .dialog-close-button {
	position: absolute;
	top: 20px;
	inset-inline-end: 20px;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.6em;
	height: 1.6em;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #1f2124;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	pointer-events: all;
	opacity: 1;
	transition: color 0.15s, background-color 0.15s;
}
.bvl-popup-modal .dialog-close-button svg { width: 1em; height: 1em; }
.bvl-popup-modal.bvl-popup--close-outside .dialog-close-button { top: -1.6em; inset-inline-end: 0; color: #fff; }
.bvl-popup-modal .dialog-close-button[hidden] { display: none; }

/* Editing: the modal stays open, the overlay does not swallow clicks, no close button. */
.bvl-popup-modal.bvl-popup--editing { position: relative; min-height: 100vh; pointer-events: none; }
.bvl-popup-modal.bvl-popup--editing .dialog-widget-content { pointer-events: all; }
.bvl-popup-modal.bvl-popup--editing .dialog-close-button { pointer-events: none; }
.bvl-popup-modal.bvl-popup--editing .dialog-message { max-height: none; min-height: 120px; }
.bvl-popup-modal.bvl-popup--editing .dialog-message > #elementor { min-height: 120px; }

/* Entrance/exit animations use Elementor's animation classes on .dialog-widget-content (class "animated") */
.bvl-popup-modal .dialog-widget-content.animated { animation-fill-mode: both; }
.bvl-popup-modal .dialog-widget-content.reverse { animation-direction: reverse; }

body.bvl-popup-open--no-scroll { overflow: hidden; }
