.analytics-settings {
  display: inline-block;
  margin-top: 1rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.analytics-consent[hidden] { display: none; }
.analytics-consent {
  position: fixed;
  z-index: 1000;
  right: 1rem;
  bottom: 1rem;
  width: min(29rem, calc(100vw - 2rem));
  box-sizing: border-box;
  padding: 0.9rem 1rem;
  border: 1px solid #d6e5dc;
  border-radius: 0.8rem;
  background: #143c36;
  color: #fff;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.23);
  font: 0.87rem/1.45 'Segoe UI', Arial, sans-serif;
}
.analytics-consent p { margin: 0 0 0.7rem; }
.analytics-consent > div { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.analytics-consent button {
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #fff;
  border-radius: 0.3rem;
  background: #fff;
  color: #143c36;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.analytics-consent button + button { background: transparent; color: #fff; }
.analytics-consent button:focus-visible,
.analytics-settings:focus-visible { outline: 3px solid #ffad87; outline-offset: 3px; }
@media (max-width: 560px) {
  .analytics-consent { right: 0.5rem; bottom: 0.5rem; width: calc(100vw - 1rem); }
  .analytics-consent > div { display: grid; grid-template-columns: 1fr 1fr; }
}
