/* Bersihku Shield — consent banner. Scoped, no framework. */

.bs-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	background: #f2f0e4;
	color: #0a2a2e;
	border-top: 1px solid #d9e8e7;
	box-shadow: 0 -10px 30px rgba(10, 42, 46, .12);
	font-family: var(--font-sans, 'Segoe UI', system-ui, -apple-system, sans-serif);
	font-size: 15px;
	line-height: 1.5;
}
.bs-consent--top { top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid #d9e8e7; }

.bs-consent__inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 18px 22px;
	display: grid;
	gap: 14px;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
}

.bs-consent__title { margin: 0 0 4px; font-size: 16px; line-height: 1.3; }
.bs-consent__text p { margin: 0; color: #385b56; }
.bs-consent__text a { color: #0a6b6b; text-underline-offset: 2px; }

.bs-consent__prefs {
	grid-column: 1 / -1;
	display: grid;
	gap: 8px;
	padding: 12px 0 4px;
	border-top: 1px dashed #cfc9b4;
}
.bs-consent__prefs[hidden] { display: none; }
.bs-consent__cat { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; }
.bs-consent__cat small { display: block; font-weight: 400; color: #47676a; }

.bs-consent__actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }

.bs-consent__btn {
	appearance: none;
	cursor: pointer;
	font: inherit;
	font-weight: 650;
	font-size: 14px;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid transparent;
	transition: background .15s ease, color .15s ease, transform .15s ease;
}
.bs-consent__btn:hover { transform: translateY(-1px); }
.bs-consent__btn--primary { background: #285246; color: #fff; }
.bs-consent__btn--primary:hover { background: #1d3d34; }
.bs-consent__btn--quiet { background: transparent; color: #285246; border-color: #b9c9c2; }
.bs-consent__btn--quiet:hover { background: #e7eee9; }
.bs-consent__btn[hidden] { display: none; }

.bs-consent__reopen {
	appearance: none;
	background: none;
	border: 0;
	padding: 0;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
}

@media (max-width: 720px) {
	.bs-consent__inner { grid-template-columns: 1fr; padding: 16px; }
	.bs-consent__actions { justify-content: stretch; }
	.bs-consent__btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
	.bs-consent__btn { transition: none; }
}
