/* The consent banner of privacy-choice.js: a slim bar along the bottom edge, never a wall (the
   page stays usable behind it). On the home page, which fills one screen, it lies under the idea box and its
   connect row: on a wide window as one row (words left, answers right), on a narrow one as a short card. It
   stands on the landing pages, the dashboard and the city alike, so it carries its own colours and type instead
   of a page's tokens. Its two answers, "Reject" and "Accept all", have the same size and weight: refusing must be
   as easy as allowing.
   The width leaves the lower right corner free, where Google's reCAPTCHA badge sits. */
.consent {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 2147480000;
  display: flex;
  align-items: center;
  gap: 18px;
  box-sizing: border-box;
  width: min(1180px, calc(100vw - 180px));
  padding: 14px 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: #071024;
  box-shadow: 0 18px 50px rgba(2, 8, 23, 0.6);
  color: #f8fafc;
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: left;
  transform: translateX(-50%);
}

.consent-copy {
  flex: 1;
  min-width: 0;
}

.consent-title {
  margin: 0 0 2px;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
}

.consent-text {
  margin: 0;
  color: #b4c0d6;
  font-size: 0.75rem;
  line-height: 1.5;
}

.consent-link {
  color: #93c5fd;
  text-decoration: underline;
  white-space: nowrap;
}

.consent-actions {
  display: grid;
  flex: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.consent-button {
  min-width: 130px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.06);
  color: #f8fafc;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

.consent-button:hover {
  background: rgba(248, 250, 252, 0.12);
}

.consent-button:focus-visible,
.consent-link:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* The same shape and weight as "Reject"; only the border says which one says yes. */
.consent-button-allow {
  border-color: #3b82f6;
}

/* Narrow windows: a short card across the bottom, the answers under the words. Its words fit two lines on a small
   phone, so the card stays below the home page's idea box. */
@media (max-width: 899px) {
  .consent {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    display: block;
    width: auto;
    padding: 12px;
    transform: none;
  }

  .consent-actions {
    margin-top: 10px;
  }

  .consent-button {
    min-width: 0;
  }
}
