/*
 * The analytics question. inc/consent.php.
 *
 * The brand's deep green, so it reads as the site's own and not a
 * plug-in's. "No thanks" and "Accept analytics" are the same size and
 * weight, because a no has to be as easy as a yes. Bottom left on a
 * monitor, across the bottom on a phone, clear of the page's own buttons.
 */
.consent {
  position: fixed;
  z-index: 1000;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 560px;
  padding: 20px 20px 18px;
  border-radius: 18px;
  background: var(--brand, #07332D);
  color: #fff;
  box-shadow: 0 24px 48px -16px rgb(7 51 45 / 0.55), 0 2px 6px rgb(7 51 45 / 0.25);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 200ms var(--ease-out, ease-out), transform 200ms var(--ease-out, ease-out);
}

.consent[hidden] { display: none; }
.consent--in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .consent { transition: none; transform: none; }
}

@media (min-width: 720px) {
  .consent { left: 24px; right: auto; bottom: 24px; padding: 24px; }
}

.consent__title {
  margin: 0;
  font-family: var(--display, 'Inter Tight', Inter, sans-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.consent__text {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--brand-link, #D5E5DF);
}

.consent__text a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.consent__btn {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  font: 600 15px/1.2 Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--brand, #07332D);
  cursor: pointer;
  transition: background-color 150ms ease, transform 150ms var(--ease-out, ease-out);
}

.consent__btn:active { transform: scale(0.97); }
.consent__btn:focus-visible { outline: 2px solid var(--brand-mint, #5DCB9F); outline-offset: 3px; }

.consent__btn--no { background: #fff; }
.consent__btn--no:hover { background: var(--brand-wash, #EFFAF2); }
.consent__btn--yes { background: var(--brand-mint, #5DCB9F); }
.consent__btn--yes:hover { background: var(--brand-mint-hover, #6FD4AB); }

/* The footer's way back to the question, dressed as the policy links
   beside it. */
.footer__consent {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--brand-link, #D5E5DF);
  cursor: pointer;
}
.footer__consent:hover { color: var(--surface, #fff); }
.footer__consent:focus-visible { outline: 2px solid var(--brand-mint, #5DCB9F); outline-offset: 2px; }
