/* style-cookie-banner.css — Informationsbanner om nödvändig cookie. */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10002; /* över #layout-switcher (10001) */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 20px;
  background: rgba(22, 22, 46, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.32);
  color: rgba(255, 255, 255, 0.86);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.88rem;
  line-height: 1.5;
  animation: cookie-banner-in 250ms ease-out;
}

#cookie-banner.is-hiding {
  animation: cookie-banner-out 250ms ease-in forwards;
}

#cookie-banner p {
  margin: 0;
  max-width: 760px;
  flex: 1 1 auto;
}

#cookie-banner a {
  color: #ffffff;
  text-decoration: underline;
}
#cookie-banner a:hover { color: #FECC02; }

#cookie-banner-ok {
  flex: 0 0 auto;
  background: #ffffff;
  color: #1a1a2e;
  border: none;
  border-radius: 50px;
  padding: 10px 24px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
#cookie-banner-ok:hover  { background: #FECC02; }
#cookie-banner-ok:active { transform: translateY(1px); }
#cookie-banner-ok:focus-visible {
  outline: 2px solid #FECC02;
  outline-offset: 2px;
}

@keyframes cookie-banner-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes cookie-banner-out {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(100%); opacity: 0; }
}

/* Mobil – stacka text och knapp */
@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 16px;
    text-align: center;
  }
  #cookie-banner-ok { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #cookie-banner,
  #cookie-banner.is-hiding { animation: none; }
}
