/* BuildKit Popup Builder */

/* ---- Overlay body lock ---- */

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

/* ---- Popup wrapper (hidden by default) ---- */

.bk-popup {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	align-items: center;
	justify-content: center;
}

.bk-popup--visible {
	display: flex;
}

/* ---- Overlay ---- */

.bk-popup__overlay {
	position: absolute;
	inset: 0;
	background: var( --bk-popup-overlay-bg, rgba( 0, 0, 0, 0.6 ) );
}

/* ---- Container ---- */

.bk-popup__container {
	position: relative;
	z-index: 1;
	width: 90%;
	max-width: var( --bk-popup-width, 600px );
	max-height: 90vh;
	overflow-y: auto;
	background: var( --bk-popup-bg, #fff );
	border-radius: var( --bk-popup-radius, 4px );
	box-shadow: 0 8px 40px rgba( 0, 0, 0, 0.25 );
}

/* ---- Close button ---- */

.bk-popup__close {
	position: absolute;
	top: 12px;
	inset-inline-end: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background: var( --bk-popup-close-bg, rgba( 0, 0, 0, 0.12 ) );
	border: none;
	border-radius: 50%;
	cursor: pointer;
	font-size: 14px;
	color: var( --bk-popup-close-color, #333 );
	line-height: 1;
	padding: 0;
	transition: background-color 0.2s, color 0.2s;
}

.bk-popup__close:hover {
	background: var( --bk-popup-close-bg-hover, rgba( 0, 0, 0, 0.22 ) );
	color: var( --bk-popup-close-color-hover, #000 );
}

/* ---- Content ---- */

.bk-popup__content {
	/* Elementor content renders inside here — no extra padding needed;
	   the template itself controls spacing. */
}

/* ---- Animations ---- */

/* Fade */
.bk-popup--fade .bk-popup__container {
	animation: none;
}
.bk-popup--fade.bk-popup--visible .bk-popup__overlay {
	animation: bk-popup-fade-overlay 0.25s ease forwards;
}
.bk-popup--fade.bk-popup--visible .bk-popup__container {
	animation: bk-popup-fade-in 0.25s ease forwards;
}
@keyframes bk-popup-fade-overlay {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes bk-popup-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* Slide Up */
.bk-popup--slide-up.bk-popup--visible .bk-popup__container {
	animation: bk-popup-slide-up 0.3s cubic-bezier( 0.34, 1.56, 0.64, 1 ) forwards;
}
@keyframes bk-popup-slide-up {
	from { opacity: 0; transform: translateY( 50px ); }
	to   { opacity: 1; transform: translateY( 0 ); }
}

/* Slide Down */
.bk-popup--slide-down.bk-popup--visible .bk-popup__container {
	animation: bk-popup-slide-down 0.3s cubic-bezier( 0.34, 1.56, 0.64, 1 ) forwards;
}
@keyframes bk-popup-slide-down {
	from { opacity: 0; transform: translateY( -50px ); }
	to   { opacity: 1; transform: translateY( 0 ); }
}

/* Zoom */
.bk-popup--zoom.bk-popup--visible .bk-popup__container {
	animation: bk-popup-zoom 0.25s ease forwards;
}
@keyframes bk-popup-zoom {
	from { opacity: 0; transform: scale( 0.85 ); }
	to   { opacity: 1; transform: scale( 1 ); }
}
