/* Titania 360 Viewer CSS v0.3.5 */

.titania360-viewer {
	--titania360-bg: #111418;
	--titania360-border: #d8dde3;
	--titania360-control: #ffffff;
	--titania360-text: #1c2733;
	position: relative;
	width: 100%;
	max-width: min(960px, calc(100vh - 160px));
	margin: 24px auto;
	color: var(--titania360-text);
}

.titania360-viewer:fullscreen {
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 24px;
	background: var(--titania360-bg);
}

.titania360-stage {
	position: relative;
	aspect-ratio: 1 / 1;
	width: min(100%, calc(100vh - 160px));
	max-width: calc(100vh - 160px);
	max-height: calc(100vh - 160px);
	min-height: 280px;
	margin: 0 auto;
	border: 0;
	border-radius: 8px;
	background: #ffffff;
	overflow: hidden;
	touch-action: none;
	cursor: grab;
	user-select: none;
	z-index: 1;
}

.titania360-viewer:fullscreen .titania360-stage {
	width: min(calc(100vw - 48px), calc(100vh - 140px));
	max-width: none;
	max-height: calc(100vh - 140px);
}

.titania360-viewer.is-dragging .titania360-stage {
	cursor: grabbing;
}

.titania360-canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.titania360-loading {
	position: absolute;
	inset: 0;
	display: grid;
	gap: 8px;
	place-content: center;
	place-items: center;
	padding: 16px;
	background: rgba(17, 20, 24, 0.72);
	color: #ffffff;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
	pointer-events: none;
	z-index: 2;
}

.titania360-viewer.is-ready .titania360-loading {
	display: none;
}

.single-product.titania360-single-active .titania360-product-gallery {
	float: left;
	clear: none;
	width: 48%;
	max-width: 600px;
	margin-bottom: 2em;
	opacity: 1;
}

.single-product.titania360-single-active .summary.entry-summary {
	float: right;
	clear: none;
	width: 48%;
}

.single-product.titania360-single-active .titania360-single-product-viewer {
	width: 100%;
}

.single-product.titania360-single-active .titania360-single-product-viewer .titania360-viewer {
	max-width: 100%;
	margin: 0;
}

.single-product.titania360-single-active .titania360-single-product-viewer .titania360-stage {
	width: 100%;
	max-width: none;
	max-height: none;
	aspect-ratio: 1 / 1;
}

@media (max-width: 768px) {
	.single-product.titania360-single-active .titania360-product-gallery,
	.single-product.titania360-single-active .summary.entry-summary {
		float: none;
		clear: both;
		width: 100%;
		max-width: none;
	}
}

.titania360-viewer--compact {
	max-width: 100%;
	margin: 0;
}

.titania360-viewer--compact .titania360-stage {
	width: 100%;
	max-width: none;
	max-height: none;
	min-height: 0;
	border-radius: inherit;
	cursor: default;
}

.titania360-viewer--compact .titania360-controls {
	display: none;
}

.titania360-viewer--compact .titania360-loading {
	font-size: 12px;
	background: rgba(17, 20, 24, 0.48);
}

.titania360-viewer--compact.is-dragging .titania360-stage {
	cursor: grabbing;
}

.titania360-loading-progress {
	min-width: 44px;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	font-variant-numeric: tabular-nums;
}

.titania360-controls {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	justify-content: center;
	width: max-content;
	max-width: calc(100% - 24px);
	margin: -52px auto 0;
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 999px;
	background: rgba(120, 120, 120, 0.35);
	box-shadow: 0 10px 28px rgba(17, 20, 24, 0.18);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	z-index: 30;
	pointer-events: auto;
	isolation: isolate;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 240ms ease, transform 240ms ease;
}

.titania360-viewer.controls-visible .titania360-controls,
.titania360-viewer.is-dragging .titania360-controls,
.titania360-controls:focus-within {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.titania360-viewer.controls-hidden .titania360-controls {
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
}

.titania360-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	min-width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #606060;
	color: #ffffff;
	font: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.titania360-button:hover,
.titania360-button:focus-visible {
	background: #505050;
	color: #ffffff;
	outline: none;
}

.titania360-button:focus-visible,
.titania360-speed-button:focus-visible {
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75);
}

.titania360-button:disabled,
.titania360-speed-button:disabled,
.titania360-controls.is-disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.titania360-speed {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #606060;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.titania360-speed-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 40px;
	padding: 0;
	border: 0;
	background: #606060;
	color: #ffffff;
	font: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.titania360-speed-button:first-child {
	border-radius: 999px 0 0 999px;
}

.titania360-speed-button:last-child {
	border-radius: 0 999px 999px 0;
}

.titania360-speed-button:hover,
.titania360-speed-button:focus-visible {
	background: #505050;
	outline: none;
}

.titania360-speed-value {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 40px;
	padding: 0 6px;
	background: #606060;
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.titania360-icon {
	display: block;
	width: 16px;
	height: 16px;
	fill: currentColor;
	pointer-events: none;
}

.titania360-loop-viewer {
	position: relative;
	z-index: 2;
}

.titania360-error {
	padding: 12px;
	border-left: 4px solid #d63638;
	background: #fff5f5;
}

@media (max-width: 640px) {
	.titania360-viewer {
		max-width: 100%;
		margin: 16px auto;
	}

	.titania360-stage {
		aspect-ratio: 1 / 1;
		width: 100%;
		max-width: 100%;
		max-height: none;
		min-height: 220px;
	}

	.titania360-controls {
		gap: 5px;
		justify-content: center;
		max-width: calc(100% - 16px);
		margin-top: -48px;
		padding: 5px;
	}

	.titania360-button {
		width: 36px;
		min-width: 36px;
		height: 36px;
		font-size: 16px;
	}

	.titania360-speed {
		height: 36px;
	}

	.titania360-speed-button {
		width: 28px;
		height: 36px;
	}

	.titania360-speed-value {
		min-width: 30px;
		height: 36px;
		padding: 0 4px;
		font-size: 12px;
	}
}
