/* === BANER COOKIE === */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #cb1210; /* 🔴 kolor panelu */
  color: #ededb1; /* 🟡 kolor tekstu */
  padding: 10px 15px; /* kompaktowa wysokość */
  text-align: center;
  font-size: 14px;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  line-height: 1.3;

  /* 🎞️ Animacja wejścia */
  transform: translateY(100%);
  opacity: 0;
  animation: slideUp 0.5s ease-out forwards;
}

/* 🔄 Kluczowe klatki animacji */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* === TEKST === */
#cookie-banner p {
  margin: 0 10px 5px 0;
  flex: 1 1 50px;
}

/* === PRZYCISKI === */
.cookie-btn {
  background: #015927; /* 🟢 kolor przycisków */
  border: none;
  color: #ededb1;
  padding: 6px 14px;
  margin: 3px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease-in-out, transform 0.1s;
  font-size: 13px;
}

.cookie-btn:hover {
  background: #017c33;
  transform: scale(1.05);
}

.cookie-btn.reject {
  background: #7a0d0c; /* ciemniejszy odcień czerwonego */
}

.cookie-btn.reject:hover {
  background: #8f100f;
}

/* === PRZYCISK ZMIANY DECYZJI === */
#cookie-change {
  position: fixed;
  bottom: 12px;
  right: 12px;
  background: #015927;
  color: #ededb1;
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  font-size: 12px;
  transition: opacity 0.6s ease-in, transform 0.1s;
  animation: fadeIn 1s 0.5s forwards; /* ✨ Płynne pojawienie się */
}

/* 🔄 Kluczowe klatki animacji dla przycisku */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 0.9;
    transform: translateY(0);
  }
}

#cookie-change:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* === MOBILNA WERSJA === */
@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column;
    font-size: 13px;
    padding: 12px;
  }

  .cookie-btn {
    width: 100%;
    max-width: 240px;
  }
}
