/* Overlay */
.qe-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8); /* Darker backdrop for focus */
	z-index: 999999;
	display: none; /* Controlled by JS as 'flex' */
	justify-content: center;
	align-items: center;
	padding: 20px;
}

/* Inner Box */
.qe-popup-inner {
	background: #fff;
	max-width: 450px;
	width: 100%;
	padding: 30px 20px;
	border-radius: 16px;
	position: relative;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
	text-align: center;
	animation: qePopupFade 0.25s ease-out;
}

/* Image Container - Fixes the black background issue */
.qe-img-container {
	background: #f9f9f9; /* Light grey instead of black */
	border-radius: 8px;
	margin-bottom: 15px;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 200px;
}

#qe-popup-img {
	max-width: 100%;
	max-height: 60vh; /* Keeps button visible on small screens */
	height: auto;
	display: block;
}

/* Close Button */
.qe-popup-close {
	position: absolute;
	top: -12px;
	right: -12px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #ff3b30;
	color: #fff;
	font-size: 22px;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 10px rgba(0,0,0,0.2);
	line-height: 0;
	z-index: 10;
}

/* Download Button */
.qe-download-btn {
	display: inline-block;
	padding: 12px 24px;
	background: #000;
	color: #fff;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	transition: transform 0.2s, background 0.2s;
}

.qe-download-btn:hover {
	background: #333;
	color: #fff;
	transform: translateY(-1px);
}

@keyframes qePopupFade {
	from { transform: scale(0.95); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.image-show {
	display: inline-block;
	padding: 8px 14px;
	background-color: #000;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-size: 14px;
	transition: background 0.3s ease;
}

.image-show:hover {
	background-color: #000;
	color: #fff;
}

.qewpc-cart-area-previews {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 4px;
}

.qewpc-cart-area-preview {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.qewpc-cart-area-preview strong {
	font-size: 13px;
	line-height: 1.3;
}

.qewpc-cart-area-preview__media {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}