body.upz-home-curtain-enabled #upz-main-title {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

body.upz-home-curtain-enabled .upz-home-curtain {
	--upz-home-curtain-position: 37%;
	--upz-home-curtain-divider-position: 34.2368%;
	--upz-home-curtain-handle-position: 37%;
	--upz-home-curtain-angle: -12deg;
	box-sizing: border-box;
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: 760px;
	min-width: 0;
	margin: 12px auto 24px;
	padding: clamp(12px, 2.2vw, 20px);
	overflow: hidden;
	border: 1px solid transparent;
	border-radius: 30px;
	background:
		linear-gradient(rgba(255, 255, 255, .96), rgba(255, 255, 255, .90)) padding-box,
		linear-gradient(125deg, rgba(7, 87, 209, .88), rgba(69, 212, 232, .68), rgba(117, 89, 255, .82), rgba(7, 87, 209, .88)) border-box;
	background-position: 0 0, 0% 50%;
	background-size: 100% 100%, 220% 220%;
	box-shadow: 0 24px 62px rgba(7, 50, 118, .22), 0 8px 24px rgba(7, 87, 209, .14);
	animation: upz-home-curtain-border-flow 12s ease-in-out 1s infinite;
}

body.upz-home-curtain-enabled .upz-home-curtain,
body.upz-home-curtain-enabled .upz-home-curtain *,
body.upz-home-curtain-enabled .upz-home-curtain *::before,
body.upz-home-curtain-enabled .upz-home-curtain *::after {
	box-sizing: border-box;
}

body.upz-home-curtain-enabled .upz-home-curtain--html {
	--upz-home-curtain-html-height: 760px;
	max-width: 1180px;
	padding: 12px;
}

body.upz-home-curtain-enabled .upz-home-curtain__html-frame {
	display: block;
	width: 100%;
	min-width: 0;
	height: var(--upz-home-curtain-html-height);
	min-height: 160px;
	max-height: 1600px;
	margin: 0;
	border: 0;
	border-radius: 18px;
	background: #ffffff;
	transition: height .18s ease;
}

/*
 * Den aktive UPZ-sammenligning er et 16:9-gardin med 12 px indre luft i
 * annoncekoden. Reservér den endelige højde fra første rendering, så siden
 * ikke starter med den gemte fallback-højde og derefter flytter indholdet.
 * Andre HTML-gardiner fortsætter med den eksisterende postMessage-højde.
 */
@supports (height: 1cqw) {
	body.upz-home-curtain-enabled .upz-home-curtain--html[data-upz-home-curtain-html-ratio="16-9"] {
		container-type: inline-size;
	}

	body.upz-home-curtain-enabled .upz-home-curtain--html[data-upz-home-curtain-html-ratio="16-9"] .upz-home-curtain__html-frame {
		height: calc(56.25cqw + 10.5px);
		transition: none;
	}

	@media (max-width: 430px) {
		body.upz-home-curtain-enabled .upz-home-curtain--html[data-upz-home-curtain-html-ratio="16-9"] .upz-home-curtain__html-frame {
			height: 56.25cqw;
		}
	}
}

body.upz-home-curtain-enabled .upz-home-curtain__stage {
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	aspect-ratio: 1 / 1;
	margin: 0 auto;
	overflow: hidden;
	border-radius: 22px;
	background: #cad2dc;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42), inset 0 -70px 90px -80px rgba(2, 6, 23, .65), 0 16px 38px rgba(15, 23, 42, .16);
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}

body.upz-home-curtain-enabled .upz-home-curtain__stage::before,
body.upz-home-curtain-enabled .upz-home-curtain__stage::after {
	position: absolute;
	inset: 0;
	z-index: 3;
	content: "";
	pointer-events: none;
}

body.upz-home-curtain-enabled .upz-home-curtain__stage::before {
	background: radial-gradient(circle at var(--upz-home-curtain-position) 50%, rgba(255, 255, 255, .20), transparent 20%), linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 30%);
	mix-blend-mode: screen;
	opacity: .68;
}

body.upz-home-curtain-enabled .upz-home-curtain__stage::after {
	width: 34%;
	right: auto;
	background: linear-gradient(110deg, transparent 5%, rgba(255, 255, 255, .20) 50%, transparent 95%);
	filter: blur(2px);
	transform: skewX(-14deg) translateX(-145%);
	animation: upz-home-curtain-shine 1.55s .7s cubic-bezier(.2, .7, .2, 1) both;
}

body.upz-home-curtain-enabled .upz-home-curtain__image,
body.upz-home-curtain-enabled .upz-home-curtain__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

body.upz-home-curtain-enabled .upz-home-curtain__image {
	display: block;
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
}

body.upz-home-curtain-enabled .upz-home-curtain__overlay {
	z-index: 2;
	clip-path: polygon(-100% -100%, 23.6089% 0%, 44.8646% 100%, -100% 200%);
	will-change: clip-path;
}

body.upz-home-curtain-enabled .upz-home-curtain__badge {
	position: absolute;
	top: 16px;
	z-index: 5;
	display: flex;
	width: calc(50% - 24px);
	max-width: none;
	height: 64px;
	min-height: 64px;
	padding: 12px 14px;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .72);
	border-radius: 999px;
	background: rgba(8, 25, 52, .78);
	box-shadow: 0 5px 18px rgba(0, 0, 0, .22);
	color: #ffffff;
	font-size: clamp(11px, 2.5vw, 13px);
	font-weight: 800;
	letter-spacing: .05em;
	line-height: 1.15;
	overflow-wrap: anywhere;
	text-align: center;
	text-transform: uppercase;
	white-space: normal;
	pointer-events: none;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

body.upz-home-curtain-enabled .upz-home-curtain__badge--base {
	right: 16px;
}

body.upz-home-curtain-enabled .upz-home-curtain__badge--top {
	left: 16px;
}

body.upz-home-curtain-enabled .upz-home-curtain__divider {
	position: absolute;
	top: 50%;
	left: var(--upz-home-curtain-divider-position);
	z-index: 4;
	width: 3px;
	height: 150%;
	transform: translate(-50%, -50%) rotate(var(--upz-home-curtain-angle));
	transform-origin: center;
	background: linear-gradient(180deg, rgba(255, 255, 255, .68), #ffffff 25%, #d9f7ff 50%, #ffffff 75%, rgba(255, 255, 255, .68));
	box-shadow: 0 0 0 1px rgba(15, 23, 42, .12), 0 0 18px rgba(255, 255, 255, .72), 0 0 34px rgba(7, 87, 209, .52);
	pointer-events: none;
}

body.upz-home-curtain-enabled .upz-home-curtain__handle {
	position: absolute;
	top: 50%;
	left: var(--upz-home-curtain-handle-position);
	z-index: 6;
	display: grid;
	grid-template-columns: auto auto;
	width: 62px;
	height: 62px;
	min-width: 62px;
	min-height: 62px;
	padding: 12px;
	place-items: center;
	transform: translate(-50%, -50%);
	border: 3px solid #ffffff;
	border-radius: 50%;
	background: #0757d1;
	box-shadow: 0 10px 30px rgba(0, 29, 85, .42), 0 0 0 8px rgba(47, 140, 255, .18);
	color: #ffffff;
	pointer-events: none;
	transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

body.upz-home-curtain-enabled .upz-home-curtain__divider[hidden],
body.upz-home-curtain-enabled .upz-home-curtain__handle[hidden] {
	display: none;
}

body.upz-home-curtain-enabled .upz-home-curtain__handle::before {
	position: absolute;
	inset: -9px;
	border: 2px solid rgba(224, 242, 254, .82);
	border-radius: inherit;
	content: "";
	opacity: 0;
	pointer-events: none;
	animation: upz-home-curtain-pulse 2.1s 1.4s ease-out infinite;
}

body.upz-home-curtain-enabled .upz-home-curtain.has-interacted .upz-home-curtain__handle::before {
	animation: none;
	opacity: 0;
}

body.upz-home-curtain-enabled .upz-home-curtain__handle svg {
	position: relative;
	z-index: 1;
	width: 16px;
	height: 20px;
	fill: currentColor;
	color: #ffffff;
}

body.upz-home-curtain-enabled .upz-home-curtain__range {
	position: absolute;
	inset: 0;
	z-index: 8;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	opacity: 0;
	cursor: ew-resize;
	appearance: none;
	-webkit-appearance: none;
	touch-action: pan-y;
}

body.upz-home-curtain-enabled .upz-home-curtain__range::-webkit-slider-thumb {
	width: 64px;
	height: min(64px, 42vw);
	cursor: ew-resize;
	appearance: none;
	-webkit-appearance: none;
}

body.upz-home-curtain-enabled .upz-home-curtain__range::-moz-range-thumb {
	width: 64px;
	height: 64px;
	border: 0;
	cursor: ew-resize;
}

body.upz-home-curtain-enabled .upz-home-curtain.is-focused .upz-home-curtain__handle {
	outline: 4px solid #ffffff;
	outline-offset: 4px;
	box-shadow: 0 0 0 8px rgba(7, 87, 209, .48), 0 10px 28px rgba(15, 23, 42, .42);
}

@media (max-width: 600px) {
	body.upz-home-curtain-enabled .upz-home-curtain {
		margin-top: 12px;
		margin-bottom: 20px;
		padding: 12px;
		border-radius: 20px;
	}

	body.upz-home-curtain-enabled .upz-home-curtain__stage {
		border-radius: 14px;
	}

	body.upz-home-curtain-enabled .upz-home-curtain__html-frame {
		border-radius: 12px;
	}

	body.upz-home-curtain-enabled .upz-home-curtain__badge {
		top: 12px;
		width: calc(50% - 18px);
		height: 92px;
		min-height: 92px;
		padding: 12px;
		font-size: 11px;
		letter-spacing: .02em;
	}

	body.upz-home-curtain-enabled .upz-home-curtain__badge--base {
		right: 12px;
	}

	body.upz-home-curtain-enabled .upz-home-curtain__badge--top {
		left: 12px;
	}

	body.upz-home-curtain-enabled .upz-home-curtain__handle {
		width: 58px;
		height: 58px;
		min-width: 58px;
		min-height: 58px;
	}
}

@keyframes upz-home-curtain-border-flow {
	0%, 100% { background-position: 0 0, 0% 50%; }
	50% { background-position: 0 0, 100% 50%; }
}

@keyframes upz-home-curtain-shine {
	0% { transform: skewX(-14deg) translateX(-145%); }
	100% { transform: skewX(-14deg) translateX(390%); }
}

@keyframes upz-home-curtain-pulse {
	0% { opacity: 0; transform: scale(.78); }
	18% { opacity: .82; }
	72%, 100% { opacity: 0; transform: scale(1.48); }
}

@media (prefers-reduced-motion: reduce) {
	body.upz-home-curtain-enabled .upz-home-curtain,
	body.upz-home-curtain-enabled .upz-home-curtain *,
	body.upz-home-curtain-enabled .upz-home-curtain *::before,
	body.upz-home-curtain-enabled .upz-home-curtain *::after {
		scroll-behavior: auto !important;
		transition-duration: .001ms !important;
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
	}
}

