/* Optinovate Popups: modal window for popups such as "Download Brochure". */

.opt-popup {
	width: min(var(--opt-popup-width, 700px), 94vw);
	max-width: none;
	max-height: 90vh;
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: #fff;
	color: inherit;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

.opt-popup[open] {
	animation: opt-popup-in 0.4s ease-out;
}

.opt-popup::backdrop {
	background: rgba(10, 20, 40, 0.6);
}

.opt-popup__body {
	max-height: 90vh;
	overflow-y: auto;
	padding: 48px 40px 36px;
	box-sizing: border-box;
}

.opt-popup__note {
	margin: 16px 0 0;
	font-size: 13px;
	opacity: 0.75;
}

/* The Elementor kit styles every <button> as a big gradient pill; the close button opts out. */
.opt-popup .opt-popup__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 1;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #1d2b3a;
	background-image: none;
	color: #fff;
	font-size: 24px;
	font-weight: 400;
	line-height: 36px;
	text-align: center;
	cursor: pointer;
	box-shadow: none;
}

.opt-popup .opt-popup__close:hover,
.opt-popup .opt-popup__close:focus-visible {
	background: #2f80ed;
}

body:has(.opt-popup[open]) {
	overflow: hidden;
}

@keyframes opt-popup-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 600px) {
	.opt-popup__body {
		padding: 52px 18px 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.opt-popup[open] {
		animation: none;
	}
}
