/* =============================================================================
   Ventana de cookies de SEOPress (inc/cookie-consent.php)
   -----------------------------------------------------------------------------
   SEOPress imprime sus estilos en línea al final de la página, con colores y
   la letra Arial de sus ajustes: cada regla lleva body delante para ganarle
   sin tocar el plugin. El botón principal repite styles.elements.button de
   theme.json; "Rechazar" y "Guardar" son el secundario con borde, y
   "Personalizar", un link. El botón flotante "Preferencias de cookies" de
   SEOPress no se muestra: la ventana se vuelve a abrir con el link del footer
   (assets/js/cookie-preferences.js).
   ============================================================================= */

body .seopress-user-consent.seopress-user-message {
	border-width: 1px;
	border-style: solid;
	border-color: var(--wp--preset--color--border);
	border-radius: var(--wp--preset--border-radius--x-large);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--wp--preset--shadow--large);
	color: var(--wp--preset--color--foreground);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--body-small);
	line-height: var(--wp--custom--line-height--normal);
}

body .seopress-user-consent.seopress-user-message a {
	color: var(--wp--preset--color--primary);
	text-decoration: underline;
}

body .seopress-user-consent.seopress-user-message a:hover {
	color: var(--wp--preset--color--primary-hover);
}

body .seopress-user-consent .seopress-user-consent-categories legend {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

body .seopress-user-consent .seopress-user-consent-category {
	border-top-color: var(--wp--preset--color--border);
	font-size: var(--wp--preset--font-size--body-small);
}

body .seopress-user-consent .seopress-user-consent-category-text span,
body .seopress-user-consent .seopress-user-consent-category-always {
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--x-small);
	opacity: 1;
}

body .seopress-user-consent .seopress-user-consent-category input {
	accent-color: var(--wp--preset--color--primary);
}

/* ---- Botones ---------------------------------------------------------------- */
body .seopress-user-consent button {
	min-height: var(--wp--custom--button--height-small);
	padding-block: var(--wp--preset--spacing--20);
	padding-inline: var(--wp--preset--spacing--50);
	border: 0;
	border-radius: var(--wp--preset--border-radius--small);
	background: var(--wp--preset--gradient--primary);
	box-shadow: none;
	color: var(--wp--preset--color--on-primary);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: var(--wp--custom--letter-spacing--wider);
	line-height: var(--wp--custom--line-height--none);
	text-transform: uppercase;
	transform: none;
	transition: color var(--wp--custom--transition--base), background var(--wp--custom--transition--base);
}

body .seopress-user-consent button:is(:hover, :focus, :active) {
	background: var(--wp--preset--gradient--primary-hover);
	box-shadow: none;
	color: var(--wp--preset--color--on-primary);
	transform: none;
}

body .seopress-user-consent button:focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--wp--preset--color--primary);
	outline-offset: var(--wp--custom--focus--offset);
}

body #seopress-user-consent-close,
body #seopress-user-consent-save {
	border-width: 1px !important;
	border-style: solid !important;
	border-color: var(--wp--preset--color--border-strong) !important;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--foreground);
}

body #seopress-user-consent-close:is(:hover, :focus, :active),
body #seopress-user-consent-save:is(:hover, :focus, :active) {
	border-color: var(--wp--preset--color--foreground) !important;
	background: var(--wp--preset--color--surface-sunken);
	color: var(--wp--preset--color--foreground);
}

body #seopress-user-consent-customize,
body #seopress-user-consent-customize:is(:hover, :focus, :active) {
	padding-inline: var(--wp--preset--spacing--20);
	background: none;
	color: var(--wp--preset--color--foreground);
	letter-spacing: normal;
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--primary);
	text-transform: none;
}

/* ---- Botón flotante de SEOPress: lo reemplaza el link del footer ------------ */
body .seopress-user-consent.seopress-edit-choice {
	display: none !important;
}
