.sp-auto-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 16px;
	box-sizing: border-box;
}

.sp-auto-popup-overlay.sp-auto-popup-visible {
	display: flex;
}

.sp-auto-popup-content {
	position: relative;
	max-width: 600px;
	width: 100%;
	max-height: 90vh;
	background: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.sp-auto-popup-image-wrap {
	width: 100%;
	height: 100%;
}

.sp-auto-popup-image-wrap img.sp-auto-popup-image {
	display: block;
	width: 100%;
	height: auto;
}

.sp-auto-popup-close {
	position: absolute;
	top: 8px;
	right: 8px;
	background: #e00000;
	color: #ffffff !important;
	border: none;
	border-radius: 50% !important;
	width: 32px;
	height: 32px;
	line-height: 32px;
	font-size: 18px !important;
	text-align: center;
	cursor: pointer;
	z-index: 999999;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

.sp-auto-popup-close:focus,
.sp-auto-popup-close:hover,
.sp-auto-popup-close:active {
	background: #e00000;
	color: #ffffff !important;
	outline: none;
	box-shadow: none;
}

@media (max-width: 480px) {
	.sp-auto-popup-content {
		max-width: 100%;
		border-radius: 4px;
	}

	.sp-auto-popup-close {
		top: 4px;
		right: 4px;
	}
}

