/* The statistics question at the foot of the page, and the two answers on /consent. */

.consent-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 50;
  background: var(--card);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -6px 24px rgba(20, 21, 26, 0.08);
  padding: 1rem 0;
}

.consent-bar .wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.consent-bar p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  max-width: 68ch;
}

.consent-bar strong {
  color: var(--ink);
}

.consent-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.consent-bar .consent-choice {
  margin: 0 0 0 auto;
  flex-wrap: nowrap;
}

/* The footer, with its imprint and privacy links, stays reachable above the question. */
body:has(.consent-bar) {
  padding-bottom: 7rem;
}

/*
 * Small screens: the same words, set tighter, so a visitor arriving from a shared link still
 * sees the task and its score above the question. Both answers stay the same size.
 */
@media (max-width: 720px) {
  .consent-bar {
    padding: 0.65rem 0 calc(0.65rem + env(safe-area-inset-bottom, 0px));
  }
  .consent-bar .wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }
  .consent-bar p {
    font-size: 0.8125rem;
    line-height: 1.42;
  }
  .consent-bar .consent-choice {
    margin: 0;
    gap: 0.5rem;
  }
  .consent-bar .consent-choice button {
    flex: 1;
    padding-block: 0.5rem;
    font-size: var(--text-sm);
  }
  body:has(.consent-bar) {
    padding-bottom: 10rem;
  }
}
