.cookie-consent[hidden] { display: none; }
.cookie-consent {
  position: fixed;
  z-index: 1000;
  right: 0;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
  padding: 20px clamp(24px, 5vw, 80px) calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #1b211d;
  background: #f0ebde;
  color: #1b211d;
  box-shadow: 0 -8px 24px rgba(27, 33, 29, .08);
}
.cookie-consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  max-width: 1600px;
  margin: 0 auto;
}
.cookie-consent-copy { max-width: 660px; }
.cookie-consent-description {
  margin: 0;
  font: 400 16px/1.45 Recia, serif;
}
.cookie-consent-description a { color: inherit; font-size: 0.82em; text-underline-offset: 3px; }
.cookie-consent-actions { display: flex; flex: 0 0 auto; gap: 10px; }
.cookie-consent-actions button {
  min-width: 160px;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid #1b211d;
  border-radius: 0;
  background: transparent;
  color: #1b211d;
  font: 600 12px/1.4 'IBM Plex Mono', monospace;
  cursor: pointer;
}
@media (hover: hover) {
  .cookie-consent-actions button:hover {
    background: #B89C68;
    color: #181818;
    -webkit-text-fill-color: #181818;
  }
}
.cookie-consent :focus-visible { outline: 2px solid #1b211d; outline-offset: 3px; }
body.cookie-consent-open .back-to-top,
body.cookie-consent-open .message-sally { visibility: hidden; pointer-events: none; }
@media (max-width: 900px) {
  .cookie-consent-inner { align-items: stretch; flex-direction: column; gap: 18px; }
  .cookie-consent-actions { width: 100%; }
  .cookie-consent-actions button { flex: 1; }
}
@media (max-width: 899px) {
  .cookie-consent-home {
    position: sticky;
    right: auto;
    bottom: auto;
    left: auto;
    top: calc(50px + env(safe-area-inset-top, 0px));
    z-index: 31;
    box-shadow: none;
  }
  body.cookie-consent-open:has(.cookie-consent-home) .back-to-top.is-visible,
  body.cookie-consent-open:has(.cookie-consent-home) .message-sally.is-visible {
    visibility: visible;
    pointer-events: auto;
  }
}
@media (max-width: 520px) {
  .cookie-consent { padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .cookie-consent.cookie-consent-home { padding-top: 22px; }
  .cookie-consent-inner { gap: 9px; }
  .cookie-consent-description { font-size: 12px; line-height: 1.35; }
  .cookie-consent-description a { font-size: 11px; }
  .cookie-consent-actions { flex-direction: row; gap: 8px; }
  .cookie-consent-actions button { width: auto; min-width: 0; min-height: 38px; padding: 6px 10px; font-size: 11px; }
}
