/* Site popup (inc/acf-popup.php) */
.site-popup[hidden] {
	display: none;
}

.site-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.site-popup.is-open {
	opacity: 1;
}

.site-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	cursor: pointer;
}

.site-popup__box {
	position: relative;
	width: 100%;
	max-width: 860px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #fff;
	color: #404040;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	transform: translateY(15px);
	transition: transform 0.25s ease;
}

.site-popup.is-open .site-popup__box {
	transform: translateY(0);
}

.site-popup__close {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 1;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: rgba(255, 255, 255, 0.9);
	color: #404040;
	font-size: 28px;
	line-height: 36px;
	cursor: pointer;
}

.site-popup__close:hover,
.site-popup__close:focus {
	color: #000;
}

.site-popup__image {
	display: block;
	width: 100%;
	height: auto;
}

.site-popup__body {
	padding: 50px 60px;
	text-align: center;
}

.site-popup__title {
	margin: 0 0 15px;
	color: inherit;
}

.site-popup__content,
.site-popup__content p,
.site-popup__content li {
	color: inherit;
	font-size: 18px;
	line-height: 1.6;
}

.site-popup__content > :last-child {
	margin-bottom: 0;
}

.site-popup__btn {
	display: inline-block;
	margin-top: 20px;
}

body.site-popup-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.site-popup__body {
		padding: 30px 20px;
	}

	.site-popup__content,
	.site-popup__content p,
	.site-popup__content li {
		font-size: 17px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-popup,
	.site-popup__box {
		transition: none;
	}
}
