#febdb-popup-root {
	position: fixed;
	inset: 0;
	z-index: var(--febdb-z, 999999);
	display: flex;
}

#febdb-popup-root[hidden] {
	display: none !important;
}

#febdb-popup-root .febdb-popup-overlay {
	position: absolute;
	inset: 0;
	background: var(--febdb-overlay, rgba(11,24,48,.7));
}

#febdb-popup-root .febdb-popup-box {
	position: relative;
	max-width: var(--febdb-width, 420px);
	width: calc(100% - 32px);
	margin: auto;
	border-radius: var(--febdb-radius, 16px);
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0,0,0,.4);
	background: #fff;
	opacity: 0;
	transform: translateY(0) scale(1);
	transition: opacity .35s ease, transform .35s ease;
}

#febdb-popup-root.febdb-popup-visible .febdb-popup-box {
	opacity: 1;
}

/* Animations */
.febdb-popup-anim-fade-up .febdb-popup-box { transform: translateY(24px); }
.febdb-popup-anim-fade-up.febdb-popup-visible .febdb-popup-box { transform: translateY(0); }

.febdb-popup-anim-zoom .febdb-popup-box { transform: scale(.85); }
.febdb-popup-anim-zoom.febdb-popup-visible .febdb-popup-box { transform: scale(1); }

.febdb-popup-anim-none .febdb-popup-box { transition: none; }

/* Positions */
#febdb-popup-root.febdb-popup-pos-center .febdb-popup-box {
	margin: auto;
}

#febdb-popup-root.febdb-popup-pos-bottom-right .febdb-popup-box {
	margin: auto 24px 24px auto;
}

#febdb-popup-root.febdb-popup-pos-bottom-left .febdb-popup-box {
	margin: auto auto 24px 24px;
}

#febdb-popup-root.febdb-popup-pos-top-center .febdb-popup-box {
	margin: 24px auto auto auto;
}

.febdb-popup-img {
	display: block;
	width: 100%;
	height: auto;
}

.febdb-popup-link {
	display: block;
	line-height: 0;
}

.febdb-popup-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

@media (max-width: 480px) {
	#febdb-popup-root .febdb-popup-box {
		width: calc(100% - 20px);
	}
}
