/* Elementor Template Popup — modal styles */

.etp-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: flex-start;
	justify-content: center;
	overflow-y: auto;
	padding: 5vh 16px;
	-webkit-overflow-scrolling: touch;
}

.etp-modal.is-open {
	display: flex;
}

.etp-modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba( 12, 14, 20, 0.62 );
	backdrop-filter: blur( 2px );
	cursor: pointer;
}

.etp-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 960px;
	margin: auto;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 24px 60px rgba( 0, 0, 0, 0.35 );
	animation: etp-pop 0.18s ease-out;
}

@keyframes etp-pop {
	from {
		opacity: 0;
		transform: translateY( 12px ) scale( 0.98 );
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.etp-modal__dialog {
		animation: none;
	}
}

/* Close button: no plugin styling. Build your own close button in Elementor and
   add the class "etp-modal__close" to it — that class triggers the close action.
   It also gets cursor:pointer (see the trigger rule below) but is otherwise
   styled entirely by you. */


.etp-modal__content {
	border-radius: 10px;
	overflow: hidden;
	min-height: 80px;
}

/* Loader */
.etp-modal__loader {
	width: 34px;
	height: 34px;
	margin: 40px auto;
	border: 3px solid rgba( 0, 0, 0, 0.12 );
	border-top-color: rgba( 0, 0, 0, 0.55 );
	border-radius: 50%;
	animation: etp-spin 0.7s linear infinite;
}

@keyframes etp-spin {
	to {
		transform: rotate( 360deg );
	}
}

/* Error */
.etp-modal__error {
	margin: 0;
	padding: 28px 24px;
	color: #842029;
	background: #f8d7da;
	font-size: 15px;
	text-align: center;
}

/* Lock background scroll when open */
body.etp-modal-open {
	overflow: hidden;
}

/* Any element used as a popup trigger gets a pointer cursor so a clickable
   container/widget signals that it can be clicked. Targets the helper classes
   and the etp-tpl-<slug> convention. */
.etp-trigger,
.etp-open,
.etp-modal__close,
[class*="etp-tpl-"],
[data-etp-template],
[data-etp-template-id] {
	cursor: pointer;
}

/* The trigger link itself stays unstyled by default so it inherits theme link
   styling; authors can target .etp-trigger or add their own class. */
