.nordie-popup-root {
	position: fixed;
	inset: 0;
	z-index: 2147483647 !important;
	display: grid;
	place-items: center;
	padding: clamp(16px, 4vw, 40px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 180ms ease, visibility 180ms ease;
}

.nordie-popup-root.is-open {
	opacity: 1;
	visibility: visible;
}

.nordie-popup-root[hidden] {
	display: none;
}

.nordie-popup-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, var(--nordie-popup-overlay, 0.65));
}

.nordie-popup-dialog {
	position: relative;
	z-index: 1;
	width: min(94vw, 980px);
	max-height: min(88vh, 720px);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
	overflow: hidden;
	background: #fff;
	border-radius: var(--nordie-popup-radius, 8px);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
	color: #111;
}

.nordie-popup-dialog.no-media {
	width: min(92vw, 560px);
	grid-template-columns: 1fr;
}

.nordie-popup-close {
	position: absolute;
	top: 14px;
	right: 16px;
	z-index: 2;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #111;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
}

.nordie-popup-close:hover,
.nordie-popup-close:focus {
	background: rgba(0, 0, 0, 0.06);
	outline: none;
}

.nordie-popup-media {
	min-height: 560px;
	background: #f3f3f3;
}

.nordie-popup-media img,
.nordie-popup-media video {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.nordie-popup-content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	gap: 18px;
	padding: clamp(34px, 6vw, 72px) clamp(26px, 5vw, 56px);
	text-align: center;
	min-width: 0;
}

.nordie-popup-pretitle,
.nordie-popup-copy p,
.nordie-popup-legal p {
	margin: 0;
}

.nordie-popup-pretitle {
	color: #666;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: uppercase;
}

.nordie-popup-content h2 {
	margin: 0;
	color: #111;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(34px, 5vw, 54px);
	font-weight: 500;
	line-height: 0.92;
	letter-spacing: 0;
}

.nordie-popup-copy {
	color: #555;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.35;
}

.nordie-popup-form {
	width: 100%;
}

.nordie-popup-form form {
	display: grid;
	gap: 14px;
	margin: 0;
}

.nordie-popup-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.nordie-popup-form textarea,
.nordie-popup-form select {
	width: 100%;
	min-height: 56px;
	box-sizing: border-box;
	border: 0;
	border-radius: 8px;
	background: #f5f5f5;
	color: #111;
	padding: 0 20px;
	font-size: 15px;
}

.nordie-popup-form textarea {
	min-height: 110px;
	padding-top: 16px;
}

.nordie-popup-form input[type="submit"],
.nordie-popup-form button[type="submit"],
.nordie-popup-form .wpcf7-submit {
	width: 100%;
	min-height: 56px;
	border: 0;
	border-radius: 8px;
	background: #070707;
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	text-transform: uppercase;
	cursor: pointer;
}

.nordie-popup-form input[type="submit"]:hover,
.nordie-popup-form button[type="submit"]:hover,
.nordie-popup-form .wpcf7-submit:hover {
	background: #242424;
}

.nordie-popup-form p {
	margin: 0;
}

.nordie-popup-legal {
	color: #666;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
}

body.nordie-popup-lock {
	overflow: hidden;
}

body.nordie-popup-lock .pn-float-galaxy,
body.nordie-popup-lock .pn-float-galaxy__button,
body.nordie-popup-lock .pn-float-galaxy__hint,
body.nordie-popup-lock .pn-ver-demo-floating,
body.nordie-popup-lock .pn-ver-demo-floating__button {
	z-index: 2147483645 !important;
	pointer-events: none !important;
}

@media (max-width: 760px) {
	.nordie-popup-root {
		padding: 14px;
		align-items: center;
	}

	.nordie-popup-dialog {
		width: min(100%, 430px);
		max-height: 92vh;
		grid-template-columns: 1fr;
		overflow-y: auto;
	}

	.nordie-popup-media {
		min-height: 0;
		height: clamp(210px, 48vh, 360px);
	}

	.nordie-popup-content {
		gap: 14px;
		padding: 34px 22px 28px;
	}

	.nordie-popup-content h2 {
		font-size: clamp(30px, 10vw, 42px);
		line-height: 0.98;
	}

	.nordie-popup-close {
		top: 8px;
		right: 8px;
		background: rgba(255, 255, 255, 0.78);
	}
}

@media (max-width: 380px) {
	.nordie-popup-content {
		padding-inline: 18px;
	}

	.nordie-popup-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
	.nordie-popup-form textarea,
	.nordie-popup-form select,
	.nordie-popup-form input[type="submit"],
	.nordie-popup-form button[type="submit"],
	.nordie-popup-form .wpcf7-submit {
		min-height: 50px;
	}
}
