/* =========================================================
   Cookie Consent Banner
   ========================================================= */

#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: #1a1a2e;
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.5;
  padding: 16px 24px;
  display: none; /* shown via JS */

  /* Flex layout: text left, buttons right */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;

  /* Slide-up animation — starts translated down, transitions to natural position */
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

#cookie-banner.is-visible {
  transform: translateY(0);
}

#cookie-banner p {
  margin: 0;
  flex: 1 1 300px;
  color: rgba(255, 255, 255, 0.9);
}

#cookie-banner p a {
  color: #e94560;
  text-decoration: underline;
}

#cookie-banner p a:hover {
  color: #ffffff;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

#cookie-accept,
#cookie-decline {
  padding: 9px 20px;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

#cookie-accept {
  background-color: #e94560;
  color: #ffffff;
  border: none;
}

#cookie-accept:hover {
  opacity: 0.85;
}

#cookie-decline {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

#cookie-decline:hover {
  border-color: rgba(255, 255, 255, 0.8);
  opacity: 0.85;
}

/* Stack on small screens */
@media (max-width: 600px) {
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  #cookie-accept,
  #cookie-decline {
    flex: 1;
    text-align: center;
  }
}
