/* Cookie consent banner (see /js/consent.js) */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 680px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid #2a2e3d;
  border-radius: 8px;
  background: #1b1e2b;
  color: #ffffffcc;
  font: 14px/1.5 "Inter", Helvetica, Arial, sans-serif;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 10001;
}

/* The display rule above would otherwise override the hidden attribute */
.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  flex: 1;
}

.cookie-banner a {
  color: #287cff;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* Accept and Reject look the same so that rejecting is as easy as accepting */
.cookie-buttons button {
  min-width: 96px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: #287cff;
  color: white;
  font: 500 14px/1 "Inter", Helvetica, Arial, sans-serif;
  cursor: pointer;
}

.cookie-buttons button:hover {
  background: #4a91ff;
}

@media (max-width: 575px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-buttons button {
    flex: 1;
  }
}

/* "Cookie Settings" in the footer looks like the other footer links */
footer button {
  padding: 0;
  border: 0;
  background: none;
  color: #ffffff7f;
  font: inherit;
  cursor: pointer;
}
