.popup-simple-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	padding: 24px;
	box-sizing: border-box;
}

.popup-simple-overlay.is-active {
	opacity: 1;
	visibility: visible;
}

.popup-simple-modal {
	background: #ffffff;
	position: relative;
	overflow: hidden;
	max-width: 100%;
	display: flex;
	flex-direction: column;
	transform: translateY(10px) scale(0.98);
	opacity: 0;
	transition: transform 0.35s ease, opacity 0.35s ease;
}

.popup-simple-overlay.is-active .popup-simple-modal {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.popup-simple-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 38px;
	height: 38px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: rgba(255, 255, 255, 0.98);
	color: #111;
	border-radius: 50%;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

.popup-simple-close:focus {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.popup-simple-close:hover {
	background: #ffffff;
}

.popup-simple-mode1-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.popup-simple-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.popup-simple-placeholder {
	padding: 48px 24px;
	text-align: center;
	color: #666;
}

.popup-simple-split {
	display: flex;
	min-height: 320px;
}

.popup-simple-left,
.popup-simple-right {
	flex: 1 1 50%;
	min-width: 0;
}

.popup-simple-right {
	padding: 32px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	text-align: center;
}

.popup-simple-title {
	margin: 0;
}

.popup-simple-paragraph {
	margin: 0;
}

.popup-simple-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
}

.popup-simple-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-weight: 600;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.popup-simple-button:hover {
	transform: translateY(-1px);
	opacity: 0.92;
}

.popup-simple-effect-fade_zoom {
	animation: popupSimpleFadeZoom 0.35s ease both;
}

.popup-simple-effect-slide_up {
	animation: popupSimpleSlideUp 0.35s ease both;
}

.popup-simple-effect-slide_right {
	animation: popupSimpleSlideRight 0.35s ease both;
}

@keyframes popupSimpleFadeZoom {
	from { opacity: 0; transform: translateY(10px) scale(0.96); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes popupSimpleSlideUp {
	from { opacity: 0; transform: translateY(30px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes popupSimpleSlideRight {
	from { opacity: 0; transform: translateX(-30px); }
	to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 900px) {
	.popup-simple-split {
		flex-direction: column;
	}

	/* Complex popup: image top, content bottom (clear stack) */
	.popup-simple-left {
		aspect-ratio: 16 / 9;
	}

	.popup-simple-left .popup-simple-image {
		height: 100%;
	}

	.popup-simple-right {
		padding: 24px;
	}

	.popup-simple-modal {
		width: 90%;
	}

	.popup-simple-effect-slide_right {
		animation: popupSimpleSlideUp 0.35s ease both;
	}
}

@media (max-width: 480px) {
	.popup-simple-right {
		padding: 20px;
	}

	.popup-simple-close {
		top: 10px;
		right: 10px;
	}

	.popup-simple-button {
		width: 100%;
	}
}
