/* Cookie consent banner. Uses the modern design tokens, with fallbacks for the legacy pages. */
.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  max-width: 560px;
  margin: 0 auto;
  padding: 20px;
  background: var(--bs-surface, #ffffff);
  color: var(--bs-body-color, #1f2937);
  border: 1px solid var(--bs-border-color, #e5e7eb);
  border-radius: var(--radius-xl, 12px);
  box-shadow: var(--shadow-2xl, 0 20px 50px rgba(0, 0, 0, 0.25));
  font-family: var(--font-primary, inherit);
  font-size: 14px;
  line-height: 1.5;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: inherit;
}
.cookie-consent-text { margin: 0 0 16px; }
.cookie-consent-text a { color: var(--bs-primary, #2563eb); text-decoration: underline; }
.cookie-consent-options { display: grid; gap: 10px; margin: 0 0 16px; }
.cookie-consent-options[hidden] { display: none; }
.cookie-consent-option { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-weight: normal; cursor: pointer; }
.cookie-consent-option input { margin-top: 3px; flex: none; }
.cookie-consent-option small { display: block; color: var(--bs-gray-600, #6b7280); }
.cookie-consent-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
/* Both choices get the same weight, so refusing is as easy as accepting */
.cookie-consent-btn {
  flex: 1 1 auto;
  padding: 8px 14px;
  font: inherit;
  font-weight: 600;
  color: var(--bs-body-color, #1f2937);
  background: transparent;
  border: 1px solid var(--bs-border-color, #d1d5db);
  border-radius: var(--radius-md, 8px);
  cursor: pointer;
}
.cookie-consent-btn[hidden] { display: none; }
.cookie-consent-btn[data-cookie-action="all"],
.cookie-consent-btn[data-cookie-action="necessary"],
.cookie-consent-btn[data-cookie-action="save"] {
  color: #ffffff;
  background: var(--bs-primary, #2563eb);
  border-color: var(--bs-primary, #2563eb);
}
.cookie-consent-btn:focus-visible { outline: 2px solid var(--bs-primary, #2563eb); outline-offset: 2px; }
@media (max-width: 480px) {
  .cookie-consent { padding: 16px; }
  .cookie-consent-btn { flex-basis: 100%; }
}
