/* Cookie consent bar. Sits under the book announcement
   (#buildBanner, fixed bottom, z-index 90) and is lifted
   clear of it by --cookie-lift in js/consent.js.
   The announcement bar itself is not styled here. */

.cookie-banner {
  --cookie-lift: 0px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--cookie-lift);
  z-index: 80;
  background: #0d0d0d;
  color: #ffffff;
  border-top: 1px solid #262626;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
  max-height: calc(100vh - var(--cookie-lift) - 4.5rem);
  overflow: auto;
  transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cookie-banner__copy {
  min-width: 0;
}

.cookie-banner:focus {
  outline: none;
}

.cookie-banner--instant {
  transition: none;
}

.cookie-banner__title {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin-bottom: 0.2rem;
}

.cookie-banner__text {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  color: #d4d4d4;
}

.cookie-banner__text a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__text a:hover {
  color: #ffffff;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-banner__choice {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  min-width: 6.75rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}

.cookie-banner__choice:hover {
  background: #ffffff;
  color: #0d0d0d;
}

.cookie-banner__choice:focus-visible,
.cookie-settings:focus-visible {
  outline: 2px solid #d14b28;
  outline-offset: 2px;
}

.cookie-settings {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: inherit;
  color: #525252;
  cursor: pointer;
}

.footer__links .cookie-settings:hover,
.error-footer .cookie-settings:hover {
  color: #a3a3a3;
}

.error-footer .cookie-settings {
  margin-left: 1.25rem;
}

@media (max-width: 720px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem 1.25rem;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .cookie-banner__choice {
    min-width: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: none;
  }
}
