/* ===== Popup ===== */

.mw-popup {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
}

.mw-popup.is-open {
	display: block;
}

/* Overlay */
.mw-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(2px);
	cursor: pointer;
}

/* Inner box */
.mw-popup__inner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	border-radius: 12px;
	width: min(90vw, 640px);
	max-height: 90vh;
	overflow-y: auto;
	padding: 48px 40px 40px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
	position: relative; /* so close btn is relative to inner */
}

/* Close button */
.mw-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	color: #555;
	border-radius: 50%;
	transition: background 0.2s, color 0.2s;
	padding: 0;
	line-height: 1;
}

.mw-popup__close:hover {
	background: #f0f0f0;
	color: #111;
}

.mw-popup__close svg {
	width: 18px;
	height: 18px;
	display: block;
}

/* Popup title */
.mw-popup__title {
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	font-weight: 600;
	line-height: 1.3;
	margin: 0 0 16px;
}

/* Popup content area */
.mw-popup__content {
	/* add your content styles here */
}
