/* ── Consent banner ────────────────────────────────────────── */
.consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #0a0f1e;
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.consent-banner--visible {
  opacity: 1;
  transform: translateY(0);
}

.consent-banner__copy {
  flex: 1;
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.5;
}

.consent-banner__copy a {
  color: var(--accent-teal, #06b6d4);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  align-items: center;
}

.btn.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

@media (max-width: 640px) {
  .consent-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 12px;
  }

  .consent-banner__actions {
    flex-direction: column;
    gap: 8px;
  }

  .consent-banner__actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ── Consent modal ─────────────────────────────────────────── */
.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.consent-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.consent-modal__panel {
  position: relative;
  background: var(--bg-card, #1e293b);
  border: 1px solid var(--border, rgba(255,255,255,0.08));
  border-radius: 8px;
  padding: 28px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.consent-modal__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text, #f1f5f9);
}

.consent-modal__desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.5;
}

.consent-modal__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--border, rgba(255,255,255,0.08));
}

.consent-modal__row-info {
  flex: 1;
}

.consent-modal__row-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text, #f1f5f9);
  margin-bottom: 4px;
  cursor: pointer;
}

.consent-modal__required {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent-teal, #06b6d4);
  white-space: nowrap;
}

.consent-modal__row-desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.4;
}

.consent-modal__toggle {
  flex-shrink: 0;
  width: 36px;
  height: 20px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
  margin-top: 2px;
}

.consent-modal__toggle::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.consent-modal__toggle:checked {
  background: var(--accent-teal, #06b6d4);
}

.consent-modal__toggle:checked::after {
  transform: translateX(16px);
}

.consent-modal__toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.consent-modal__save {
  align-self: flex-end;
  margin-top: 4px;
}
