.nikba-consent {
  --nikba-consent-bg: #0f1f17;
  --nikba-consent-surface: #162820;
  --nikba-consent-text: #f4f7f5;
  --nikba-consent-muted: #b7c4bd;
  --nikba-consent-accent: #3d7a55;
  --nikba-consent-accent-hover: #2f6143;
  --nikba-consent-border: rgba(255, 255, 255, 0.12);
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 10050;
  max-width: 42rem;
  color: var(--nikba-consent-text);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.nikba-consent[hidden] {
  display: none !important;
}

.nikba-consent__panel {
  background: var(--nikba-consent-bg);
  border: 1px solid var(--nikba-consent-border);
  border-radius: 0.75rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  padding: 1.25rem 1.35rem;
}

.nikba-consent__title {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.nikba-consent__text {
  margin: 0 0 1rem;
  color: var(--nikba-consent-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.nikba-consent__text a {
  color: #d8efe2;
  text-decoration: underline;
}

.nikba-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nikba-consent__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 0.45rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  min-height: 2.5rem;
  padding: 0.55rem 0.95rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nikba-consent__btn--accept,
.nikba-consent__btn--reject {
  flex: 1 1 8rem;
}

.nikba-consent__btn--accept {
  background: var(--nikba-consent-accent);
  color: #fff;
}

.nikba-consent__btn--accept:hover {
  background: var(--nikba-consent-accent-hover);
}

.nikba-consent__btn--reject {
  background: transparent;
  border-color: var(--nikba-consent-border);
  color: var(--nikba-consent-text);
}

.nikba-consent__btn--reject:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nikba-consent__btn--settings,
.nikba-consent__btn--save {
  background: var(--nikba-consent-surface);
  border-color: var(--nikba-consent-border);
  color: var(--nikba-consent-text);
}

.nikba-consent__btn--settings:hover,
.nikba-consent__btn--save:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nikba-consent__prefs {
  border-top: 1px solid var(--nikba-consent-border);
  margin-top: 1rem;
  padding-top: 1rem;
}

.nikba-consent__prefs[hidden] {
  display: none !important;
}

.nikba-consent__category {
  align-items: flex-start;
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.nikba-consent__category:has(input:disabled) {
  cursor: default;
}

.nikba-consent__checkbox {
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  accent-color: var(--nikba-consent-accent);
  background: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.55) !important;
  border-radius: 0.2rem;
  flex: 0 0 auto;
  height: 1.15rem !important;
  margin: 0.15rem 0 0 !important;
  opacity: 1 !important;
  position: static !important;
  width: 1.15rem !important;
}

.nikba-consent__checkbox:disabled {
  cursor: not-allowed;
  opacity: 0.85 !important;
}

.nikba-consent__category-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.nikba-consent__category-title {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
}

.nikba-consent__category-desc {
  color: var(--nikba-consent-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.nikba-consent-map-placeholder {
  align-items: center;
  background: #eef3f0;
  color: #31453a;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  min-height: 18rem;
  padding: 1.5rem;
  text-align: center;
}

.nikba-consent-map-placeholder p {
  margin: 0;
  max-width: 22rem;
}

@media (min-width: 768px) {
  .nikba-consent {
    inset: auto 1.5rem 1.5rem auto;
    width: min(42rem, calc(100vw - 3rem));
  }
}
