/*
 * Estilos del botón y modal del simulador Meister.
 * Pensado para encajar "en línea" junto a Añadir al carrito, favoritos,
 * comparar, etc. Ajusta colores/tamaños al tema.
 */

.msi-simulator-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 40px;
	margin-left: 8px;
	padding: 0 16px;
	background: #f2f2f2;
	color: #484848;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	cursor: pointer;
	vertical-align: middle;
	line-height: 1;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.msi-simulator-button svg {
	flex-shrink: 0;
}

.msi-simulator-button-text {
	display: inline-block;
}

.msi-simulator-button:hover,
.msi-simulator-button:focus {
	background: #e2e2e2;
	color: #81c302;
}

.msi-popup-wrapper {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba( 0, 0, 0, 0.6 );
	z-index: 99999;
}

.msi-popup-wrapper.is-open {
	display: block;
}

.msi-popup {
	position: relative;
	width: 100%;
	max-width: 100vw;
	height: 100%;
	max-height: 100vh;
	margin: 0 auto;
	background: #fff;
}

.msi-popup-content,
.msi-popup-content iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.msi-popup-close {
	position: absolute;
	top: 8px;
	right: 12px;
	z-index: 2;
	width: 40px;
	height: 40px;
	line-height: 1;
	font-size: 1.8rem;
	background: #fff;
	color: #000;
	border: 0;
	border-radius: 6px;
	box-shadow: 1px 1px 4px rgba( 0, 0, 0, 0.2 );
	cursor: pointer;
}
