/* FiX iT Canarias Helper — consent banner. Dark-theme matched, mobile-first. */
.bgr-consent {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 90;
	max-width: 720px;
	margin-inline: auto;
	background: rgba(11, 13, 24, .96);
	color: #e9ecff;
	border: 1px solid rgba(168, 85, 247, .35);
	border-radius: 18px;
	padding: 18px 20px;
	box-shadow: 0 24px 60px rgba(0,0,0,.5);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	font-size: 14px;
	line-height: 1.55;
	transform: translateY(20px);
	opacity: 0;
	transition: transform .25s ease, opacity .25s ease;
}
.bgr-consent.is-open { transform: translateY(0); opacity: 1; }
.bgr-consent[hidden] { display: none; }

.bgr-consent--bottom-left  { left: 16px; right: auto; max-width: 380px; margin: 0; }
.bgr-consent--bottom-right { right: 16px; left: auto; max-width: 380px; margin: 0; }

.bgr-consent h3 {
	font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
	font-weight: 600;
	font-size: 16px;
	margin: 0 0 6px;
	color: #fff;
}
.bgr-consent p { margin: 0 0 12px; color: #a8aecc; }
.bgr-consent a { color: #a855f7; }
.bgr-consent a:hover { color: #d946ef; }

.bgr-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}
.bgr-consent__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: .01em;
	cursor: pointer;
	background: rgba(255,255,255,.05);
	color: #fff;
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
	min-height: 40px;
}
.bgr-consent__btn:hover { background: rgba(124, 58, 237, .16); border-color: rgba(168, 85, 247, .35); }
.bgr-consent__btn--primary {
	background: linear-gradient(135deg, #2c6eff 0%, #7c3aed 55%, #d946ef 100%);
	border-color: transparent;
}
.bgr-consent__btn--primary:hover { transform: translateY(-1px); border-color: transparent; }

.bgr-consent__categories {
	display: none;
	margin-top: 10px;
	padding-top: 14px;
	border-top: 1px solid rgba(255,255,255,.07);
}
.bgr-consent.is-customising .bgr-consent__categories { display: block; }
.bgr-consent__cat {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid rgba(255,255,255,.05);
}
.bgr-consent__cat:last-child { border-bottom: 0; }
.bgr-consent__cat-name { font-weight: 600; color: #fff; }
.bgr-consent__cat-desc { font-size: 12px; color: #a8aecc; }
.bgr-consent__cat label { display: flex; align-items: center; gap: 8px; cursor: pointer; }

/* Native checkbox styled as a switch. */
.bgr-consent__cat input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 38px;
	height: 22px;
	border-radius: 12px;
	background: rgba(255,255,255,.1);
	border: 1px solid rgba(255,255,255,.18);
	position: relative;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease;
	flex: 0 0 auto;
}
.bgr-consent__cat input[type="checkbox"]::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	transition: transform .18s ease;
}
.bgr-consent__cat input[type="checkbox"]:checked {
	background: linear-gradient(135deg, #7c3aed, #d946ef);
	border-color: transparent;
}
.bgr-consent__cat input[type="checkbox"]:checked::after { transform: translateX(16px); }
.bgr-consent__cat input[type="checkbox"]:disabled {
	opacity: .6;
	cursor: not-allowed;
}
.bgr-consent__cat input[type="checkbox"]:focus-visible {
	outline: 2px solid #a855f7;
	outline-offset: 2px;
}

.bgr-consent-revoke {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
	text-decoration: underline;
	text-decoration-color: rgba(168, 85, 247, .35);
}
.bgr-consent-revoke:hover {
	text-decoration-color: rgba(168, 85, 247, .8);
}

@media (max-width: 480px) {
	.bgr-consent { left: 10px; right: 10px; bottom: 10px; padding: 16px; border-radius: 14px; }
	.bgr-consent__btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
	.bgr-consent { transition: opacity .18s ease; transform: none; }
}
