/* === Overlay === */
.popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.6);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.popup-overlay.popup-visible {
	opacity: 1;
}

/* === Container === */
.popup-container {
	position: relative;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	padding: 40px;
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.popup-overlay.popup-visible .popup-container {
	transform: scale(1);
}

/* === Close button === */
.popup-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	opacity: 0.55;
	padding: 4px 8px;
	transition: opacity 0.2s;
}

.popup-close:hover {
	opacity: 1;
}

/* === Slide-In === */
.popup-type-slide_in {
	align-items: flex-end;
	justify-content: flex-end;
	background: transparent;
	pointer-events: none;
}

.popup-type-slide_in .popup-container {
	pointer-events: all;
	width: 360px;
	margin: 0 24px 24px 0;
	transform: translateY(120%);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.popup-type-slide_in.popup-visible .popup-container {
	transform: translateY(0);
}

/* === Banner === */
.popup-type-banner {
	align-items: flex-start;
	justify-content: stretch;
	background: transparent;
}

.popup-type-banner .popup-container {
	width: 100%;
	max-width: 100%;
	border-radius: 0;
	padding: 16px 48px;
	transform: translateY(-100%);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
	transition: transform 0.35s ease;
}

.popup-type-banner.popup-visible .popup-container {
	transform: translateY(0);
}

/* === Fullscreen === */
.popup-type-fullscreen .popup-container {
	width: 100%;
	max-width: 100%;
	height: 100vh;
	max-height: 100vh;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.popup-type-fullscreen.popup-visible .popup-container {
	opacity: 1;
}

/* === Content === */
.popup-content img {
	max-width: 100%;
	height: auto;
}
