/* ═══════════════════════════════════════════════════════════════════
   Consent dialog overlay — default theme (Topic 97)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Overlay (full-viewport fixed) ──────────────────────────────── */
.consent-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* hidden by default — shown by adding --visible */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.consent-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Backdrop ────────────────────────────────────────────────────── */
.consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

/* ── Panel ───────────────────────────────────────────────────────── */
.consent-panel {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

/* ── Header ──────────────────────────────────────────────────────── */
.consent-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.consent-title {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.consent-subtitle {
  display: block;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.55;
}

/* ── Category list ───────────────────────────────────────────────── */
.consent-category-list {
  padding: 16px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.consent-empty-msg {
  display: block;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.6;
  padding: 8px 0;
}

.consent-category-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: border-color 0.15s;
}

.consent-category-row--updated {
  border-color: #f59e0b;
  background: #fffbeb;
}

.consent-checkbox {
  margin-top: 2px;
  flex-shrink: 0;
}

.consent-category-info {
  flex: 1;
  min-width: 0;
}

.consent-category-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.consent-category-desc {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
}

.consent-updated-badge {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 4px;
  padding: 2px 8px;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.consent-footer {
  padding: 16px 28px 24px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.consent-btn {
  padding: 9px 22px;
  border-radius: 7px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
}
.consent-btn:hover  { opacity: 0.85; }
.consent-btn:active { transform: scale(0.97); }

.consent-btn--primary {
  background: #0f172a;
  color: #ffffff;
}

.consent-btn--secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.consent-btn--ghost {
  background: transparent;
  color: #475569;
  border: 1px solid #cbd5e1;
}
