/* WeLove Consent v1.0 — tema por site através destas variáveis (ver README).
   :where() tem especificidade 0: qualquer :root do site sobrepõe-se, seja qual for a ordem. */
:where(:root) {
	--wlc-bg: #ffffff;
	--wlc-text: #1f2a1f;
	--wlc-muted: #5b655b;
	--wlc-accent: #2f6f3e;
	--wlc-accent-text: #ffffff;
	--wlc-link: var(--wlc-accent);      /* links/textos de destaque sobre o fundo (útil se o accent for claro) */
	--wlc-line: rgba(0, 0, 0, .12);
	--wlc-font: inherit;
	--wlc-radius: 14px;
	--wlc-btn-radius: 999px;
	--wlc-shadow: 0 12px 40px rgba(0, 0, 0, .18);
	--wlc-z: 2147483000;
}

.wlc-banner, .wlc-modal { font-family: var(--wlc-font); color: var(--wlc-text); line-height: 1.45; -webkit-font-smoothing: antialiased; }
.wlc-banner *, .wlc-modal * { box-sizing: border-box; }

/* ------------------------------------------------------------------ banner */
.wlc-banner {
	position: fixed;
	left: 16px; right: 16px; bottom: 16px;
	z-index: var(--wlc-z);
	max-width: 1080px;
	margin: 0 auto;
	background: var(--wlc-bg);
	border-radius: var(--wlc-radius);
	box-shadow: var(--wlc-shadow);
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .35s ease, transform .35s ease;
}
.wlc-banner.wlc-in { opacity: 1; transform: none; }
.wlc-banner-inner { display: flex; align-items: center; gap: 28px; padding: 22px 26px; }
.wlc-banner-copy { flex: 1 1 auto; min-width: 0; }
.wlc-title { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--wlc-text); }
.wlc-text { margin: 0; font-size: 14px; color: var(--wlc-muted); }
.wlc-text a { color: var(--wlc-link); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ------------------------------------------------------------------ botões
   "Aceitar" e "Rejeitar" com o mesmo destaque (sem padrões enganadores) */
.wlc-actions { display: flex; flex: none; flex-wrap: wrap; gap: 10px; }
.wlc-btn {
	appearance: none;
	min-height: 44px;
	padding: 10px 22px;
	border: 2px solid var(--wlc-accent);
	border-radius: var(--wlc-btn-radius);
	background: var(--wlc-accent);
	color: var(--wlc-accent-text);
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.1;
	cursor: pointer;
	transition: filter .2s, background .2s, color .2s;
}
.wlc-btn:hover { filter: brightness(.92); }
.wlc-btn-ghost { background: transparent; color: var(--wlc-link); }
.wlc-btn-ghost:hover { background: var(--wlc-accent); color: var(--wlc-accent-text); filter: none; }
.wlc-btn:focus-visible, .wlc-close:focus-visible, .wlc-more:focus-visible, .wlc-switch:focus-visible, .wlc-dialog:focus-visible {
	outline: 3px solid var(--wlc-accent); outline-offset: 2px;
}
.wlc-dialog:focus { outline: none; }

/* ------------------------------------------------------------------ preferências */
html.wlc-lock { overflow: hidden; }
.wlc-modal { position: fixed; inset: 0; z-index: calc(var(--wlc-z) + 1); display: flex; align-items: center; justify-content: center; padding: 16px; }
.wlc-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; transition: opacity .3s ease; }
.wlc-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(640px, 100%);
	max-height: min(86vh, 760px);
	background: var(--wlc-bg);
	border-radius: var(--wlc-radius);
	box-shadow: var(--wlc-shadow);
	opacity: 0;
	transform: translateY(20px) scale(.98);
	transition: opacity .3s ease, transform .3s ease;
}
.wlc-modal.wlc-in .wlc-overlay { opacity: 1; }
.wlc-modal.wlc-in .wlc-dialog { opacity: 1; transform: none; }
.wlc-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 12px; border-bottom: 1px solid var(--wlc-line); }
.wlc-dialog-head .wlc-title { margin: 0; font-size: 19px; }
.wlc-close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--wlc-text); font-size: 28px; line-height: 1; cursor: pointer; }
.wlc-close:hover { background: var(--wlc-line); }
.wlc-dialog-body { overflow-y: auto; padding: 16px 24px; -webkit-overflow-scrolling: touch; }
.wlc-dialog-foot { justify-content: flex-end; padding: 14px 24px 20px; border-top: 1px solid var(--wlc-line); }

.wlc-cat { padding: 16px 0; border-bottom: 1px solid var(--wlc-line); }
.wlc-cat:last-child { border-bottom: 0; }
.wlc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wlc-cat-label { font-size: 15px; font-weight: 700; cursor: pointer; }
.wlc-cat-text { margin: 6px 0 0; font-size: 14px; color: var(--wlc-muted); }
.wlc-always { font-size: 13px; font-weight: 700; color: var(--wlc-link); white-space: nowrap; }

/* interruptor acessível (checkbox nativa com role=switch) */
.wlc-switch {
	appearance: none;
	position: relative;
	flex: none;
	width: 46px; height: 26px;
	margin: 0;
	border-radius: 26px;
	background: #c9cec9;
	cursor: pointer;
	transition: background .2s ease;
}
.wlc-switch::after {
	content: '';
	position: absolute;
	top: 3px; left: 3px;
	width: 20px; height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .2s ease;
}
.wlc-switch:checked { background: var(--wlc-accent); }
.wlc-switch:checked::after { transform: translateX(20px); }

.wlc-more { margin-top: 8px; padding: 4px 0; border: 0; background: none; color: var(--wlc-link); font: inherit; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.wlc-cookies { margin-top: 10px; }
.wlc-table-wrap { overflow-x: auto; }
.wlc-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.wlc-table th, .wlc-table td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--wlc-line); }
.wlc-table th { font-weight: 700; white-space: nowrap; }
.wlc-table code { font-size: 12px; white-space: nowrap; }
.wlc-empty { margin: 0; font-size: 13px; color: var(--wlc-muted); }

@media (max-width: 760px) {
	.wlc-banner { left: 10px; right: 10px; bottom: 10px; }
	.wlc-banner-inner { flex-direction: column; align-items: stretch; gap: 16px; padding: 18px; }
	.wlc-actions { display: grid; grid-template-columns: 1fr 1fr; }
	.wlc-actions .wlc-btn-ghost { grid-column: 1 / -1; order: 3; }
	.wlc-dialog-foot { display: grid; grid-template-columns: 1fr 1fr; }
	.wlc-dialog-foot .wlc-btn-ghost { grid-column: 1 / -1; order: 3; }
	.wlc-modal { padding: 0; align-items: flex-end; }
	.wlc-dialog { max-height: 92vh; border-radius: var(--wlc-radius) var(--wlc-radius) 0 0; }
}

@media (prefers-reduced-motion: reduce) {
	.wlc-banner, .wlc-dialog, .wlc-overlay, .wlc-switch, .wlc-switch::after { transition: none; }
}
@media print { .wlc-banner, .wlc-modal { display: none !important; } }
