/* ==========================================================================
   "New Website Coming Soon" popup
   Scoped under .isvPopup so nothing here can leak into Avada's styles.
   ========================================================================== */

.isvPopup[hidden] {
	display: none;
}

.isvPopup {
	position: fixed;
	inset: 0;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity .3s ease;
}

.isvPopup.is-visible {
	opacity: 1;
}

.isvPopup_overlay {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: rgba(0, 0, 0, .35);
	cursor: pointer;
}

/* ---------- Modal shell ---------- */

.isvPopup_modal {
	position: relative;
	display: flex;
	width: 100%;
	max-width: 1136px;
	max-height: calc(100vh - 40px);
	overflow: hidden;
	background: #20272F;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
	transform: translateY(16px) scale(.98);
	transition: transform .35s cubic-bezier(.2, .7, .3, 1);
}

.isvPopup.is-visible .isvPopup_modal {
	transform: none;
}

/* The dialog receives focus on open for screen readers — no visible ring. */
.isvPopup_modal:focus {
	outline: none;
}

/* Hold the design's 1136x532 proportion so the square hero isn't squashed by
   the (shorter) text column. Gated on viewport height so it can never fight
   the max-height above on a short screen. */
@media only screen and (min-width: 861px) and (min-height: 620px) {
	.isvPopup_modal {
		min-height: 532px;
	}
}

/* ---------- Left content column ---------- */

.isvPopup_content {
	flex: 0 0 53.3%;
	max-width: 53.3%;
	padding: 41px 68px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow-y: auto;
}

.isvPopup_modal--noMedia .isvPopup_content {
	flex: 1 1 100%;
	max-width: 100%;
	text-align: center;
	align-items: center;
}

/* Eyebrow above the title. Inherits line-height and alignment from
   .isvPopup_content so the noMedia variant stays centred while the media
   variant follows the content column. */
.isvPopup_content p.topHead {
	margin: 0 0 50px;
	padding: 0;
	color: #fff;
	font-family: 'Open Sans', Arial, Helvetica, sans-serif;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .9px;
	text-transform: uppercase;
}

.isvPopup_title {
	margin: 0 0 21px;
	padding: 0;
	line-height: 1.15;
	text-transform: none;
	letter-spacing: 0;
}

.isvPopup_titleTop,
.isvPopup_titleMain {
	display: block;
	font-size: 35px;
	line-height: 1.22;
}

.isvPopup_titleTop {
	color: #2D81C9;
	font-weight: 400;
}

.isvPopup_titleMain {
	color: #fff;
	font-weight: 700;
}

.isvPopup_copy {
	margin: 0;
	color: #fff;
	font-size: 16px;
}

/* ---------- Partner badges ---------- */

.isvPopup_badges {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 20px;
	/* The Crestron PNG carries ~10px of transparent padding on its right edge;
	   pull it back so the artwork optically aligns with the text column. */
	margin: 29px -10px 0 0;
}

.isvPopup_modal--noMedia .isvPopup_badges {
	justify-content: center;
}

/* Fallback for browsers without flex `gap`. */
.isvPopup_badge + .isvPopup_badge {
	margin-left: 20px;
}

@supports (gap: 1px) {
	.isvPopup_badge + .isvPopup_badge {
		margin-left: 0;
	}
}

.isvPopup_badge {
	display: block;
	height: auto;
	max-width: 100%;
}

.isvPopup_badge--lutron {
	width: 127px;
}

.isvPopup_badge--crestron {
	width: 112px;
}

/* ---------- Right image column ---------- */

.isvPopup_media {
	flex: 1 1 46.7%;
	position: relative;
	min-height: 100%;
	background: #0f1319;
}

.isvPopup_media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* ---------- Close button ---------- */

.isvPopup_close {
	position: absolute;
	top: 10px;
	right: 8px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	opacity: .95;
	transition: opacity .2s ease, transform .2s ease;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .55));
	-webkit-appearance: none;
	appearance: none;
}

.isvPopup_close:hover,
.isvPopup_close:focus {
	background: transparent;
	color: #fff;
	opacity: 1;
	transform: scale(1.08);
}

.isvPopup_close:focus-visible {
	outline: 2px solid #2D81C9;
	outline-offset: 2px;
}

/* Prevent background scroll while open. */
body.isvPopup-open {
	overflow: hidden;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media only screen and (max-width: 1100px) {
	.isvPopup_content {
		padding: 42px 44px 46px;
	}

	.isvPopup_titleTop,
	.isvPopup_titleMain {
		font-size: 34px;
	}

	.isvPopup_badges {
		margin-top: 38px;
		padding-left: 0;
	}
}

@media only screen and (max-width: 860px) {
	.isvPopup_modal {
		flex-direction: column-reverse;
		max-width: 520px;
	}

	.isvPopup_content,
	.isvPopup_modal--noMedia .isvPopup_content {
		flex: 1 1 auto;
		max-width: 100%;
		padding: 36px 34px 40px;
	}

	.isvPopup_media {
		flex: 0 0 auto;
		min-height: 0;
		height: 190px;
	}
}

@media only screen and (max-width: 480px) {
	.isvPopup {
		padding: 12px;
	}

	.isvPopup_content {
		padding: 28px 24px 32px;
	}

	.isvPopup_titleTop,
	.isvPopup_titleMain {
		font-size: 28px;
	}

	.isvPopup_copy {
		font-size: 15px;
	}

	.isvPopup_badges {
		gap: 28px;
		margin-top: 30px;
	}

	.isvPopup_badge + .isvPopup_badge {
		margin-left: 28px;
	}

	@supports (gap: 1px) {
		.isvPopup_badge + .isvPopup_badge {
			margin-left: 0;
		}
	}

	.isvPopup_media {
		height: 150px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.isvPopup,
	.isvPopup_modal,
	.isvPopup_close {
		transition: none;
	}
}
