.bks-consent-root {
  --bks-bg: rgba(17, 24, 39, 0.96);
  --bks-surface: #ffffff;
  --bks-text: #101828;
  --bks-muted: #667085;
  --bks-border: #e4e7ec;
  --bks-primary: #111827;
  --bks-primary-text: #ffffff;
  --bks-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.bks-consent-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  z-index: 99997;
}

.bks-consent-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: min(520px, calc(100vw - 32px));
  background: var(--bks-surface);
  color: var(--bks-text);
  border: 1px solid var(--bks-border);
  border-radius: 20px;
  box-shadow: var(--bks-shadow);
  z-index: 99998;
}

.bks-consent-banner__content {
  padding: 20px;
}

.bks-consent-banner__title,
.bks-consent-modal__header h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.2;
}

.bks-consent-banner__text,
.bks-consent-category__info p {
  margin: 0;
  color: var(--bks-muted);
  font-size: 14px;
  line-height: 1.6;
}

.bks-consent-banner__actions,
.bks-consent-modal__footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.bks-btn {
  appearance: none;
  border: 1px solid var(--bks-border);
  background: #fff;
  color: var(--bks-text);
  border-radius: 12px;
  padding: 11px 16px;
  font: inherit;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.bks-btn:hover,
.bks-consent-fab:hover,
.bks-consent-close:hover {
  transform: translateY(-1px);
}

.bks-btn--primary {
  background: var(--bks-primary);
  color: var(--bks-primary-text);
  border-color: var(--bks-primary);
}

.bks-btn--ghost {
  background: #fff;
}

.bks-consent-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 99999;
  padding: 16px;
}

.bks-consent-modal__dialog {
  width: min(720px, 100%);
  background: var(--bks-surface);
  border-radius: 22px;
  box-shadow: var(--bks-shadow);
  overflow: hidden;
}

.bks-consent-modal__header,
.bks-consent-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--bks-border);
}

.bks-consent-modal__footer {
  border-top: 1px solid var(--bks-border);
  border-bottom: 0;
}

.bks-consent-modal__body {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.bks-consent-close {
  appearance: none;
  border: 1px solid var(--bks-border);
  background: #fff;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.bks-consent-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--bks-border);
  border-radius: 16px;
}

.bks-consent-category__info strong {
  display: block;
  margin-bottom: 6px;
}

.bks-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
}

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

.bks-switch__slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d0d5dd;
  transition: .22s ease;
}

.bks-switch__slider::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: .22s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
}

.bks-switch input:checked + .bks-switch__slider {
  background: var(--bks-primary);
}

.bks-switch input:checked + .bks-switch__slider::before {
  transform: translateX(22px);
}

.bks-consent-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--bks-border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--bks-muted);
}

.bks-consent-policy-link {
  color: var(--bks-text);
  text-decoration: underline;
}

.bks-consent-fab {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 99996;
  appearance: none;
  border: 1px solid var(--bks-border);
  background: #fff;
  color: var(--bks-text);
  border-radius: 999px;
  padding: 11px 16px;
  box-shadow: var(--bks-shadow);
  cursor: pointer;
}

@media (max-width: 767px) {
  .bks-consent-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }

  .bks-consent-modal__header,
  .bks-consent-modal__footer,
  .bks-consent-category {
    flex-direction: column;
    align-items: flex-start;
  }

  .bks-consent-modal__footer {
    gap: 16px;
  }

  .bks-consent-modal__footer-actions,
  .bks-consent-banner__actions {
    width: 100%;
  }

  .bks-btn {
    width: 100%;
  }
}

.bks-consent-embed-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border: 1px solid var(--bks-border);
  border-radius: 18px;
  background: #f8fafc;
  padding: 20px;
  text-align: center;
}

.bks-consent-embed-placeholder__inner {
  max-width: 420px;
}

.bks-consent-embed-placeholder__inner p {
  margin: 0 0 12px;
  color: var(--bks-muted);
}
