#ebdlt-simulador-cintas {
	--color-exterior: #18a6ad;
	--color-interior: #ef6b32;
	--color-cinta-1: #18a6ad;
	--color-cinta-2: #ef6b32;
	margin: 0 0 28px;
	padding: 22px;
	border: 1px solid rgba(92, 42, 50, .2);
	border-radius: 16px;
	background: linear-gradient(145deg, #fffaf2, #f7ead7);
	box-shadow: 0 12px 30px rgba(74, 36, 30, .1);
	color: #5c2a32;
}

/* Evita desplazamiento horizontal provocado por elementos anchos de Divi. */
html,
body.single-product.postid-318,
body.single-product.postid-318 #page-container {
	max-width: 100%;
	overflow-x: clip;
}

.ebdlt-simulador__cabecera { text-align: center; }
.ebdlt-simulador__cabecera h2 { margin: 2px 0 6px; color: #5c2a32; font-size: clamp(22px, 3vw, 30px); }
.ebdlt-simulador__cabecera p { margin: 0 auto 14px; max-width: 620px; }
.ebdlt-simulador__eyebrow { color: #a97727; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.ebdlt-simulador__escenario {
	position: relative;
	width: min(100%, 420px);
	aspect-ratio: 2 / 3;
	margin: 14px auto;
	overflow: hidden;
	border-radius: 14px;
	background:
		radial-gradient(circle at 50% 20%, rgba(221, 182, 113, .22), transparent 38%),
		linear-gradient(180deg, #fffdf8, #f1dfc3);
	box-shadow: inset 0 0 0 1px rgba(92, 42, 50, .12);
	isolation: isolate;
}

.ebdlt-simulador__producto { position: absolute; inset: 0; }

.ebdlt-simulador__roseton {
	position: absolute;
	z-index: 4;
	top: 3%;
	left: 50%;
	width: 48%;
	aspect-ratio: 1;
	transform: translateX(-50%);
	transition: width .25s ease, top .25s ease;
}

.ebdlt-simulador__roseton-base,
.ebdlt-simulador__color { position: absolute; inset: 0; width: 100%; height: 100%; }
.ebdlt-simulador__roseton-base { z-index: 1; object-fit: contain; }

.ebdlt-simulador__color {
	z-index: 2;
	background: currentColor;
	-webkit-mask-image: var(--mascara);
	mask-image: var(--mascara);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-position: center;
	mask-position: center;
	mix-blend-mode: color;
	pointer-events: none;
}

.ebdlt-simulador__color--exterior { color: var(--color-exterior); }
.ebdlt-simulador__color--interior { color: var(--color-interior); inset: 10.5%; width: 79%; height: 79%; }

.ebdlt-simulador__cintas { position: absolute; inset: 0; z-index: 2; transition: opacity .2s ease; }
.ebdlt-simulador__cinta {
	position: absolute;
	top: 17%;
	width: 14%;
	height: 76%;
	clip-path: polygon(0 0, 100% 0, 100% 94%, 50% 100%, 0 94%);
	box-shadow: inset 2px 0 rgba(255,255,255,.25), inset -2px 0 rgba(70,30,20,.2);
}

.ebdlt-simulador__cinta::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--textura);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 760% 100%;
	mix-blend-mode: luminosity;
	opacity: .52;
}

.ebdlt-simulador__cinta--1 { left: 34%; background-color: var(--color-cinta-1); transform: rotate(.6deg); }
.ebdlt-simulador__cinta--2 { right: 34%; background-color: var(--color-cinta-2); transform: rotate(-.6deg); }

.ebdlt-simulador__texto {
	position: absolute;
	z-index: 3;
	top: 48%;
	left: 50%;
	display: block;
	width: 480%;
	transform: translate(-50%, -50%) rotate(90deg);
	color: #f7ddb0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(11px, 2.3vw, 18px);
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-shadow: 0 1px 1px #472319, 0 0 2px rgba(71,35,25,.55);
	white-space: nowrap;
	filter: none;
}

.ebdlt-simulador__escenario.is-solo-roseton .ebdlt-simulador__cintas { opacity: 0; visibility: hidden; }
.ebdlt-simulador__escenario.is-solo-roseton .ebdlt-simulador__roseton { top: 18%; width: 72%; }

.ebdlt-simulador__seleccion { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 12px; }
.ebdlt-simulador__seleccion span { padding: 5px 9px; border-radius: 999px; background: rgba(92,42,50,.08); font-size: 12px; }
.ebdlt-simulador__aviso { margin: 12px 0 0; color: #765e55; font-size: 12px; text-align: center; }

/* Paletas PPOM compactas: muestran solo la selección hasta que se pulsa. */
.ebdlt-paleta-compacta .ebdlt-paleta-boton {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 8px 0 0;
	padding: 9px 12px;
	border: 1px solid rgba(92, 42, 50, .28);
	border-radius: 10px;
	background: #fffaf2;
	color: #5c2a32;
	cursor: pointer;
	text-align: left;
}

.ebdlt-paleta-compacta .ebdlt-paleta-boton:hover,
.ebdlt-paleta-compacta .ebdlt-paleta-boton:focus-visible {
	border-color: #8b4c56;
	box-shadow: 0 0 0 3px rgba(139, 76, 86, .12);
}

.ebdlt-paleta-muestra {
	width: 36px;
	height: 36px;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(92, 42, 50, .28);
	background-image: linear-gradient(135deg, #eee 25%, transparent 25%, transparent 75%, #eee 75%);
	background-size: 10px 10px;
}

.ebdlt-paleta-valor { min-width: 0; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ebdlt-paleta-accion { color: #8b4c56; font-size: 13px; font-weight: 700; }
.ebdlt-paleta-accion::after { content: " ▾"; }
.ebdlt-paleta-compacta.is-open .ebdlt-paleta-accion::after { content: " ▴"; }

.ebdlt-paleta-compacta .ppom-palettes {
	display: none !important;
	max-height: 330px;
	margin-top: 10px;
	padding: 10px;
	overflow-y: auto;
	border: 1px solid rgba(92, 42, 50, .18);
	border-radius: 10px;
	background: #fff;
}

.ebdlt-paleta-compacta.is-open .ppom-palettes { display: flex !important; flex-wrap: wrap; gap: 4px; }

@media (max-width: 767px) {
	body.single-product.postid-318 .woocommerce-product-gallery,
	body.single-product.postid-318 .woocommerce-product-gallery__wrapper {
		max-width: 100%;
		overflow: hidden !important;
	}

	body.single-product.postid-318 .et-l--header,
	body.single-product.postid-318 .et-l--header .et_builder_inner_content,
	body.single-product.postid-318 .et-l--header .et_pb_section {
		max-width: 100%;
		overflow-x: clip;
	}

	#ebdlt-simulador-cintas { padding: 14px; border-radius: 12px; }
	.ebdlt-simulador__escenario { width: min(100%, 340px); }
	.ebdlt-simulador__seleccion { justify-content: flex-start; }
	.ebdlt-paleta-compacta .ebdlt-paleta-boton { grid-template-columns: 36px minmax(0, 1fr); }
	.ebdlt-paleta-accion { grid-column: 2; }
	.ebdlt-paleta-compacta .ppom-palettes { max-height: 280px; }
}
