/* ===== Cookie consent notice ===== */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000; /* above the chat widget (998) and navbar (999) */
  background: #111111;
  color: #fff;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

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

.cookie-banner-text {
  margin: 0;
  font-size: 0.85rem;
  max-width: 640px;
  text-align: center;
}

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

.cookie-banner-actions {
  flex-shrink: 0;
}

/* Shift the floating chat button up while the banner occupies the bottom of the
   viewport, so the two don't overlap. --cookie-banner-height is set by
   cookie_consent.js from the banner's actual rendered height, since it wraps to
   more lines on narrow screens. */
body.cookie-banner-visible .chat-widget {
  bottom: calc(var(--cookie-banner-height, 60px) + 20px);
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
}

/* ===== Cookie Policy page table ===== */

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  background: var(--card);
  font-weight: 600;
}

.cookie-table code {
  background: var(--card);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}
