body.rt-product-popup-open {
	overflow: hidden !important;
}

.rt-product-image-popup[hidden] {
	display: none !important;
}

.rt-product-image-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 82px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity .22s ease, visibility .22s ease;
}

.rt-product-image-popup.is-open {
	opacity: 1;
	visibility: visible;
}

.rt-product-image-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .95);
	cursor: pointer;
}

.rt-product-image-popup__content {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min-content;
	max-width: 100%;
	max-height: 100%;
}

.rt-product-image-popup__image {
	display: block;
	width: auto;
	max-width: calc(100vw - 164px);
	height: auto;
	max-height: calc(100vh - 120px);
	object-fit: contain;
	background: #fff;
	border: 2px solid #fff;
	border-radius: 8px;
	box-shadow: 0 0 30px rgba(0, 0, 0, .7);
}

.rt-product-image-popup__close,
.rt-product-image-popup__nav {
	margin: 0;
	padding: 0;
	color: #fff;
	background: rgba(255, 255, 255, .16);
	border: 0;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
	-webkit-tap-highlight-color: transparent;
}

.rt-product-image-popup__close:focus,
.rt-product-image-popup__nav:focus {
	outline: 2px solid #00bcd4;
	outline-offset: 3px;
}

.rt-product-image-popup__close {
	position: fixed;
	top: 20px;
	right: 24px;
	z-index: 2;
	width: 46px;
	height: 46px;
	font-size: 42px;
	font-weight: 400;
	line-height: 42px;
	border-radius: 50%;
}

.rt-product-image-popup__close:hover {
	background: #b3263d;
	transform: rotate(90deg);
}

.rt-product-image-popup__nav {
	position: fixed;
	top: 50%;
	z-index: 2;
	width: 52px;
	height: 72px;
	font-size: 38px;
	line-height: 72px;
	border-radius: 6px;
	transform: translateY(-50%);
}

.rt-product-image-popup__nav:hover {
	background: rgba(0, 188, 212, .75);
}

.rt-product-image-popup__nav--previous {
	left: 20px;
}

.rt-product-image-popup__nav--next {
	right: 20px;
}

.rt-product-image-popup__counter {
	position: fixed;
	right: 50%;
	bottom: 18px;
	z-index: 2;
	padding: 6px 12px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	background: rgba(0, 0, 0, .45);
	border-radius: 20px;
	transform: translateX(50%);
}

@media only screen and (max-width: 768px) {
	.rt-product-image-popup {
		padding: 56px 12px 58px;
	}

	.rt-product-image-popup__image {
		max-width: calc(100vw - 24px);
		max-height: calc(100vh - 114px);
	}

	.rt-product-image-popup__close {
		top: 10px;
		right: 12px;
		width: 40px;
		height: 40px;
		font-size: 36px;
		line-height: 36px;
	}

	.rt-product-image-popup__nav {
		width: 42px;
		height: 58px;
		font-size: 29px;
		line-height: 58px;
		background: rgba(0, 0, 0, .5);
	}

	.rt-product-image-popup__nav--previous {
		left: 8px;
	}

	.rt-product-image-popup__nav--next {
		right: 8px;
	}
}
