#bb-consent-root {
  --bb-bg: #06111e;
  --bb-cream: #f2eee3;
  --bb-green: #4de38c;
  --bb-ink: #0b1b2b;
  --bb-muted: #8fa3b8;
  --bb-hair: rgba(242, 238, 227, 0.14);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--bb-cream);
  line-height: 1.5;
}

#bb-consent-root *,
#bb-consent-root *::before,
#bb-consent-root *::after {
  box-sizing: border-box;
}

.bb-consent-banner,
.bb-consent-dialog {
  position: fixed;
  z-index: 99999;
}

.bb-consent-banner {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px;
  background: var(--bb-bg);
  border-top: 1px solid var(--bb-hair);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.35);
}

.bb-consent-banner[hidden],
.bb-consent-dialog[hidden] {
  display: none !important;
}

.bb-consent-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .bb-consent-banner__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
  }
}

.bb-consent-banner__title {
  margin: 0 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.bb-consent-banner__text {
  margin: 0;
  font-size: 14px;
  color: var(--bb-muted);
}

.bb-consent-banner__text a {
  color: var(--bb-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bb-consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bb-consent-btn {
  appearance: none;
  border: 1px solid var(--bb-hair);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.bb-consent-btn--primary {
  background: var(--bb-green);
  border-color: var(--bb-green);
  color: var(--bb-ink);
}

.bb-consent-btn--primary:hover {
  filter: brightness(1.05);
}

.bb-consent-btn--ghost {
  background: transparent;
  color: var(--bb-cream);
}

.bb-consent-btn--ghost:hover {
  border-color: var(--bb-green);
  color: var(--bb-green);
}

.bb-consent-dialog__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 17, 30, 0.72);
}

.bb-consent-dialog__panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--bb-cream);
  color: var(--bb-ink);
  border-radius: 16px;
  padding: 28px 24px 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.bb-consent-dialog__title {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.bb-consent-dialog__text {
  margin: 0 0 20px;
  font-size: 14px;
  color: #4a5f74;
}

.bb-consent-category {
  border: 1px solid rgba(11, 27, 43, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.bb-consent-category__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bb-consent-category__name {
  font-size: 14px;
  font-weight: 700;
}

.bb-consent-category__desc {
  margin: 8px 0 0;
  font-size: 13px;
  color: #4a5f74;
}

.bb-consent-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.bb-consent-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.bb-consent-switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c8d2dc;
  transition: background 0.15s ease;
}

.bb-consent-switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.15s ease;
}

.bb-consent-switch input:checked + .bb-consent-switch__track {
  background: var(--bb-green);
}

.bb-consent-switch input:checked + .bb-consent-switch__track .bb-consent-switch__thumb {
  transform: translateX(20px);
}

.bb-consent-switch input:disabled + .bb-consent-switch__track {
  opacity: 0.55;
}

.bb-consent-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.bb-consent-dialog__actions .bb-consent-btn--primary {
  background: var(--bb-ink);
  border-color: var(--bb-ink);
  color: var(--bb-cream);
}

.bb-consent-dialog__actions .bb-consent-btn--ghost {
  color: var(--bb-ink);
  border-color: rgba(11, 27, 43, 0.2);
}

.bb-consent-locked {
  overflow: hidden;
}
