.stfl-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, .6 );
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 99999;
}

.stfl-popup-overlay.is-open {
	display: flex;
	animation: stfl-fade .2s ease-out;
}

@keyframes stfl-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.stfl-popup-box {
	position: relative;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 20px 50px rgba( 0, 0, 0, .3 );
	padding: 32px;
	width: 100%;
	max-width: 460px;
	max-height: 90vh;
	overflow-y: auto;
}

.stfl-popup-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: 0;
	font-size: 28px;
	line-height: 1;
	color: #666;
	cursor: pointer;
	padding: 4px 8px;
}

.stfl-popup-close:hover,
.stfl-popup-close:focus {
	color: #000;
}

body.stfl-popup-open {
	overflow: hidden;
}

@media ( max-width: 480px ) {
	.stfl-popup-box {
		padding: 28px 20px;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.stfl-popup-overlay.is-open {
		animation: none;
	}
}