.bs-consent-banner,
.bs-consent-prefs { display: none; }
.bs-consent-banner.is-open { display: block; }
.bs-consent-prefs:not([hidden]) { display: flex; }

/* Banner – nederst, diskret kort */
.bs-consent-banner {
	position: fixed; z-index: 99999; left: 1rem; right: 1rem; bottom: 1rem; margin: 0 auto; max-width: 720px;
	background: #fff; color: #111418; border: 1px solid #e0e3e8; border-radius: 14px;
	box-shadow: 0 10px 40px rgba(17,20,24,.18); padding: 1.1rem 1.25rem;
	font-size: .95rem; line-height: 1.5;
}
.bs-consent-text h2 { margin: 0 0 .35rem; font-size: 1.05rem; }
.bs-consent-text p { margin: 0 0 .9rem; color: #3a3f47; }
.bs-consent-text a { color: #1f4ed8; }

/* Likestilte knapper – samme størrelse/vekt (ekomloven § 3-15: like lett å si nei som ja) */
.bs-consent-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.bs-c-btn {
	flex: 1 1 0; min-width: 120px; cursor: pointer; font: inherit; font-weight: 600;
	padding: .7rem 1rem; border-radius: 9px; border: 1.5px solid #1f4ed8; background: #fff; color: #1f4ed8;
	transition: .12s;
}
.bs-c-btn:hover { background: #1f4ed8; color: #fff; }
.bs-c-btn:focus-visible { outline: 2px solid #1f4ed8; outline-offset: 2px; }

/* Preferanse-modal */
.bs-consent-prefs {
	position: fixed; inset: 0; z-index: 100000; background: rgba(17,20,24,.45);
	align-items: center; justify-content: center; padding: 1rem;
}
.bs-consent-prefs-box {
	background: #fff; border-radius: 16px; max-width: 560px; width: 100%; max-height: 85vh; overflow: auto;
	padding: 1.5rem; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.bs-consent-prefs-box h2 { margin: 0 0 1rem; }
.bs-consent-cat { display: flex; gap: .75rem; align-items: flex-start; padding: .75rem 0; border-top: 1px solid #eceef1; }
.bs-consent-cat:first-of-type { border-top: 0; }
.bs-consent-cat input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.bs-consent-cat-text { display: flex; flex-direction: column; gap: .15rem; }
.bs-consent-cat-text em { font-style: normal; color: #6b7280; font-size: .9rem; }
.bs-consent-prefs-box .bs-consent-actions { margin-top: 1.25rem; }

/* Withdraw-knapp – alltid tilgjengelig (like lett å trekke tilbake) */
.bs-consent-reopen {
	position: fixed; z-index: 99998; left: 1rem; bottom: 1rem; width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid #e0e3e8; background: #fff; box-shadow: 0 4px 16px rgba(17,20,24,.18);
	cursor: pointer; font-size: 1.2rem; line-height: 1; display: flex; align-items: center; justify-content: center;
}

@media (max-width: 600px) {
	.bs-consent-actions { flex-direction: column; }
	.bs-c-btn { width: 100%; }
}
