/* Compact white consent card with the site typography and square buttons. */
.analytics-consent[hidden] { display: none; }
.analytics-consent {
  position: fixed;
  z-index: 1000;
  right: calc(1.5rem + env(safe-area-inset-right, 0px));
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  width: min(25rem, calc(100% - 3rem));
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  background: #fff;
  color: #000;
  border: 2px solid #000;
  border-radius: 0;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.22);
  text-align: left;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.55;
}
.consent-content { padding: 1rem 1.125rem; }
.consent-content p { margin: 0 0 0.75rem; }
.consent-content .consent-intro { margin-bottom: 0.875rem; font-weight: 700; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.consent-actions button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.5rem;
  border: 2px solid #000;
  border-radius: 0;
  background: #000;
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.consent-actions button:hover { background: #292929; }
.consent-actions button[data-analytics-choice="on"] {
  background: #fff;
  color: #000;
  border-width: 2px;
}
.consent-actions button[data-analytics-choice="on"]:hover { background: #f2f2f2; }
.consent-actions button:focus-visible,
.consent-content a:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
.consent-content .consent-links {
  margin: 0.7rem 0 0;
  font-family: "DM Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.7;
  color: #5a5a5a;
}
.consent-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
body.consent-banner-open { padding-bottom: 14rem; }
@media (max-width: 480px) {
  .analytics-consent {
    right: calc(1rem + env(safe-area-inset-right, 0px));
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    width: calc(100% - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.22);
  }
  .consent-content { padding: 0.875rem; }
  .consent-actions { gap: 0.5rem; }
  body.consent-banner-open { padding-bottom: 15rem; }
}
