.lumi-popup {
	--lumi-popup-teal: #0f766e;
	--lumi-popup-cream: #f5f0e8;
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.lumi-popup[hidden] {
	display: none !important;
}

.lumi-popup.is-open {
	display: flex;
}

.lumi-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.lumi-popup__dialog {
	position: relative;
	width: min(920px, 100%);
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
	animation: lumiPopupIn 0.35s ease;
}

@keyframes lumiPopupIn {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.lumi-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: none;
	border-radius: 50%;
	background: var(--lumi-popup-teal);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.lumi-popup__layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 380px;
}

.lumi-popup__media {
	background: #e8e8e8 center/cover no-repeat;
	min-height: 100%;
}

.lumi-popup__media[hidden] {
	display: none;
}

.lumi-popup__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	padding: 48px 40px;
	background: var(--lumi-popup-cream);
}

.lumi-popup__title {
	margin: 0;
	font-size: clamp(1.4rem, 2.5vw, 1.85rem);
	line-height: 1.25;
	color: #1a1a1a;
	font-weight: 700;
}

.lumi-popup__content {
	font-size: 1rem;
	line-height: 1.6;
	color: #4b5563;
}

.lumi-popup__content p {
	margin: 0 0 12px;
}

.lumi-popup__content p:last-child {
	margin-bottom: 0;
}

.lumi-popup__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	margin-top: 8px;
	padding: 14px 28px;
	border-radius: 999px;
	background: var(--lumi-popup-teal);
	color: #fff !important;
	text-decoration: none !important;
	font-size: 0.95rem;
	font-weight: 700;
	transition: opacity 0.2s ease;
}

.lumi-popup__btn:hover {
	opacity: 0.92;
}

.lumi-popup__btn[hidden] {
	display: none;
}

.lumi-popup--no-image .lumi-popup__layout {
	grid-template-columns: 1fr;
}

@media (max-width: 768px) {
	.lumi-popup {
		padding: 16px;
	}

	.lumi-popup__layout {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	.lumi-popup__media {
		min-height: 200px;
	}

	.lumi-popup__body {
		padding: 32px 24px 28px;
	}
}
