.devf-3d-viewer-wrap {
	position: relative;
	width: 100%;
	min-height: 220px;
}

.devf-3d-model-viewer {
	width: 100%;
	height: 100%;
	display: block;
	background: #f4f4f4;
	border-radius: 8px;
}

.devf-3d-action-button,
.devf-3d-fullscreen-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px 12px;
	border: 0;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	box-sizing: border-box;
	text-decoration: none;
	background: #111111;
	color: #ffffff;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.devf-3d-fullscreen-button {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 2;
}

.devf-3d-action-button:hover,
.devf-3d-fullscreen-button:hover {
	opacity: 0.9;
	text-decoration: none;
}

.devf-3d-action-button:focus,
.devf-3d-action-button:active,
.devf-3d-fullscreen-button:focus,
.devf-3d-fullscreen-button:active {
	outline: 0;
	box-shadow: none;
}

.devf-3d-lightbox-trigger {
	-webkit-appearance: none;
	appearance: none;
}

.devf-3d-lightbox-trigger .devf-3d-btn-text {
	display: inline-block;
	color: inherit;
	font: inherit;
	line-height: inherit;
}

.devf-3d-btn-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	color: inherit;
}

.devf-3d-lightbox-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	box-sizing: border-box;
	width: 100vw;
	height: 100vh;
	padding: 24px;
	overflow-x: hidden;
	overflow-y: auto;
}

.devf-3d-lightbox-modal,
.devf-3d-lightbox-modal * {
	box-sizing: border-box;
}

.devf-3d-lightbox-modal.is-open {
	display: flex;
	align-items: center;
	justify-content: center;
}

.devf-3d-lightbox-backdrop {
	position: fixed;
	inset: 0;
	z-index: 0;
	background: rgba(0, 0, 0, 0.5);
}

.devf-3d-lightbox-dialog {
	position: relative;
	z-index: 1;
	width: min(96vw, 1140px);
	max-width: 100%;
	max-height: calc(100vh - 48px);
	margin: auto;
	outline: 0;
}

.devf-3d-lightbox-content {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-height: calc(100vh - 48px);
	overflow: hidden;
	background: #ffffff;
	border-radius: 10px;
}

.devf-3d-lightbox-header {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 16px 16px 0;
}

.devf-3d-lightbox-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	outline: 0;
	box-shadow: none;
	background: transparent;
	color: #111111;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.devf-3d-lightbox-x::before {
	content: "\00d7";
}

.devf-3d-lightbox-body {
	flex: 1 1 auto;
	min-height: 0;
	padding: 16px;
	overflow: auto;
}

.devf-3d-lightbox-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 0 16px 16px;
}

.devf-3d-lightbox-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 88px;
	padding: 6px 12px;
	border: 1px solid #6c757d;
	border-radius: 4px;
	outline: 0;
	box-shadow: none;
	background: #6c757d;
	color: #ffffff;
	font-size: 14px;
	line-height: 1.5;
	cursor: pointer;
}

.devf-3d-lightbox-open {
	overflow: hidden;
}

@media (max-width: 767px) {
	.devf-3d-lightbox-trigger {
		width: 100%;
		max-width: 100%;
		min-height: 48px;
		padding: 12px 16px;
		white-space: normal;
	}

	.devf-3d-lightbox-modal {
		padding: 10px;
	}

	.devf-3d-lightbox-dialog,
	.devf-3d-lightbox-content {
		max-height: calc(100vh - 20px);
	}
}

.devf-3d-btn-icon {
	display: inline-flex;
	line-height: 1;
	align-items: center;
	justify-content: center;
}

.devf-3d-btn-icon i {
	display: inline-flex;
	line-height: 1;
}

.devf-3d-btn-icon svg {
	display: block;
	width: 1em;
	height: 1em;
}

.devf-3d-placeholder {
	width: 100%;
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: #fafafa;
	border: 1px dashed #d0d0d0;
	border-radius: 8px;
	color: #505050;
	font-size: 14px;
	text-align: center;
}
