.cookie-banner {
  position: fixed; bottom: 16px; left: 16px;
  max-width: 380px;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 20px 48px rgba(0,0,0,.5);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: #aaa;
  z-index: 999; opacity: 0;
  transform: translateY(20px);
  transition: opacity .22s, transform .22s;
}
.cookie-banner.is-shown { opacity: 1; transform: translateY(0); }
.cookie-banner h4 { color: #fff; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 14px; margin: 0 0 8px 0; }
.cookie-banner p { margin: 0; line-height: 1.5; }
.cookie-banner-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; align-items: center; }
.cookie-banner button, .cookie-banner a {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  border: 0; border-radius: 8px; padding: 10px 16px; cursor: pointer;
  text-decoration: none;
}
.cookie-banner .btn-accept { background: #a78bfa; color: #080808; }
.cookie-banner .btn-reject { background: rgba(255,255,255,.08); color: #fff; }
.cookie-banner .btn-config { background: transparent; color: #888; padding: 10px 8px; }
.cookie-banner .btn-config:hover { color: #ccc; }
/* Mobile: compact pill at the bottom respecting safe-area, so the text is
   fully readable on short viewports and never gets clipped. */
@media (max-width: 768px){
  .cookie-banner {
    left: 8px; right: 8px; max-width: none;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    padding: 12px 14px 12px;
    border-radius: 14px;
    font-size: 12px;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
  }
  .cookie-banner h4 { font-size: 13px; margin: 0 0 4px 0; }
  .cookie-banner p { line-height: 1.4; font-size: 12px; }
  .cookie-banner-actions { margin-top: 10px; gap: 6px; }
  .cookie-banner button, .cookie-banner a { padding: 8px 12px; font-size: 12px; }
  .cookie-banner .btn-config { padding: 8px 6px; }
}
@media (prefers-reduced-motion: reduce){
  .cookie-banner { transition: none; }
}
