/* JM Consent — hereda colores, tipografía y espaciado del theme.json (presets estándar con fallback). */
.jm-consent {
	position: fixed;
	z-index: 99999;
	inset: auto var(--wp--preset--spacing--30, 1rem) var(--wp--preset--spacing--30, 1rem);
	max-width: 44rem;
	margin-inline: auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--wp--preset--spacing--20, 0.75rem) var(--wp--preset--spacing--30, 1.25rem);
	padding: var(--wp--preset--spacing--30, 1rem) var(--wp--preset--spacing--40, 1.5rem);
	background: var(--wp--preset--color--base, #fff);
	color: var(--wp--preset--color--contrast, #111);
	border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
	border-radius: 0.5rem;
	box-shadow: 0 0.5rem 2rem rgb(0 0 0 / 0.12);
	font-family: var(--wp--preset--font-family--body, inherit);
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	line-height: 1.5;
}

.jm-consent[hidden] {
	display: none;
}

.jm-consent__text {
	flex: 1 1 18rem;
	margin: 0;
}

.jm-consent__text a {
	color: inherit;
	text-decoration: underline;
}

.jm-consent__actions {
	display: flex;
	gap: var(--wp--preset--spacing--20, 0.5rem);
	flex: 0 0 auto;
}

/* Mismo peso visual para ambos botones (requisito AEPD): solo se
   añade un ancho mínimo; el estilo viene de .wp-element-button. */
.jm-consent__btn {
	min-width: 7rem;
	cursor: pointer;
}

@media (max-width: 480px) {
	.jm-consent__actions,
	.jm-consent__btn {
		flex: 1 1 0;
		width: 100%;
	}
}
