/* ShopApni website popup (shopapni-core/assets/js/site-popup.js). */
.sa-popup-lock,
.sa-popup-lock body {
	overflow: hidden;
}

.sa-popup {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.sa-popup.is-open {
	opacity: 1;
}

.sa-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 12, 0.65);
}

.sa-popup__box {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	max-width: min(480px, 100%);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	transform: scale(0.96);
	transition: transform 0.2s ease;
}

.sa-popup.is-open .sa-popup__box {
	transform: scale(1);
}

.sa-popup__image-link {
	display: block;
	border-radius: 16px;
	outline-offset: 3px;
}

.sa-popup__image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: calc(100vh - 120px);
	max-height: calc(100dvh - 120px);
	margin: 0 auto;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
	object-fit: contain;
}

.sa-popup__button {
	align-self: center;
	padding: 12px 28px;
	border-radius: 999px;
	background: #80bb01;
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.sa-popup__button:hover,
.sa-popup__button:focus-visible {
	background: #6a9d01;
	color: #fff;
}

.sa-popup__close {
	position: absolute;
	top: -12px;
	right: -12px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #1a2e05;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 520px) {
	.sa-popup__close {
		top: -8px;
		right: -4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sa-popup,
	.sa-popup__box {
		transition: none;
	}
}
