/* Optional analytics controls only. Existing art, layout and motion are unchanged. */
.analytics-consent[hidden], .analytics-consent [hidden] { display: none !important; }
.analytics-consent {
  position: fixed;
  z-index: 120;
  inset-inline: 1rem;
  inset-block-end: max(1rem, env(safe-area-inset-bottom));
  width: min(48rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  margin-inline: auto;
  padding: clamp(1rem, 2vw, 1.5rem);
  border: 1px solid #b8c7c4;
  border-radius: 1.25rem;
  background: #fffefa;
  box-shadow: 0 8px 32px rgb(20 60 56 / 14%);
  color: #143c38;
  text-align: start;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.65;
}
.analytics-consent h2 {
  margin: 0 0 .5rem;
  color: #143c38;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
}
.analytics-consent p { margin: 0 0 .6rem; font-size: 1rem; line-height: 1.65; color: #143c38; }
.analytics-consent a { color: #9c4729; text-decoration: underline; text-underline-offset: .2em; }
.analytics-consent [data-analytics-status]:empty { display: none; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-block-start: .8rem; }
.analytics-consent button {
  min-height: 2.75rem;
  padding: .65rem 1rem;
  border: 1px solid #143c38;
  border-radius: 1.5rem;
  background: #fffefa;
  color: #143c38;
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  cursor: pointer;
}
.analytics-consent button[data-analytics-accept] { background: #143c38; color: #fffefa; }
.analytics-settings {
  appearance: none;
  padding: .25rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: inherit;
  font: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
  min-height: 2.75rem;
}
.analytics-consent :focus-visible, .analytics-settings:focus-visible { outline: 3px solid #9c4729; outline-offset: 4px; }
/* The consent region must not overlap the existing floating contact shortcuts. */
body:has(.analytics-consent:not([hidden])) .contact-dock { visibility: hidden; pointer-events: none; }
@media (max-width: 480px) {
  .analytics-consent { inset-inline: .75rem; width: calc(100% - 1.5rem); }
  .analytics-consent-actions > button { flex: 1 1 calc(50% - .6rem); }
}
@media print { .analytics-consent, .analytics-settings { display: none !important; } }
