.cookie-notice {
  position: fixed;
  z-index: 20;
  inset: auto auto max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(720px, calc(100% - 48px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 24px;
  background: var(--background-inverse);
  color: var(--text-inverse);
  box-shadow: var(--drop-shadow);
  scrollbar-color: var(--icon-secondary) var(--background-inverse);
  animation: cookie-notice-enter 420ms var(--motion-ease, ease-out) both;
}
.cookie-notice__copy { flex: 1; min-width: 0; }
.cookie-notice__title { margin: 0 0 8px; font-size: var(--text-l); line-height: 1.2; }
.cookie-notice__text { margin: 0; font-size: var(--caption-l); line-height: 1.5; color: var(--text-inverse-secondary); }
.cookie-notice__text a { text-decoration: underline; text-underline-offset: 3px; }
.cookie-notice__text a:hover { text-decoration-thickness: 2px; }
.cookie-notice .cookie-notice__accept {
  flex: none;
  width: auto;
  min-width: 112px;
  min-height: 44px;
  padding: 12px 20px;
  color: var(--text-primary);
  font-size: var(--button-s);
  line-height: 1.2;
  touch-action: manipulation;
}
@keyframes cookie-notice-enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
  .cookie-notice {
    inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    width: auto;
    max-height: calc(100dvh - 32px);
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px;
  }
  .cookie-notice .cookie-notice__accept { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-notice { animation: none; }
}
