.cookie {
  position: fixed; z-index: 85; left: 16px; bottom: calc(14px + env(safe-area-inset-bottom));
  width: min(400px, calc(100vw - 32px)); padding: 18px 18px 16px; border-radius: 20px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-float);
  animation: cookie-in 520ms var(--ease) both;
}
.cookie:focus { outline: none; }
.cookie:focus-visible { outline: 2px solid var(--focus, currentColor); outline-offset: 3px; }

body:has(.tray:not([hidden])) .cookie { bottom: calc(96px + env(safe-area-inset-bottom)); }
.cookie__h { margin: 0 0 6px; font-size: 1.0625rem; line-height: 1.3; letter-spacing: -.01em; }
.cookie[data-mode="settings"] .cookie__h { padding-right: 40px; }
.cookie__p { margin: 0 0 14px; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
.cookie__p a { text-decoration: underline; text-underline-offset: 3px; }
.cookie__status { margin: -4px 0 14px; font-size: .9375rem; line-height: 1.45; font-weight: 550; color: var(--ink); }
.cookie__actions { display: flex; gap: 8px; }
.cookie__actions .btn { flex: 1 1 0; min-width: 0; justify-content: center; }
.cookie__close {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px;
  padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer;
}
.cookie__close:hover { color: var(--ink); background: rgba(var(--ink-rgb), .06); }

@keyframes cookie-in { from { transform: translateY(12px); } to { transform: none; } }

.foot__cookies { padding: 0; border: 0; background: none; color: var(--on-dark-2); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 24px; }
.foot__cookies:hover { color: var(--on-dark); }

@media (max-width: 520px) {
  .cookie { left: 12px; width: calc(100vw - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .cookie { animation: none; }
}
@media print {
  .cookie { display: none; }
}
