/* Simple cookie consent banner */

#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #1f2937;
  color: #f3f4f6;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
}

#cookie-consent-banner.cookie-consent-hidden {
  display: none;
}

#cookie-consent-banner p {
  margin: 0;
  flex: 1 1 280px;
}

#cookie-consent-banner a {
  color: #93c5fd;
  text-decoration: underline;
}

#cookie-consent-banner a:hover,
#cookie-consent-banner a:focus {
  color: #bfdbfe;
}

.cookie-consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-consent-actions button {
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

#cookie-consent-accept {
  background: #2563eb;
  color: #ffffff;
}

#cookie-consent-accept:hover {
  background: #1d4ed8;
}

#cookie-consent-decline {
  background: transparent;
  border-color: #6b7280;
  color: #f3f4f6;
}

#cookie-consent-decline:hover {
  background: #374151;
}

/* Visible keyboard focus for accessibility */
.cookie-consent-actions button:focus-visible,
#cookie-consent-banner a:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent-actions button {
    transition: none;
  }
}

@media (max-width: 480px) {
  #cookie-consent-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .cookie-consent-actions {
    justify-content: flex-end;
  }
}
