/*!
 * Sustainable Cities Co. — Cookie Consent UI
 * Version: 1.0.0 — 2026-05-12
 * Brand palette: #0C2817, #BAD532, #DFEDC8, #E3E41A
 */

#sc-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99998;
  background: #0C2817;
  color: #DFEDC8;
  padding: 16px 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
  font-family: inherit;
  border-top: 2px solid #BAD532;
  animation: scConsentSlideUp .35s ease-out;
}
@keyframes scConsentSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
#sc-consent-banner .sc-consent-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
#sc-consent-banner .sc-consent-text { flex: 1 1 320px; }
#sc-consent-banner h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #E3E41A;
  font-weight: 700;
}
#sc-consent-banner p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.6;
  color: #DFEDC8;
}
.sc-consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.sc-btn {
  font: inherit;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: .92rem;
  transition: transform .15s, background .15s, border-color .15s;
}
.sc-btn:hover { transform: translateY(-1px); }
.sc-btn:focus-visible { outline: 2px solid #E3E41A; outline-offset: 2px; }
.sc-btn-primary {
  background: #BAD532;
  color: #0C2817;
  border-color: #BAD532;
}
.sc-btn-primary:hover { background: #c9e045; border-color: #c9e045; }
.sc-btn-secondary {
  background: transparent;
  color: #DFEDC8;
  border-color: rgba(223,237,200,.4);
}
.sc-btn-secondary:hover { border-color: #DFEDC8; background: rgba(223,237,200,.08); }
.sc-btn-link {
  background: transparent;
  color: #BAD532;
  border-color: transparent;
  text-decoration: underline;
  padding: 10px 12px;
}
.sc-btn-link:hover { color: #E3E41A; }

#sc-consent-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: inherit;
  animation: scConsentFadeIn .25s ease-out;
}
@keyframes scConsentFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
#sc-consent-modal .sc-consent-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12,40,23,.7);
  backdrop-filter: blur(4px);
}
#sc-consent-modal .sc-consent-modal-card {
  position: relative;
  background: #0C2817;
  color: #DFEDC8;
  border: 1.5px solid rgba(186,213,50,.3);
  border-radius: 14px;
  padding: 26px 28px;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
#sc-consent-modal h2 {
  margin: 0 0 18px;
  color: #E3E41A;
  font-size: 1.3rem;
  font-weight: 700;
}
.sc-cats { display: grid; gap: 14px; margin-bottom: 22px; }
.sc-cat {
  border: 1px solid rgba(223,237,200,.15);
  border-radius: 10px;
  padding: 14px 16px;
  background: rgba(186,213,50,.04);
}
.sc-cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.sc-cat-head strong {
  font-size: 1rem;
  color: #DFEDC8;
}
.sc-cat p {
  margin: 0;
  font-size: .87rem;
  color: rgba(223,237,200,.75);
  line-height: 1.55;
}
.sc-pill {
  font-size: .72rem;
  background: rgba(186,213,50,.18);
  color: #BAD532;
  padding: 2px 8px;
  border-radius: 999px;
  margin-inline-start: auto;
}

.sc-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.sc-switch input { opacity: 0; width: 0; height: 0; }
.sc-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(223,237,200,.18);
  border-radius: 24px;
  transition: background .2s;
}
.sc-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 18px;
  height: 18px;
  background: #DFEDC8;
  border-radius: 50%;
  transition: transform .2s;
}
.sc-switch input:checked + .sc-slider { background: #BAD532; }
.sc-switch input:checked + .sc-slider::before { transform: translateX(18px); }
[dir="rtl"] .sc-switch input:checked + .sc-slider::before { transform: translateX(-18px); }
.sc-switch input:disabled + .sc-slider { opacity: .6; cursor: not-allowed; }

@media (max-width: 640px) {
  #sc-consent-banner .sc-consent-inner { flex-direction: column; align-items: stretch; gap: 14px; }
  .sc-consent-actions { justify-content: stretch; flex-direction: column; }
  .sc-btn { width: 100%; }
}
