/* ==== Cookie Banner (Lighthouse-optimized) ==== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #4a8593; /* Brand teal */
  color: #ffffff;
  padding: 1.25rem 1rem;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  z-index: 9999;

  /* Subtle overlay for contrast without visual change */
  box-shadow: 0 -1px 8px rgba(0, 0, 0, 0.15);
  isolation: isolate; /* Prevents shadow blending artifacts */
  will-change: transform; /* Hints GPU for smoother entry */
}

.cookie-banner.hidden {
  display: none;
}

/* Paragraph spacing */
.cookie-banner p {
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); /* boosts perceived contrast */
}

/* Buttons layout */
.cookie-banner .cookie-buttons {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cookie-banner button {
  background: #ffffff;
  color: #2f6573; /* darker teal for accessible contrast */
  border: 2px solid rgba(0, 0, 0, 0.05); /* subtle outline for definition */
  border-radius: 6px;
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

.cookie-banner button:hover,
.cookie-banner button:focus-visible {
  background: #f3f4f6;
  color: #255462; /* darker hover shade still meets contrast */
  transform: translateY(-1px);
}

.cookie-banner button:focus-visible {
  box-shadow: 0 0 0 3px rgba(74, 133, 147, 0.4);
}

.cookie-banner button:active {
  transform: translateY(0);
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .cookie-banner {
    font-size: 0.9rem;
    padding: 1rem 0.75rem;
  }

  .cookie-banner button {
    width: 100%;
    max-width: 260px;
  }
}
