.esp-popup[hidden] {
	display: none;
}

.esp-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.26s ease, visibility 0.26s ease;
}

.esp-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 16, 28, 0.72);
	opacity: 0;
	transition: opacity 0.26s ease;
}

.esp-popup__frame {
	position: relative;
	z-index: 1;
	width: min(calc(100vw - 64px), 720px);
	max-height: calc(100vh - 48px);
	overflow: visible;
}

.esp-popup__content {
	position: relative;
	width: 100%;
	max-height: calc(100vh - 48px);
	overflow: auto;
	outline: none;
	-webkit-overflow-scrolling: touch;
	transform: translateY(28px) scale(0.98);
	opacity: 0;
	transition: transform 0.26s ease, opacity 0.26s ease;
}

.esp-popup__content > .elementor {
	width: 100%;
}

.esp-popup__close {
	position: absolute;
	top: -14px;
	right: -14px;
	z-index: 10;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	color: #ffffff;
	background: rgba(24, 30, 48, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	box-shadow: 0 12px 30px rgba(11, 18, 35, 0.24);
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.esp-popup__close:hover,
.esp-popup__close:focus {
	background: rgba(13, 19, 34, 0.98);
	box-shadow: 0 16px 32px rgba(11, 18, 35, 0.28);
	transform: scale(1.04);
}

.esp-popup.is-visible,
.esp-popup.is-closing {
	visibility: visible;
}

.esp-popup.is-visible {
	opacity: 1;
}

.esp-popup.is-visible .esp-popup__backdrop {
	opacity: 1;
}

.esp-popup.is-visible .esp-popup__content {
	transform: translateY(0) scale(1);
	opacity: 1;
}

.esp-popup.is-closing {
	opacity: 0;
}

.esp-popup.is-closing .esp-popup__backdrop {
	opacity: 0;
}

.esp-popup.is-closing .esp-popup__content {
	transform: translateY(20px) scale(0.985);
	opacity: 0;
}

body.esp-popup-open .dialog-close-button,
body.esp-popup-open .dialog-lightbox-close-button {
	display: none !important;
}

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

@media (max-width: 767px) {
	.esp-popup {
		padding: 18px;
	}

	.esp-popup__frame {
		width: min(calc(100vw - 36px), 520px);
		max-height: calc(100vh - 36px);
	}

	.esp-popup__content {
		max-height: calc(100vh - 32px);
	}

	.esp-popup__close {
		top: -10px;
		right: -10px;
		width: 32px;
		height: 32px;
		font-size: 20px;
	}
}
