.bbe-consent[hidden],
.bbe-consent-prefs[hidden] {
	display: none !important;
}

.bbe-consent {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, 0.42);
	box-sizing: border-box;
}

.bbe-consent__panel {
	width: 100%;
	max-width: 640px;
	max-height: min(88vh, 720px);
	overflow: auto;
	border-radius: 16px;
	background: #fff;
	color: #1e293b;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
	box-sizing: border-box;
}

.bbe-consent__body {
	padding: 22px 22px 8px;
}

.bbe-consent__title {
	margin: 0 0 10px;
	font-size: 1.25rem;
	line-height: 1.3;
	font-weight: 700;
	color: #0f172a;
}

.bbe-consent__text {
	margin: 0 0 14px;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #475569;
}

.bbe-consent__cats {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	display: grid;
	gap: 10px;
}

.bbe-consent__cat {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	cursor: pointer;
}

.bbe-consent__cat input {
	margin-top: 3px;
}

.bbe-consent__cat-desc {
	display: block;
	margin-top: 2px;
	font-size: 0.85rem;
	color: #64748b;
	line-height: 1.4;
}

.bbe-consent__links {
	margin: 0 0 8px;
	font-size: 0.85rem;
	color: #64748b;
}

.bbe-consent__links a {
	color: #6d18be;
	text-decoration: underline;
}

.bbe-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 22px 20px;
	border-top: 1px solid #e2e8f0;
	justify-content: flex-end;
}

.bbe-consent__btn {
	appearance: none;
	border-radius: 999px;
	border: 1px solid #cbd5e1;
	background: #fff;
	color: #0f172a;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 10px 14px;
	cursor: pointer;
	line-height: 1.2;
}

.bbe-consent__btn--primary {
	border-color: #6d18be;
	background: #6d18be;
	color: #fff;
}

.bbe-consent__btn--ghost:hover {
	background: #f8fafc;
}

.bbe-consent-prefs {
	position: fixed;
	right: 12px;
	bottom: 12px;
	z-index: 99990;
	appearance: none;
	border: 0;
	border-radius: 999px;
	background: #0f172a;
	color: #fff;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 10px 14px;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}

@media (max-width: 640px) {
	.bbe-consent__actions {
		flex-direction: column-reverse;
	}
	.bbe-consent__btn {
		width: 100%;
	}
}
