/**
 * Chile Consiente — estilos del banner.
 *
 * Paleta alineada con Asentic (teal #0EA5A4 / azul #3B82F6). "Rechazar" tiene el
 * MISMO peso visual que "Aceptar" (sin dark patterns — exigencia 21.719/RGPD).
 * Se usa .chc-hidden { display:none !important } en lugar del atributo [hidden]
 * para que ninguna regla de autor (display:flex) lo anule.
 */

.chc-hidden { display: none !important; }

#chc-root {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 99999;
	display: flex;
	justify-content: center;
	padding: 16px;
	pointer-events: none;
}

.chc-banner {
	pointer-events: auto;
	box-sizing: border-box;
	width: 100%;
	max-width: 720px;
	background: #0B1220;
	color: #E2E8F0;
	border: 1px solid #1E293B;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
	padding: 20px 22px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

.chc-banner * { box-sizing: border-box; }

.chc-title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
	color: #F8FAFC;
}

.chc-body { margin: 0 0 14px; color: #94A3B8; }

.chc-cats { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }

.chc-cat {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 10px 12px;
	background: #0E1B36;
	border: 1px solid #1E293B;
	border-radius: 9px;
	cursor: pointer;
}

.chc-cat input { margin-top: 3px; }
.chc-cat-txt { display: flex; flex-direction: column; gap: 2px; }
.chc-cat-txt strong { color: #F8FAFC; font-weight: 600; }
.chc-cat-desc { color: #94A3B8; font-size: 13px; }

.chc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.chc-btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 9px;
	padding: 11px 18px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
}

/* Aceptar y Rechazar: MISMO peso visual (color, tamaño, contraste, posición).
   Sin dark patterns: ninguna opción se favorece por el diseño; la decisión
   queda en el texto. Exigencia de consentimiento libre (21.719 / RGPD, EDPB). */
.chc-btn--accept,
.chc-btn--reject {
	min-width: 140px;
	color: #fff;
	background: #0EA5A4;
	border-color: #0EA5A4;
}

.chc-btn--accept:hover,
.chc-btn--reject:hover { filter: brightness(1.08); }

.chc-btn--config,
.chc-btn--save {
	background: transparent;
	border-color: #334155;
	color: #CBD5E1;
}

.chc-btn--config:hover,
.chc-btn--save:hover { border-color: #64748B; }

.chc-reopen {
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

@media (max-width: 560px) {
	.chc-actions { justify-content: stretch; }
	.chc-btn { flex: 1 1 auto; }
}

@media (prefers-color-scheme: light) {
	.chc-banner { background: #FFFFFF; color: #0F172A; border-color: #E2E8F0; }
	.chc-title { color: #0F172A; }
	.chc-body, .chc-cat-desc { color: #475569; }
	.chc-cat { background: #F8FAFC; border-color: #E2E8F0; }
	.chc-cat-txt strong { color: #0F172A; }
	/* Aceptar/Rechazar conservan el mismo teal en claro y oscuro (sin sesgo). */
	.chc-btn--config, .chc-btn--save { color: #334155; border-color: #CBD5E1; }
}
