/* ══════════════════════════════════════════════
   COOKIE CONSENT BANNER
   Uses the same colors and fonts as the rest of the site:
   --lb = light blue, --cb = dark blue, --ww = off-white
   ══════════════════════════════════════════════ */

#cc-banner, #cc-modal-overlay {
  font-family: 'Raleway', sans-serif;
  box-sizing: border-box;
}
#cc-banner *, #cc-modal-overlay * {
  box-sizing: border-box;
}

/* ---------- Bottom banner ---------- */
#cc-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--cb);
  color: var(--ww);
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  transform: translateY(110%);
  transition: transform .45s ease;
}
#cc-banner.cc-show { transform: translateY(0); }

#cc-banner-text {
  flex: 1 1 420px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 700px;
}
#cc-banner-text strong {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}
#cc-banner-text a {
  color: var(--lb);
  text-decoration: underline;
}

#cc-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex: 0 0 auto;
}

.cc-btn {
  border: none;
  cursor: pointer;
  padding: 11px 20px;
  border-radius: 30px;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  white-space: nowrap;
  transition: opacity .2s ease, transform .2s ease;
}
.cc-btn:hover { opacity: .88; transform: translateY(-1px); }

.cc-btn-accept { background: var(--lb); color: #fff; }
.cc-btn-reject { background: transparent; color: var(--ww); border: 1px solid rgba(245,249,255,.5); }
.cc-btn-customize { background: rgba(245,249,255,.12); color: var(--ww); border: 1px solid rgba(245,249,255,.3); }

/* ---------- Preferences modal ---------- */
#cc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,16,40,.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
#cc-modal-overlay.cc-show { display: flex; }

#cc-modal {
  background: #fff;
  color: #1a2233;
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
#cc-modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--cb);
  margin: 0 0 10px;
}
#cc-modal > p {
  font-size: 14px;
  line-height: 1.6;
  color: #46506b;
  margin: 0 0 22px;
}

.cc-cat {
  border-top: 1px solid #e7ecf5;
  padding: 16px 0;
}
.cc-cat:last-of-type { border-bottom: 1px solid #e7ecf5; }

.cc-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.cc-cat-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--cb);
}
.cc-cat-desc {
  font-size: 13px;
  color: #63708f;
  line-height: 1.5;
  margin-top: 6px;
}
.cc-cat-locked {
  font-size: 12px;
  color: #94a1bd;
  font-style: italic;
}

/* Toggle switch */
.cc-switch {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
}
.cc-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cc-switch label {
  position: absolute;
  inset: 0;
  background: #d3d9e8;
  border-radius: 30px;
  cursor: pointer;
  transition: background .2s ease;
}
.cc-switch label::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s ease;
}
.cc-switch input:checked + label { background: var(--lb); }
.cc-switch input:checked + label::before { transform: translateX(18px); }
.cc-switch input:disabled + label { cursor: not-allowed; background: #b9c6e0; }

#cc-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
#cc-modal-actions .cc-btn-accept,
#cc-modal-actions .cc-btn-reject { color: #fff; }
#cc-modal-actions .cc-btn-reject { background: #7c8aa8; border: none; }
#cc-modal-actions .cc-btn-save { background: var(--cb); color: #fff; }

/* Small "Cookie Settings" link for the footer, so people can change their mind later */
.cc-footer-link {
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
}

@media (max-width: 640px) {
  #cc-banner { padding: 18px; }
  #cc-banner-actions { width: 100%; }
  .cc-btn { flex: 1 1 auto; text-align: center; }
}
