/* POPIA/GDPR Consent Banner — SDCA Phase 3b
   Only shown to SA visitors (CF-IPCountry == ZA) or when no consent stored.
   Gates GA4 cookies — no tracking before explicit consent. */

.consent-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: #2B2D31;
  border-top: 1px solid #3D4046;
  padding: 16px 24px;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
  animation: consentSlideUp 0.3s ease-out;
}
.consent-banner.active { display: block; }

@keyframes consentSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.consent-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.consent-text {
  flex: 1;
  min-width: 280px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  color: #C9D1D9;
  line-height: 1.5;
}
.consent-text a {
  color: #4CAF50;
  text-decoration: underline;
}

.consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.consent-btn {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.consent-btn-accept {
  background: #3D9A46;
  color: #000;
}
.consent-btn-accept:hover { background: #4CAF50; }
.consent-btn-decline {
  background: transparent;
  color: #8B949E;
  border: 1px solid #3D4046;
}
.consent-btn-decline:hover {
  border-color: #8B949E;
  color: #C9D1D9;
}

@media (max-width: 600px) {
  .consent-inner { flex-direction: column; text-align: center; }
  .consent-actions { width: 100%; justify-content: center; }
}
