/*
  Cookie-consent card. 2026-10-12: rebuilt as a compact floating white
  card (anchored bottom-left) instead of the previous full-width dark
  bottom bar, to match the reference main-site cookie component. Uses
  only tokens already established elsewhere on the site: --color-surface
  (the same white used for alternating content-section cards),
  --color-border/--color-text/--color-heading, --radius-md/--shadow-sm
  (the same radius/shadow used for legal-page panels and section
  cards), and the real sitewide .button1.color1/.color2 button classes
  -- no new colors, no new button style, nothing invented. Markup is
  injected by cookie-consent.js; this file only styles it.
*/
.cookie-consent {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 10000;
  width: 100%;
  max-width: 360px;
  background: var(--color-surface);
  color: var(--color-text);
  border: var(--color-border) 1px solid;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.cookie-consent[hidden] {
  display: none;
}
.cookie-consent-inner {
  position: relative;
  padding: 16px 18px;
}
.cookie-consent-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  line-height: 22px;
  text-align: center;
  padding: 0;
  margin: 0;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.1em;
  color: var(--color-text);
  cursor: pointer;
}
.cookie-consent-close:hover,
.cookie-consent-close:focus-visible {
  background: var(--color-background);
  color: var(--color-heading);
}
.cookie-consent-heading {
  margin: 0 22px 6px 0;
  font-size: 1em;
  line-height: 1.3;
  font-weight: bold;
  color: var(--color-heading);
}
.cookie-consent-body {
  margin: 0 0 12px 0;
  font-size: 0.85em;
  line-height: 1.45;
  color: var(--color-text);
}
.cookie-consent-body a {
  color: var(--color-accent);
  text-decoration: underline;
}
.cookie-consent-body a:hover,
.cookie-consent-body a:focus-visible {
  text-decoration: none;
}
.cookie-consent-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cookie-consent-actions .button1 {
  width: 100%;
  text-align: center;
  font-size: 0.85em;
  padding: 0.5em 0.9em;
  border-radius: var(--radius-md);
}
.cookie-consent-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--color-accent);
  text-decoration: underline;
  font-size: 0.8em;
}
.cookie-consent-more:hover,
.cookie-consent-more:focus-visible {
  text-decoration: none;
}

@media (max-width: 420px) {
  .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-width: none;
    width: auto;
  }
}
