/* Aviso de cookies. Colores fijos para que funcione en cualquier página (también las que no usan las plantillas del tema). */
.mpm-consent {
	position: fixed;
	left: 1rem;
	bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
	z-index: 9999;
	max-width: 30rem;
	padding: 1.15rem 1.25rem;
	border: 2px solid #1e1527;
	border-radius: 18px;
	background: #ffffff;
	color: #1e1527;
	box-shadow: 6px 6px 0 #38195a;
	font-size: .95rem;
	line-height: 1.5;
	animation: mpm-consent-in .3s ease-out both;
}

.mpm-consent__text {
	margin: 0 0 1rem;
}

.mpm-consent__text a {
	color: #1e1527;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: #ff5722;
	text-decoration-thickness: 2px;
	text-underline-offset: .2em;
}

.mpm-consent__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .6rem;
}

/* Aceptar y Rechazar con el mismo peso visual, como exige la AEPD. */
.mpm-consent__btn {
	min-height: 46px;
	padding: .6em 1em;
	border: 2px solid #1e1527;
	border-radius: 999px;
	background: #ffffff;
	color: #1e1527;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.mpm-consent__btn:hover {
	background: #f4f2ea;
}

.mpm-consent__btn:focus-visible,
.mpm-consent__text a:focus-visible {
	outline: 3px solid #1e1527;
	outline-offset: 3px;
}

@media (max-width: 560px) {
	.mpm-consent {
		left: .75rem;
		right: .75rem;
		bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
		max-width: none;
		box-shadow: 4px 4px 0 #38195a;
	}
}

@keyframes mpm-consent-in {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.mpm-consent { animation: none; }
}

/* Botón «Configurar cookies» del pie (parece un enlace). */
.mpm-cookie-settings {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.mpm-cookie-settings:hover {
	text-decoration: underline;
}
