/* TSAI Compliance banner */
.tsai-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2147483000;
  background: #1f2329;
  color: #f3f4f6;
  box-shadow: 0 -2px 24px rgba(0, 0, 0, 0.35);
  font-size: 14px;
  line-height: 1.5;
}
/* Use !important so a theme's broad `div { display: ... }` rules can't override
   our hide state. show()/hide() toggle the [hidden] attribute. */
.tsai-consent[hidden] { display: none !important; }

.tsai-consent__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.tsai-consent__body { flex: 1 1 480px; min-width: 280px; }
.tsai-consent__heading { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.tsai-consent__text { margin: 0 0 10px; color: #d1d5db; }
.tsai-consent__text a { color: #93c5fd; }

.tsai-consent__categories { display: flex; flex-direction: column; gap: 6px; }
.tsai-consent__cat {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: #d1d5db;
  cursor: pointer;
}
.tsai-consent__cat input { margin-top: 3px; }
.tsai-consent__cat--locked { opacity: 0.7; cursor: default; }

.tsai-consent__actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: wrap;
}
.tsai-consent__btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.tsai-consent__btn--primary { background: #2563eb; color: #fff; }
.tsai-consent__btn--primary:hover { background: #1d4ed8; }
.tsai-consent__btn--ghost {
  background: transparent;
  color: #e5e7eb;
  border-color: #4b5563;
}
.tsai-consent__btn--ghost:hover { background: rgba(255, 255, 255, 0.06); }

/* Notice variant — single compact row, one button. */
.tsai-consent--notice .tsai-consent__inner {
  align-items: center;
  padding: 12px 20px;
}
.tsai-consent--notice .tsai-consent__text {
  flex: 1 1 auto;
  margin: 0;
  color: #d1d5db;
}

@media (max-width: 720px) {
  .tsai-consent__inner { flex-direction: column; }
  .tsai-consent__actions { width: 100%; }
  .tsai-consent__btn { flex: 1 1 auto; text-align: center; }
}
