.elog-popup[hidden] {
	display: none !important;
}

.elog-popup {
	align-items: center;
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	padding: 24px;
	pointer-events: none;
	position: fixed;
	transition: opacity 0.22s ease;
	z-index: 999999;
}

.elog-popup.is-opening,
.elog-popup.is-active {
	opacity: 1;
	pointer-events: auto;
}

.elog-popup__backdrop {
	background: rgba(5, 22, 48, 0.72);
	inset: 0;
	position: absolute;
}

.elog-popup__dialog {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 24px 80px rgba(5, 22, 48, 0.3);
	max-height: min(90vh, 900px);
	max-height: min(90dvh, 900px);
	max-width: var(--elog-popup-width, 720px);
	overflow: auto;
	position: relative;
	transform: translateY(18px) scale(0.98);
	transition: transform 0.25s ease;
	width: 100%;
	z-index: 1;
}

.elog-popup.is-opening .elog-popup__dialog,
.elog-popup.is-active .elog-popup__dialog {
	transform: translateY(0) scale(1);
}

.elog-popup__close {
	align-items: center;
	background: #fff;
	border: 1px solid rgba(8, 40, 80, 0.13);
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(5, 22, 48, 0.14);
	color: #0b2850;
	cursor: pointer;
	display: flex;
	font-family: Arial, sans-serif;
	font-size: 28px;
	font-weight: 400;
	height: 42px;
	justify-content: center;
	line-height: 1;
	margin: 0;
	padding: 0 0 3px;
	position: absolute;
	right: 12px;
	top: 12px;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
	width: 42px;
	z-index: 30;
}

.elog-popup__close:hover,
.elog-popup__close:focus-visible {
	background: #ed1c24;
	color: #fff;
	outline: 0;
	transform: rotate(4deg);
}

.elog-popup__content {
	min-height: 1px;
	overflow: hidden;
}

.elog-popup__content > :first-child,
.elog-popup__content .section:first-child {
	margin-top: 0;
}

.elog-popup__content > :last-child,
.elog-popup__content .section:last-child {
	margin-bottom: 0;
}

.elog-popup__content .section {
	border-radius: inherit;
}

body.elog-popup-open {
	overflow: hidden;
	touch-action: none;
}

@media (max-width: 549px) {
	.elog-popup {
		align-items: flex-end;
		padding: 12px;
	}

	.elog-popup__dialog {
		border-radius: 15px;
		max-height: calc(100dvh - 24px);
	}

	.elog-popup__close {
		height: 38px;
		right: 9px;
		top: 9px;
		width: 38px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.elog-popup,
	.elog-popup__dialog,
	.elog-popup__close {
		transition: none;
	}
}
