/* Lanzador compacto del buscador de compatibilidad en fichas de producto. */
.cspm-modal-launch {
	margin: 18px 0;
}

.cspm-modal-launch .cspm-modal-launch__button {
	background: #a54100;
	border: 1px solid #a54100;
	border-radius: 8px;
	box-sizing: border-box;
	color: #fff;
	cursor: pointer;
	display: block;
	font-size: 15px;
	line-height: 1.3;
	min-height: 44px;
	padding: 11px 16px;
	text-align: center;
	text-decoration: none;
	width: 100%;
}

.cspm-modal-launch .cspm-modal-launch__button:hover,
.cspm-modal-launch .cspm-modal-launch__button:focus-visible {
	background: #733000;
	border-color: #733000;
	color: #fff;
}

.cspm-modal-launch .cspm-modal-launch__button:focus-visible {
	outline: 3px solid #123f56;
	outline-offset: 3px;
}

/* Modal con iframe del buscador (modo embed). */
html.cspm-modal-open,
html.cspm-modal-open body {
	overflow: hidden;
}

.cspm-modal-overlay {
	align-items: center;
	background: rgba(18, 63, 86, 0.62);
	display: none;
	inset: 0;
	justify-content: center;
	padding: 20px;
	position: fixed;
	z-index: 999999;
}

.cspm-modal-overlay.is-open {
	display: flex;
}

.cspm-modal-box {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
	display: flex;
	flex-direction: column;
	height: min(900px, 100%);
	overflow: hidden;
	width: min(1080px, 100%);
}

.cspm-modal-header {
	align-items: center;
	border-bottom: 1px solid #d8e2e8;
	display: flex;
	gap: 12px;
	justify-content: space-between;
	padding: 10px 16px;
}

.cspm-modal-title {
	color: #123f56;
	font-size: 16px;
}

.cspm-modal-close {
	background: transparent;
	border: 0;
	color: #123f56;
	cursor: pointer;
	font-size: 28px;
	height: 40px;
	line-height: 1;
	padding: 0;
	width: 40px;
}

.cspm-modal-close:hover,
.cspm-modal-close:focus-visible {
	color: #a54100;
}

.cspm-modal-frame {
	border: 0;
	flex: 1;
	width: 100%;
}

@media (max-width: 680px) {
	.cspm-modal-overlay {
		padding: 0;
	}

	.cspm-modal-box {
		border-radius: 0;
		height: 100%;
		width: 100%;
	}
}
