/* The content stays visible without JavaScript or when motion is reduced. */
@media (prefers-reduced-motion: no-preference) {
  [data-entry-state="waiting"]:not(:focus-within) { opacity: 0; }
  [data-entry-state="visible"] { animation: mm-enter-fade .6s linear backwards; }
  [data-entry="caption"] { animation-delay: .3s; }
  [data-entry="rise"][data-entry-state="visible"],
  .performance-channel[role="tabpanel"]:not([hidden]) {
    animation: mm-enter-fade .3s linear backwards, mm-enter-rise .55s cubic-bezier(.165,.84,.44,1) backwards;
  }
  .newsletter-form[data-entry-state="visible"], .hero-content > .button[data-entry-state="visible"] { animation-delay: .15s; }
  [data-entry]:focus-within { animation: none; }
  .cookie-banner:not([hidden]) { animation: mm-cookie-appear .32s cubic-bezier(.165,.84,.44,1) backwards; }
  @keyframes mm-enter-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes mm-enter-rise { from { translate: 0 25px; } to { translate: 0 0; } }
  @keyframes mm-cookie-appear { from { opacity: 0; translate: 0 12px; } }
}

:root {
  --cookie-gap: clamp(12px, 1.5vw, 24px);
  --cookie-bottom: max(var(--cookie-gap), env(safe-area-inset-bottom));
}
html:has(.cookie-banner:not([hidden])) {
  --cookie-clearance: calc(var(--cookie-inset, 0px) + var(--cookie-bottom) + var(--cookie-gap));
  scroll-padding-bottom: var(--cookie-clearance);
}
body:has(.cookie-banner:not([hidden]))::after { content: ""; display: block; height: var(--cookie-clearance); }
.cookie-banner {
  position: fixed;
  z-index: 4;
  bottom: var(--cookie-bottom);
  left: max(var(--cookie-gap), env(safe-area-inset-left));
  right: max(var(--cookie-gap), env(safe-area-inset-right));
  width: auto;
  max-width: 332px;
  max-height: calc(100dvh - var(--header-height) - var(--cookie-bottom) - var(--cookie-gap));
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px 20px 16px;
  border: 1px solid rgb(24 24 24 / 12%);
  border-radius: 12px;
  background: #fcfbf9;
  box-shadow: 0 4px 20px rgb(0 0 0 / 10%);
  color: #1c1c1b;
  font: 400 14px/1.45 Manrope, -apple-system, BlinkMacSystemFont, sans-serif;
  text-align: left;
  color-scheme: light;
}
.cookie-banner p { margin: 0; font: inherit; text-wrap: pretty; }
.cookie-actions { display: flex; gap: 8px; margin-top: 14px; }
.cookie-actions button {
  flex: 1;
  min-height: 44px;
  padding: 7px 12px;
  border: 1px solid #bcbcb7;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: 550 14px/1.35 Manrope, sans-serif;
  cursor: pointer;
}
@media (hover: hover) {
  .cookie-actions button:hover { background: #efeeeb; }
}
.cookie-banner :focus-visible { outline: 2px solid #305ac9; outline-offset: 2px; }

@media print {
  .cookie-banner { display: none !important; }
  [data-entry] { animation: none !important; opacity: 1 !important; }
  body:has(.cookie-banner:not([hidden]))::after { display: none; }
}
