.jem-popup {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	align-items: center;
	justify-content: center;
}
.jem-popup.is-open {
	display: flex;
}
.jem-popup-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.55);
}
.jem-popup-box {
	position: relative;
	background: #fff;
	border-radius: 10px;
	max-height: 90vh;
	overflow: auto;
	transform: scale(0.92);
	opacity: 0;
	animation: jem-popup-in 0.3s ease forwards;
}
@keyframes jem-popup-in {
	to { transform: scale(1); opacity: 1; }
}
.jem-popup-size-small { width: 100%; max-width: 400px; }
.jem-popup-size-medium { width: 100%; max-width: 600px; }
.jem-popup-size-large { width: 100%; max-width: 900px; }
.jem-popup-size-full { width: 95vw; height: 95vh; max-width: none; }

.jem-popup-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #333;
	z-index: 2;
}
.jem-popup-content {
	padding: 32px;
}

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