﻿.cms-product-select-lightbox {
	display: none;
	position: fixed;
	z-index: 99999;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.cms-product-select-lightbox-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.75);
}

.cms-product-select-lightbox-inner {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 90%;
	max-height: 90%;
	text-align: center;
}

.cms-product-select-lightbox-img {
	display: block;
	max-width: 100%;
	max-height: 85vh;
	height: auto;
	background: #fff;
	position: relative;
	z-index: 1;
}

.cms-product-select-lightbox-prev,
.cms-product-select-lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: none;
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: contain;
	cursor: pointer;
	padding: 0;
	z-index: 2;
	font-size: 0;
	line-height: 0;
	text-indent: -9999px;
	overflow: hidden;
}

.cms-product-select-lightbox-prev {
	left: 10px;
	background-image: url(../images/common/arrow_left.png);
}

.cms-product-select-lightbox-next {
	right: 10px;
	background-image: url(../images/common/arrow_right.png);
}

.cms-product-select-lightbox-caption {
	margin-top: 8px;
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
}

.cms-product-select-lightbox-counter {
	margin-top: 4px;
	color: #fff;
	font-size: 12px;
	line-height: 1.5;
}

.cms-product-select-lightbox.is-loading .cms-product-select-lightbox-prev,
.cms-product-select-lightbox.is-loading .cms-product-select-lightbox-next,
.cms-product-select-lightbox.is-loading .cms-product-select-lightbox-caption,
.cms-product-select-lightbox.is-loading .cms-product-select-lightbox-counter {
	display: none !important;
}

.cms-product-select-lightbox.is-loading .cms-product-select-lightbox-img {
	visibility: hidden;
}

.cms-product-select-popup-link {
	text-align: center;
	margin-top: 8px;
}

.cms-product-select-popup-link-anchor {
	display: inline-block;
	text-decoration: underline;
	cursor: pointer;
}

@media screen and (max-width: 480px) {
	.cms-product-select-lightbox-inner {
		max-width: 90%;
	}

	.cms-product-select-lightbox-prev,
	.cms-product-select-lightbox-next {
		width: 34px;
		height: 34px;
	}

	.cms-product-select-lightbox-prev {
		left: 6px;
	}

	.cms-product-select-lightbox-next {
		right: 6px;
	}
}