#fbf-cc { font-family: inherit; }
#fbf-cc [hidden] { display: none !important; }

.fbf-cc-banner {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99999;
	width: 420px;
	max-width: calc(100vw - 40px);
	box-sizing: border-box;
	padding: 28px;
	background: #fff;
	color: #1a1a1a;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.fbf-cc-title { display: block; font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--fbf-cc-color); }
.fbf-cc-text { margin: 0; font-size: 14px; line-height: 1.6; }
.fbf-cc-link { color: var(--fbf-cc-color); font-weight: 600; text-decoration: underline; white-space: nowrap; }
.fbf-cc-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.fbf-cc-row { display: flex; flex-direction: row; gap: 10px; width: 100%; }

.fbf-cc-btn {
	flex: 1 1 0;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
	font-family: inherit;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	border-radius: 4px;
	padding: 12px;
	border: none;
	cursor: pointer;
	text-align: center;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.fbf-cc-btn-solid { width: 100%; background: var(--fbf-cc-color); color: #fff; }
.fbf-cc-btn-solid:hover { filter: brightness(1.25); }
.fbf-cc-btn-outline { background: transparent; color: var(--fbf-cc-color); box-shadow: inset 0 0 0 1px var(--fbf-cc-color); }
.fbf-cc-btn-outline:hover { background: var(--fbf-cc-color); color: #fff; }

.fbf-cc-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.45);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.fbf-cc-dialog {
	width: 100%;
	max-width: 440px;
	box-sizing: border-box;
	background: #fff;
	color: #1a1a1a;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.fbf-cc-modal-title { font-weight: 700; font-size: 20px; color: var(--fbf-cc-color); }
.fbf-cc-modal-text { margin: 0; font-size: 14px; line-height: 1.5; }
.fbf-cc-category {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 12px 0;
	border-top: 1px solid #e4e4e4;
	cursor: pointer;
}
.fbf-cc-category:last-of-type { border-bottom: 1px solid #e4e4e4; }
.fbf-cc-category-label { display: flex; flex-direction: column; gap: 2px; }
.fbf-cc-category-name { font-weight: 600; font-size: 14px; color: var(--fbf-cc-color); }
.fbf-cc-category-desc { font-size: 13px; color: #666; }
.fbf-cc-modal-actions { justify-content: flex-end; }

.fbf-cc-toggle { position: relative; flex: 0 0 auto; width: 44px; height: 24px; }
.fbf-cc-toggle input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.fbf-cc-track { position: absolute; inset: 0; border-radius: 12px; background: #c9c9c9; transition: background 0.15s ease; }
.fbf-cc-thumb { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.15s ease; }
.fbf-cc-toggle input:checked + .fbf-cc-track { background: var(--fbf-cc-color); }
.fbf-cc-toggle input:checked + .fbf-cc-track .fbf-cc-thumb { transform: translateX(20px); }
.fbf-cc-toggle input:disabled { cursor: not-allowed; }
.fbf-cc-toggle input:disabled + .fbf-cc-track { opacity: 0.5; }
.fbf-cc-toggle input:focus-visible + .fbf-cc-track { outline: 2px solid var(--fbf-cc-color); outline-offset: 2px; }

.fbf-cc-footer-link { color: inherit; text-decoration: underline; cursor: pointer; }

@media (max-width: 480px) {
	.fbf-cc-banner { left: 10px; bottom: 10px; max-width: calc(100vw - 20px); padding: 20px; }
	.fbf-cc-row { flex-direction: column; }
}
