body.ppc-gallery-open {
	overflow: hidden;
}

.ppc-product-widget__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	align-items: center;
}

.ppc-gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.ppc-gallery-lightbox[hidden] {
	display: none !important;
}

.ppc-gallery-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.8);
}

.ppc-gallery-lightbox__dialog {
	position: relative;
	z-index: 1;
	max-width: min(960px, 100%);
	max-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ppc-gallery-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: 85vh;
	width: auto;
	height: auto;
	object-fit: contain;
	border-radius: 4px;
	background: #111;
}

.ppc-gallery-lightbox__close,
.ppc-gallery-lightbox__nav {
	position: absolute;
	border: 0;
	background: rgba(255, 255, 255, 0.92);
	color: #111;
	cursor: pointer;
	line-height: 1;
	border-radius: 999px;
}

.ppc-gallery-lightbox__close {
	top: -12px;
	right: -12px;
	width: 36px;
	height: 36px;
	font-size: 24px;
}

.ppc-gallery-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	font-size: 20px;
}

.ppc-gallery-lightbox__nav[hidden],
.ppc-gallery-lightbox__counter[hidden] {
	display: none !important;
}

.ppc-gallery-lightbox__nav--prev {
	left: -52px;
}

.ppc-gallery-lightbox__nav--next {
	right: -52px;
}

.ppc-gallery-lightbox__counter {
	position: absolute;
	left: 50%;
	bottom: -28px;
	transform: translateX(-50%);
	color: #fff;
	font-size: 14px;
	white-space: nowrap;
}

@media (max-width: 782px) {
	.ppc-gallery-lightbox__nav--prev {
		left: 8px;
	}

	.ppc-gallery-lightbox__nav--next {
		right: 8px;
	}

	.ppc-gallery-lightbox__close {
		top: 8px;
		right: 8px;
	}
}
