/*
 * BÀNER DE GALETES COMPACTE (Complianz) — 22/11/2026, plugin 1.199.0.
 * Abans ocupava el 55-67 % de la pantalla del mòbil (requadre amb 3 botons apilats). Ara: barra fixa a baix,
 * text curt, i «Rebutjar» i «Acceptar» IGUALS (mida, color i lloc: guia AEPD); «Veure preferències» com a enllaç.
 * Només CSS sobre els elements PROPIS de Complianz: cap botó nou, el consentiment el segueix gestionant Complianz.
 * El TEXT el posa en Jordi al tauler de Complianz. Si el missatge porta l'enllaç a la política, s'amaguen els
 * enllaços de documents; si no, es deixa només «Política de cookies».
 * Simulació i mesura: node tools/mira/galetes-baner-simula.mjs (6 formats).
 */
body .cmplz-cookiebanner.cmplz-show {
	position: fixed !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	top: auto !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	transform: none !important;
	border-radius: 0 !important;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18) !important;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom)) !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
	max-height: 85vh;
	overflow-y: auto;
	background: #fff !important;
}
body .cmplz-cookiebanner.cmplz-show .cmplz-header,
body .cmplz-cookiebanner.cmplz-show .cmplz-divider,
body .cmplz-cookiebanner.cmplz-show .cmplz-links.cmplz-information {
	display: none !important;
}
body .cmplz-cookiebanner.cmplz-show .cmplz-body {
	order: 1;
	margin: 0 !important;
	padding: 0 !important;
}
body .cmplz-cookiebanner.cmplz-show .cmplz-message,
body .cmplz-cookiebanner.cmplz-show .cmplz-message p {
	margin: 0 !important;
	font-size: 13px !important;
	line-height: 1.4 !important;
	color: #1a1a18 !important;
}
body .cmplz-cookiebanner.cmplz-show .cmplz-message a {
	color: #1a1a18 !important;
	text-decoration: underline !important;
}
/* Documents: només la política de galetes, i cap si el missatge ja la porta enllaçada. */
body .cmplz-cookiebanner.cmplz-show .cmplz-documents {
	order: 2;
	margin: 0 !important;
}
body .cmplz-cookiebanner.cmplz-show .cmplz-documents li:not(:first-child) {
	display: none !important;
}
body .cmplz-cookiebanner.cmplz-show:has(.cmplz-message a) .cmplz-documents {
	display: none !important;
}
/* Els botons en una fila. */
body .cmplz-cookiebanner.cmplz-show .cmplz-buttons {
	order: 3;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	justify-content: flex-end !important;
	gap: 8px !important;
	margin: 0 !important;
	width: 100% !important;
}
body .cmplz-cookiebanner.cmplz-show .cmplz-buttons .cmplz-btn {
	width: auto !important;
	flex: 0 1 auto !important;
	min-width: 104px !important;
	min-height: 44px !important;
	height: auto !important;
	padding: 0 14px !important;
	margin: 0 !important;
	border-radius: 6px !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	box-shadow: none !important;
}
/* Acceptar i Rebutjar: IDÈNTICS. Cap truc de color. Contrast 17,43:1 (tools/contrast-wcag.js). */
body .cmplz-cookiebanner.cmplz-show .cmplz-buttons .cmplz-btn.cmplz-accept,
body .cmplz-cookiebanner.cmplz-show .cmplz-buttons .cmplz-btn.cmplz-deny,
body .cmplz-cookiebanner.cmplz-show .cmplz-buttons .cmplz-btn.cmplz-save-preferences {
	background: #1a1a18 !important;
	border: 1px solid #1a1a18 !important;
	color: #fff !important;
}
/* «Veure preferències» com a enllaç, a l'esquerra de la mateixa fila. */
body .cmplz-cookiebanner.cmplz-show .cmplz-buttons .cmplz-btn.cmplz-view-preferences {
	order: -1;
	margin-right: auto !important;
	min-width: 0 !important;
	padding: 0 4px !important;
	background: none !important;
	border: 0 !important;
	color: #1a1a18 !important;
	text-decoration: underline !important;
	font-size: 13px !important;
	font-weight: 400 !important;
}
/* Preferències obertes: les categories ocupen el que calgui (amb desplaçament si no hi caben). */
body .cmplz-cookiebanner.cmplz-show.cmplz-categories-visible .cmplz-body {
	max-height: 60vh;
	overflow-y: auto;
}
@media (min-width: 900px) {
	body .cmplz-cookiebanner.cmplz-show:not(.cmplz-categories-visible) {
		flex-direction: row !important;
		align-items: center !important;
		gap: 20px !important;
		padding-left: max(14px, calc((100% - 1200px) / 2)) !important;
		padding-right: max(14px, calc((100% - 1200px) / 2)) !important;
	}
	body .cmplz-cookiebanner.cmplz-show:not(.cmplz-categories-visible) .cmplz-body {
		flex: 1 1 auto;
	}
	body .cmplz-cookiebanner.cmplz-show:not(.cmplz-categories-visible) .cmplz-buttons {
		width: auto !important;
		flex-wrap: nowrap !important;
	}
}
