#btm-3d-preview-wrapper.btm-3d-model-preview-wrapper {
	position: absolute;
	top: 5px;
	right: 5px;
	width: 230px;
	height: 230px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	background: rgba(255, 255, 255, 0.96);
	border-radius: 8px;
	box-shadow: 0 2px 8px 0 #65656533;
	overflow: hidden;
	z-index: 20;
}

.btm-section-model3d,
.btm-3d-model-dock {
	min-width: 0;
}

#btm-app-layout[data-mode="desktop"] .btm-section-model3d,
#btm-app-layout[data-mode="desktop"] .btm-3d-model-dock {
	width: 100%;
}

#btm-app-layout[data-mode="desktop"] #btm-3d-preview-wrapper.btm-3d-model-preview-wrapper {
	position: relative;
	top: auto;
	right: auto;
	box-sizing: border-box;
	width: 100%;
	height: 320px;
	box-shadow: 0 2px 8px 0 #65656533;
}

.btm-3d-model-origin {
	display: none;
}

html.btm-3d-model-modal-open #btm-app-layout[data-mode="desktop"] .btm-3d-model-origin {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	box-sizing: border-box;
	width: 100%;
	height: 320px;
	background: linear-gradient(220deg, #eef2f4 0%, #f8fafb 100%);
	border-radius: 8px;
	box-shadow: 0 2px 8px 0 #65656533;
	color: #697780;
}

.btm-3d-model-origin-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
}

.btm-3d-model-origin-icon svg {
	display: block;
	width: 35px;
	height: 35px;
}

.btm-3d-model-origin-label {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
}

#btm-app-layout[data-mode="mobile"] #btm-3d-preview-wrapper.btm-3d-model-preview-wrapper {
	top: 21px;
}

.btm-3d-model-viewer {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
	background: linear-gradient(220deg, #eef2f4 0%, #f8fafb 100%);
}

.btm-3d-model-visibility-toggle {
	display: none;
}

#btm-app-layout[data-mode="twoColumn"] .btm-3d-model-visibility-toggle,
#btm-app-layout[data-mode="mobile"] .btm-3d-model-visibility-toggle {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 56px;
	height: auto;
	padding: 6px 9px;
	border: 1px solid #b8b8b854;
	border-radius: 20px;
	background: rgba(248, 248, 248, 0.92);
	box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
	color: #222;
	font-family: inherit;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#btm-app-layout[data-mode="twoColumn"] .btm-3d-model-visibility-toggle:hover,
#btm-app-layout[data-mode="twoColumn"] .btm-3d-model-visibility-toggle:focus-visible,
#btm-app-layout[data-mode="mobile"] .btm-3d-model-visibility-toggle:hover,
#btm-app-layout[data-mode="mobile"] .btm-3d-model-visibility-toggle:focus-visible {
	background: rgba(248, 248, 248, 0.92);
	border-color: #b8b8b854;
	box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
	color: #3c3c3c;
}

#btm-app-layout[data-mode="twoColumn"] .btm-3d-model-rotate-icon,
#btm-app-layout[data-mode="mobile"] .btm-3d-model-rotate-icon {
	display: none;
}

#btm-app-layout[data-mode="twoColumn"] #btm-3d-preview-wrapper.is-viewer-hidden,
#btm-app-layout[data-mode="mobile"] #btm-3d-preview-wrapper.is-viewer-hidden {
	background: transparent;
	border: 0;
	box-shadow: none;
	pointer-events: none;
}

#btm-app-layout[data-mode="twoColumn"] #btm-3d-preview-wrapper.is-viewer-hidden .btm-3d-model-viewer,
#btm-app-layout[data-mode="twoColumn"] #btm-3d-preview-wrapper.is-viewer-hidden .btm-3d-model-fold-control,
#btm-app-layout[data-mode="mobile"] #btm-3d-preview-wrapper.is-viewer-hidden .btm-3d-model-viewer,
#btm-app-layout[data-mode="mobile"] #btm-3d-preview-wrapper.is-viewer-hidden .btm-3d-model-fold-control {
	display: none;
}

#btm-app-layout[data-mode="twoColumn"] #btm-3d-preview-wrapper.is-viewer-hidden .btm-3d-model-visibility-toggle,
#btm-app-layout[data-mode="mobile"] #btm-3d-preview-wrapper.is-viewer-hidden .btm-3d-model-visibility-toggle {
	pointer-events: auto;
}

.btm-3d-model-rotate-icon {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: #4f565b;
	pointer-events: none;
}

.btm-3d-model-rotate-icon svg {
	display: block;
	width: 26px;
	height: 26px;
}

.btm-3d-model-scale-icon {
	position: absolute;
	bottom: 13px;
	right: 13px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #5f5e5e;
	line-height: 0;
	cursor: pointer;
}

.btm-3d-model-scale-icon svg {
	display: block;
	width: 20px;
	height: 20px;
}

.btm-3d-model-scale-icon:hover,
.btm-3d-model-scale-icon:focus-visible {
	background: transparent;
	box-shadow: none;
	color: #3f3e3e;
}

.btm-3d-model-scale-icon:focus-visible {
	outline: 2px solid rgba(23, 113, 161, 0.7);
	outline-offset: 3px;
}

.btm-3d-model-dimensions {
	position: absolute;
	bottom: 10px;
	left: 10px;
	z-index: 3;
	display: none;
	max-width: calc(100% - 56px);
	padding: 6px 7px;
	border-radius: 4px;
	background: rgb(255 255 255 / 53%);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.07);
	color: #60666b;
	font-family: inherit;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	pointer-events: none;
}

.btm-3d-model-viewer[data-state="ready"] .btm-3d-model-dimensions:not(:empty) {
	display: block;
}

html.btm-3d-model-modal-open {
	overflow: hidden;
}

.btm-3d-model-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	box-sizing: border-box;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.btm-3d-model-modal-overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.btm-3d-model-modal {
	position: relative;
	display: flex;
	box-sizing: border-box;
	width: min(780px, calc(100vw - 48px), calc(100dvh - 48px));
	height: auto;
	aspect-ratio: 1 / 1;
	min-height: 0;
	padding: 0;
	background: transparent;
	border-radius: 8px;
	box-shadow: none;
}

.btm-3d-model-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid #b8b8b854;
	border-radius: 50%;
	background: rgba(248, 248, 248, 0.92);
	box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
	color: #333;
	cursor: pointer;
}

.btm-3d-model-modal-close-icon {
	position: relative;
	display: block;
	width: 14px;
	height: 14px;
}

.btm-3d-model-modal-close-icon::before,
.btm-3d-model-modal-close-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 2px;
	background: currentColor;
	border-radius: 999px;
}

.btm-3d-model-modal-close-icon::before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.btm-3d-model-modal-close-icon::after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.btm-3d-model-modal-close:hover,
.btm-3d-model-modal-close:focus-visible {
	background: #ededed;
	border-color: #b8b8b854;
	box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
	color: #222;
}

.btm-3d-model-modal-mount {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
}

.btm-3d-model-modal-overlay #btm-3d-preview-wrapper.btm-3d-model-preview-wrapper {
	position: relative;
	top: auto;
	right: auto;
	z-index: 1;
	display: flex;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	border-radius: 8px;
	box-shadow: 0 2px 8px 0 #65656533;
	overflow: hidden;
}

.btm-3d-model-modal-overlay .btm-3d-model-visibility-toggle,
.btm-3d-model-modal-overlay .btm-3d-model-scale-icon {
	display: none !important;
}

.btm-3d-model-modal-overlay .btm-3d-model-rotate-icon {
	display: none;
}

@media (min-width: 601px) and (max-width: 900px) {
	.btm-3d-model-modal {
		width: min(720px, calc(100vw - 48px), calc(100dvh - 48px));
		height: auto;
	}
}

@media (max-width: 600px) {
	.btm-3d-model-modal-overlay {
		padding: 12px;
	}

	.btm-3d-model-modal {
		width: min(calc(100vw - 24px), calc((100dvh - 24px) / 1.15));
		height: auto;
		aspect-ratio: 1 / 1.15;
		padding: 0;
		border-radius: 8px;
	}
}

.btm-3d-model-fold-control {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 8px;
	box-sizing: border-box;
	width: 100%;
	padding: 6px 10px;
	background: rgba(255, 255, 255, 0.96);
	border-top: 1px solid #e2e2e2;
	color: #555;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
}

#btm-3d-preview-wrapper .btm-3d-model-fold-slider {
	-webkit-appearance: none;
	appearance: none;
	flex: 1 1 auto;
	width: auto;
	height: 16px;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	accent-color: #0073e6;
	cursor: ew-resize;
}

#btm-3d-preview-wrapper .btm-3d-model-fold-slider::-webkit-slider-runnable-track {
	height: 3px;
	background: #9aa5ac;
	border: 0;
	border-radius: 999px !important;
}

#btm-3d-preview-wrapper .btm-3d-model-fold-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 14px;
	height: 14px;
	margin-top: -5.5px;
	background: #0073e6;
	border: 0;
	border-radius: 50%;
}

#btm-3d-preview-wrapper .btm-3d-model-fold-slider::-moz-range-track {
	height: 3px;
	background: #9aa5ac;
	border: 0;
	border-radius: 999px !important;
}

#btm-3d-preview-wrapper .btm-3d-model-fold-slider::-moz-range-progress {
	height: 3px;
	background: #0073e6;
	border-radius: 999px !important;
}

#btm-3d-preview-wrapper .btm-3d-model-fold-slider::-moz-range-thumb {
	width: 14px;
	height: 14px;
	background: #0073e6;
	border: 0;
	border-radius: 50%;
}

#btm-3d-preview-wrapper .btm-3d-model-fold-slider:focus,
#btm-3d-preview-wrapper .btm-3d-model-fold-slider:focus-visible {
	border: 0;
	box-shadow: none;
	outline-offset: 2px;
}

#btm-3d-preview-wrapper .btm-3d-model-fold-slider:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.btm-3d-model-modal-overlay .btm-3d-model-fold-control {
	justify-content: center;
	gap: 12px;
	min-height: 52px;
	padding: 10px 20px;
	font-size: 13px;
}

.btm-3d-model-modal-overlay #btm-3d-preview-wrapper .btm-3d-model-fold-slider {
	flex: 0 1 420px;
	width: min(55vw, 420px);
	max-width: 420px;
	height: 20px;
}

.btm-3d-model-modal-overlay #btm-3d-preview-wrapper .btm-3d-model-fold-slider::-webkit-slider-runnable-track,
.btm-3d-model-modal-overlay #btm-3d-preview-wrapper .btm-3d-model-fold-slider::-moz-range-track,
.btm-3d-model-modal-overlay #btm-3d-preview-wrapper .btm-3d-model-fold-slider::-moz-range-progress {
	height: 4px;
}

.btm-3d-model-modal-overlay #btm-3d-preview-wrapper .btm-3d-model-fold-slider::-webkit-slider-thumb {
	width: 16px;
	height: 16px;
	margin-top: -6px;
}

.btm-3d-model-modal-overlay #btm-3d-preview-wrapper .btm-3d-model-fold-slider::-moz-range-thumb {
	width: 16px;
	height: 16px;
}

@media (min-width: 601px) and (max-width: 900px) {
	.btm-3d-model-modal-overlay #btm-3d-preview-wrapper .btm-3d-model-fold-slider {
		flex-basis: 360px;
		width: min(55vw, 360px);
		max-width: 360px;
	}
}

@media (max-width: 600px) {
	.btm-3d-model-modal-overlay .btm-3d-model-fold-control {
		gap: 8px;
		min-height: 50px;
		padding: 9px 12px;
		font-size: 12px;
	}

	.btm-3d-model-modal-overlay #btm-3d-preview-wrapper .btm-3d-model-fold-slider {
		flex: 1 1 auto;
		width: auto;
		max-width: none;
		height: 22px;
	}

	.btm-3d-model-modal-overlay #btm-3d-preview-wrapper .btm-3d-model-fold-slider::-webkit-slider-thumb {
		width: 18px;
		height: 18px;
		margin-top: -7px;
	}

	.btm-3d-model-modal-overlay #btm-3d-preview-wrapper .btm-3d-model-fold-slider::-moz-range-thumb {
		width: 18px;
		height: 18px;
	}
}

.btm-3d-model-canvas {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	touch-action: none;
}

.btm-3d-model-viewer[data-state="ready"] .btm-3d-model-empty-state {
	display: none;
}

.btm-3d-model-viewer[data-state="error"] .btm-3d-model-empty-state {
	border-color: rgba(176, 45, 45, 0.25);
	color: #a52f2f;
}

.btm-3d-model-empty-state {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	padding: 7px 10px;
	border: 1px solid rgba(90, 100, 110, 0.2);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.82);
	color: #66717a;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	white-space: nowrap;
	pointer-events: none;
}

@media (min-width: 901px) and (max-width: 1200px) {
	.btm-3d-model-rotate-icon {
		top: 10px;
		right: 10px;
		width: 32px;
		height: 32px;
	}

	.btm-3d-model-rotate-icon svg {
		width: 28px;
		height: 28px;
	}

	.btm-3d-model-scale-icon {
		bottom: 13px;
		right: 13px;
		width: 20px;
		height: 20px;
	}

	.btm-3d-model-scale-icon svg {
		width: 20px;
		height: 20px;
	}
}

@media (min-width: 1201px) {
	.btm-3d-model-rotate-icon {
		top: 10px;
		right: 10px;
		width: 39px;
		height: 39px;
	}

	.btm-3d-model-rotate-icon svg {
		width: 35px;
		height: 35px;
	}

	.btm-3d-model-scale-icon {
		bottom: 13px;
		right: 13px;
		width: 20px;
		height: 20px;
	}

	.btm-3d-model-scale-icon svg {
		width: 20px;
		height: 20px;
	}
}

@media (max-width: 600px) {
	#btm-3d-preview-wrapper.btm-3d-model-preview-wrapper {
		width: 160px;
		height: 150px;
	}

	.btm-3d-model-rotate-icon {
		top: 10px;
		right: 10px;
		width: 26px;
		height: 26px;
	}

	.btm-3d-model-rotate-icon svg {
		width: 22px;
		height: 22px;
	}

	.btm-3d-model-scale-icon {
		bottom: 13px;
		right: 13px;
		width: 18px;
		height: 18px;
	}

	.btm-3d-model-scale-icon svg {
		width: 18px;
		height: 18px;
	}

	.btm-3d-model-fold-control {
		gap: 4px;
		padding: 5px 8px;
		font-size: 9px;
	}

	#btm-3d-preview-wrapper .btm-3d-model-fold-slider::-webkit-slider-thumb {
		width: 12px;
		height: 12px;
		margin-top: -4.5px;
	}

	#btm-3d-preview-wrapper .btm-3d-model-fold-slider::-moz-range-thumb {
		width: 12px;
		height: 12px;
	}

	.btm-3d-model-empty-state {
		max-width: calc(100% - 16px);
		font-size: 10px;
		white-space: normal;
	}

	.btm-3d-model-viewer[data-state="ready"] .btm-3d-model-dimensions:not(:empty) {
		display: none;
	}

	.btm-3d-model-modal-overlay .btm-3d-model-viewer[data-state="ready"] .btm-3d-model-dimensions:not(:empty) {
		display: block;
	}
}
