/* Cookie banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 17, 21, 0.95);
  color: white;
  padding: 1rem;
  display: none;
  z-index: 50;
}

#cookie-banner button {
  background-color: #7aa12c;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  margin-left: 0.5rem;
  color: white;
  font-weight: 600;
}

#cookie-banner .prefs-btn {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  margin-left: 0.5rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#cookie-banner a {
  text-decoration: underline;
}

/* Cookie preferences modal */
#cookie-preferences {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}

#cookie-preferences .panel {
  background: white;
  color: #0f1115;
  padding: 1.5rem;
  border-radius: 0.75rem;
  max-width: 28rem;
  width: 100%;
}

#cookie-preferences .panel h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

#cookie-preferences .panel .options div {
  margin-bottom: 0.5rem;
}

#cookie-preferences .panel .actions {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

#cookie-preferences .panel .actions button {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
}

#cookie-preferences .panel .actions .save-btn {
  background: #7aa12c;
  color: white;
}

#cookie-preferences .panel .actions .cancel-btn {
  background: #f0f0f0;
  color: #0f1115;
}

/* Responsive adjustments for small screens */
@media (max-width: 640px) {
  /* Make the cookie preferences panel adapt to mobile widths */
  #cookie-preferences .panel {
    width: 90vw;
    max-width: none;
  }
}