/* Cookie-consent banner + preferences modal. Dependency-free, CSP-friendly. */
.cc-hidden {
  display: none !important;
}

.cc-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 60;
  background: #121824;
  border-top: 1px solid #253044;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
  padding: 1rem 1.2rem;
}
.cc-banner-in {
  max-width: 1100px;
  margin-inline: auto;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cc-text {
  color: #cdd8e6;
  font-size: 0.92rem;
  margin: 0;
  max-width: 62ch;
}
.cc-text a {
  color: #4ea1ff;
}
.cc-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.cc-btn {
  font: inherit;
  cursor: pointer;
  padding: 0.6rem 1rem;
  border-radius: 9px;
  border: 1px solid #253044;
  background: #1a2232;
  color: #e8edf4;
  font-weight: 600;
}
.cc-btn:hover {
  filter: brightness(1.1);
}
.cc-btn-primary {
  background: #4ea1ff;
  color: #042039;
  border-color: transparent;
}
.cc-btn:focus-visible {
  outline: 3px solid #4ea1ff;
  outline-offset: 2px;
}

/* Modal */
.cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.cc-modal {
  background: #121824;
  border: 1px solid #253044;
  border-radius: 14px;
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.4rem;
}
.cc-modal h2 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
  color: #e8edf4;
}
.cc-modal p {
  color: #9fb0c3;
  font-size: 0.9rem;
}
.cc-cat {
  border: 1px solid #253044;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  margin: 0.7rem 0;
}
.cc-cat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.cc-cat-head strong {
  color: #e8edf4;
}
.cc-cat p {
  margin: 0.4rem 0 0;
}
.cc-switch {
  width: 20px;
  height: 20px;
  accent-color: #43c08a;
}
.cc-locked {
  color: #43c08a;
  font-size: 0.8rem;
  font-weight: 600;
}
.cc-modal-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
