.stl-viewer {
	margin: 0 0 1.5em;
}

.stl-viewer__stage {
	position: relative;
	width: 100%;
	height: var(--stl-height, 400px);
	background: var(--stl-bg, #f4f5f7);
	border-radius: 8px;
	overflow: hidden;
	cursor: grab;
	touch-action: pan-y;
}

.stl-viewer__stage.is-active {
	touch-action: none;
}

.stl-viewer__stage:active {
	cursor: grabbing;
}

.stl-viewer__stage:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

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

.stl-viewer__status {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	font-size: 14px;
	color: #666;
}

.stl-viewer__hint {
	position: absolute;
	left: 50%;
	bottom: 12px;
	transform: translateX(-50%);
	padding: 4px 10px;
	font-size: 12px;
	line-height: 1.4;
	white-space: nowrap;
	color: #fff;
	background: rgba(0, 0, 0, 0.55);
	border-radius: 999px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s;
}

.stl-viewer__stage.is-loaded:not(.is-active) .stl-viewer__hint {
	opacity: 1;
}

.stl-viewer__reset {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	padding: 0;
	font-size: 18px;
	line-height: 32px;
	color: #333;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 50%;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s;
}

.stl-viewer__stage.is-loaded:hover .stl-viewer__reset,
.stl-viewer__reset:focus-visible {
	opacity: 1;
}

.stl-viewer figcaption {
	margin-top: 0.5em;
	font-size: 0.9em;
	text-align: center;
	opacity: 0.75;
}
