/* =====================================================
   MP Product Customizer · Botón «Ver en 3D» (galería)
   ===================================================== */

.mp-pc-gallery3d {
	margin: 10px 0;
	text-align: center;
}

.mp-pc-gallery3d__teaser {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	color: #1c1917;
}

.mp-pc-gallery3d__open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #1c1917;
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 10px 22px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: transform .2s, background .2s;
}

.mp-pc-gallery3d__open:hover {
	background: #e8281a;
	transform: translateY(-1px);
}

.mp-pc-gallery3d__modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mp-pc-gallery3d__modal[hidden] {
	display: none;
}

.mp-pc-gallery3d__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 18, 17, .82);
}

.mp-pc-gallery3d__box {
	position: relative;
	width: min(92vw, 780px);
	height: min(92vw, 780px);
	max-height: 92vh;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.mp-pc-gallery3d__host {
	flex: 1;
	min-height: 0;
	touch-action: none;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	-webkit-user-drag: none;
}

.mp-pc-gallery3d__host canvas {
	display: block;
	width: 100%;
	height: 100%;
}

.mp-pc-gallery3d__host canvas {
	display: block;
}

.mp-pc-gallery3d__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: rgba(28, 25, 23, .7);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.mp-pc-gallery3d__hint {
	margin: 0;
	padding: 8px 12px;
	text-align: center;
	font-size: 12px;
	color: #78716c;
	background: #fafaf9;
	border-top: 1px solid #f0efee;
}
