/**
 * The 3D slide in the product gallery.
 *
 * @package Lightweight3DProductViewer
 */

.l3pv-stage {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.l3pv-stage .l3pv-poster {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.l3pv-open {
	position: absolute;
	left: 50%;
	bottom: 16px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 10px 18px 10px 14px;
	border: 0;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0.82);
	color: #fff;
	font-size: 15px;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	transform: translateX(-50%);
}

.l3pv-open:hover,
.l3pv-open:focus-visible {
	background: rgba(17, 17, 17, 0.95);
	color: #fff;
}

.l3pv-open:disabled {
	cursor: progress;
}

.l3pv-icon {
	flex: none;
	display: block;
	width: 22px;
	height: 22px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' d='M12 2.8 20 7.2v9.6L12 21.2 4 16.8V7.2Z M4 7.2l8 4.5 8-4.5 M12 11.7v9.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.l3pv-stage.is-open .l3pv-open {
	display: none;
}

/* Once the model is in, the photo behind it goes: the model has its own
   neutral background. The image stays in the page for the lightbox. */
.l3pv-stage.is-open {
	background: #f4f4f4;
}

.l3pv-stage.is-open .l3pv-poster {
	visibility: hidden;
}

.l3pv-stage.has-error .l3pv-open {
	cursor: default;
}

.l3pv-viewer {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	background-color: transparent;
	--poster-color: transparent;
}

.l3pv-ar {
	position: absolute;
	right: 12px;
	bottom: 12px;
	margin: 0;
	padding: 8px 14px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: #111;
	font-size: 14px;
	line-height: 1.2;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
	cursor: pointer;
}

/* The image zoom of WooCommerce has no business on the 3D slide. */
.l3pv-slide .zoomImg {
	display: none !important;
}

/* A product with a model but no images: the model replaces the placeholder. */
.l3pv-has-model .woocommerce-product-gallery__image--placeholder {
	display: none;
}

/* The 3D mark on the thumbnail of the slide: in the WooCommerce slider, and
   as an element of its own in a separate thumbnail strip printed by the
   theme, whose ::after the theme may already use. */
.l3pv-has-model .flex-control-thumbs li:first-child,
.l3pv-thumb {
	position: relative;
}

.l3pv-has-model .flex-control-thumbs li:first-child::after,
.l3pv-thumb .l3pv-badge {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border-radius: 50%;
	background: rgba(17, 17, 17, 0.82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round' d='M12 2.8 20 7.2v9.6L12 21.2 4 16.8V7.2Z M4 7.2l8 4.5 8-4.5 M12 11.7v9.5'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
	z-index: 1;
	pointer-events: none;
}
