body.so-popup-open {
	overflow: hidden;
}

.so-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}

.so-popup[hidden] {
	display: none;
}

.so-popup.is-visible {
	display: flex;
}

.so-popup.is-visible .so-popup__overlay {
	animation: so-popup-fade-in 0.25s ease;
}

.so-popup.is-visible .so-popup__dialog {
	animation: so-popup-slide-in 0.3s ease;
}

.so-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(13, 13, 13, 0.7);
	backdrop-filter: blur(2px);
}

.so-popup__dialog {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(100%, 650px);
	max-height: 60dvh;
	overflow: hidden;
	padding: 32px 80px 32px 32px;
	background: var(--color-white, #fff);
	border-radius: var(--border-radius, 8px);
	box-shadow: 0 24px 64px rgba(13, 13, 13, 0.28);
}

.so-popup__close {
	position: absolute;
	top: 32px;
	right: 32px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--color-off-white, #f5f5f5);
	color: var(--color-black, #0d0d0d);
	font-size: 28px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.so-popup__close span {
	display: block;
	margin-top: -2px;
}

.so-popup__close:hover,
.so-popup__close:focus {
	background: var(--color-blue, #256bb6);
	color: var(--color-white, #fff);
	outline: none;
}

.so-popup__header {
	flex-shrink: 0;
	padding: 0 48px 0 0;
	margin-bottom: 16px;
}

.so-popup__title {
	margin: 0;
	padding: 0;
	font-size: var(--fontsize-h3, 30px);
	line-height: 1.2;
	color: var(--color-black, #0d0d0d);
}

.so-popup__content {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 0;
	-webkit-overflow-scrolling: touch;
}

.so-popup__content > *:first-child {
	margin-top: 0;
}

.so-popup__content > *:last-child {
	margin-bottom: 0;
}

@keyframes so-popup-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes so-popup-slide-in {
	from {
		opacity: 0;
		transform: translateY(12px) scale(0.98);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@media screen and (max-width: 768px) {
	.so-popup {
		padding: 16px;
	}

	.so-popup__dialog {
		width: 100%;
		max-height: min(60dvh, calc(100dvh - 32px));
		padding: 44px 20px 24px;
	}

	.so-popup__header {
		padding-right: 44px;
		margin-bottom: 12px;
	}

	.so-popup__close {
		right: 20px;
	}

	.so-popup__title {
		font-size: var(--fontsize-h4, 24px);
	}

	.so-popup__content {
		padding: 0;
	}
}
