.zpn-overlay[hidden] {
	display: none;
}

.zpn-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	padding: 24px;
	background: rgb(10 18 30 / 72%);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	animation: zpn-fade-in 180ms ease-out both;
}

body.zpn-is-open {
	overflow: hidden;
}

.zpn-dialog {
	position: relative;
	box-sizing: border-box;
	width: min(100%, 660px);
	max-height: calc(100dvh - 48px);
	overflow: auto;
	color: var(--global-palette3, #1f2933);
	background: var(--global-palette9, #fff);
	border: 1px solid rgb(255 255 255 / 18%);
	border-radius: 18px;
	box-shadow: 0 28px 80px rgb(0 0 0 / 35%);
	overscroll-behavior: contain;
	animation: zpn-dialog-in 220ms cubic-bezier(.2,.8,.2,1) both;
}

.zpn-dialog__inner {
	padding: clamp(30px, 6vw, 54px);
}

.zpn-title {
	margin: 0 40px 16px 0;
	color: var(--global-palette3, #17212b);
	font-family: inherit;
	font-size: clamp(1.55rem, 4vw, 2.25rem);
	line-height: 1.15;
	letter-spacing: -.02em;
}

.zpn-content {
	font-size: clamp(1rem, 2.3vw, 1.125rem);
	line-height: 1.7;
}

.zpn-content > :first-child {
	margin-top: 0;
}

.zpn-content > :last-child {
	margin-bottom: 0;
}

.zpn-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin-top: 26px;
	padding: 10px 22px;
	color: var(--global-palette-btn, #fff);
	font-weight: 700;
	text-decoration: none;
	background: var(--global-palette1, #1768ac);
	border-radius: 8px;
	transition: filter 150ms ease, transform 150ms ease;
}

.zpn-button:hover,
.zpn-button:focus-visible {
	color: var(--global-palette-btn, #fff);
	filter: brightness(.92);
	transform: translateY(-1px);
}

.zpn-close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	color: currentColor;
	font: inherit;
	font-size: 30px;
	line-height: 1;
	background: transparent;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	opacity: .72;
}

.zpn-close:hover,
.zpn-close:focus-visible {
	background: rgb(0 0 0 / 7%);
	opacity: 1;
}

.zpn-close:focus-visible,
.zpn-button:focus-visible {
	outline: 3px solid var(--global-palette1, #1768ac);
	outline-offset: 3px;
}

@keyframes zpn-fade-in {
	from { opacity: 0; }
}

@keyframes zpn-dialog-in {
	from { opacity: 0; transform: translateY(12px) scale(.985); }
}

@media (max-width: 600px) {
	.zpn-overlay {
		padding: 16px;
	}

	.zpn-dialog {
		max-height: calc(100dvh - 32px);
		border-radius: 14px;
	}

	.zpn-dialog__inner {
		padding: 32px 24px 28px;
	}

	.zpn-close {
		top: 8px;
		right: 8px;
	}

	.zpn-button {
		width: 100%;
		box-sizing: border-box;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zpn-overlay,
	.zpn-dialog {
		animation: none;
	}

	.zpn-button {
		transition: none;
	}
}

