/* ==========================================================================
   U07 — Cookie consent (templates/cookie-consent.html)
   Page body + the floating consent banner.
   ========================================================================== */

/* ---- Page ------------------------------------------------------------- */
.consent-page {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - 160px);
  padding-top: 48px;
  padding-bottom: 96px;
}

.consent-page__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 640px;
}

.consent-page__title {
  font-size: var(--t-h1);
}

.consent-page__lead {
  margin: 0;
  color: var(--muted);
}

.consent-page__saved {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Compact secondary button ("Privacy settings", "Save choices") */
.btn--xs {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 15px;
}

/* ---- Consent banner --------------------------------------------------- */
.consent {
  position: fixed;
  left: 50%;
  bottom: 64px;
  z-index: 85;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(620px, calc(100vw - 32px));
  padding: 24px;
  border: 1px solid var(--ink);
  background: var(--surface);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .45);
  transform: translateX(-50%);
}

.consent__title {
  font-size: 18px;
  font-weight: 600;
}

.consent__text {
  font-size: 15px;
  color: var(--muted);
}

/* Individual toggles */
.consent__options {
  border-top: 1px solid var(--line);
}

.consent__option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.consent__check {
  width: 22px;
  height: 22px;
  accent-color: var(--ink);
}

/* Reject / accept — deliberately equal weight */
.consent__choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.consent__choice {
  justify-content: center;
}

.consent__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.consent__link {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  cursor: pointer;
}
