/* Cookie consent banner (see static/js/cookie-consent.js).
 *
 * A direct child of <body>, outside .main-content, so its z-index is not
 * trapped under the navbar's stacking context (same reason as the flash
 * popup). Sits below the flash popup (10000010) and above everything else. */
#cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10000000;
  margin: 0 auto;
  max-width: 720px;
  padding: 22px 24px;
  background: #1b1c21;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  color: #a4a7b1;
  font-size: 14px;
  line-height: 1.6;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
#cookie-consent.is-open {
  transform: translateY(0);
  opacity: 1;
}
#cookie-consent[hidden] {
  display: none;
}
#cookie-consent h6 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}
#cookie-consent p {
  margin: 0 0 16px;
}
#cookie-consent a {
  color: #fff;
  text-decoration: underline;
}
#cookie-consent .cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* Both buttons share size and weight: declining must be as easy as agreeing. */
#cookie-consent .cc-btn {
  flex: 1 1 180px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 30px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
#cookie-consent .cc-btn:hover,
#cookie-consent .cc-btn:focus-visible {
  background: #fff;
  color: #111215;
  outline: none;
}
#cookie-consent .cc-btn.cc-accept {
  background: #fff;
  color: #111215;
}
#cookie-consent .cc-btn.cc-accept:hover,
#cookie-consent .cc-btn.cc-accept:focus-visible {
  background: #e6e6e6;
}
@media (max-width: 575px) {
  #cookie-consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 18px 16px;
  }
  #cookie-consent .cc-btn {
    flex-basis: 100%;
  }
}
