.analytics-preferences {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.analytics-preferences:hover { color: #88531d; }
.analytics-preferences[hidden] { display: none; }
.analytics-preferences:focus-visible,
.analytics-consent button:focus-visible,
.analytics-consent a:focus-visible {
  outline: 3px solid #365f49;
  outline-offset: 4px;
}
.analytics-consent {
  box-sizing: border-box;
  position: fixed;
  z-index: 20;
  inset: auto 12px 12px;
  width: min(1040px, calc(100% - 24px));
  max-height: min(520px, 75vh);
  margin-inline: auto;
  overflow-y: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid #9eb4a5;
  border-top: 3px solid #ffbb65;
  border-radius: 10px;
  background: #f4f7ef;
  color: #202622;
  box-shadow: 0 8px 34px #203c2c33;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.analytics-consent[hidden] { display: none; }
.analytics-consent:focus { outline: none; }
.analytics-consent-copy { flex: 1; min-width: 0; }
.analytics-consent h2 {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -.02em;
}
.analytics-consent p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #405347;
}
.analytics-consent p.analytics-consent-status:not(:empty) { margin-top: 6px; font-weight: 600; }
.analytics-consent a { color: #274f3e; text-decoration: underline; text-underline-offset: 3px; }
.analytics-consent-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.analytics-consent button {
  box-sizing: border-box;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #559d88;
  border-radius: 6px;
  background: #8ad9c4;
  color: #15382d;
  font: 600 14px/1.3 Inter, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}
.analytics-consent button:hover { background: #abe9d9; }
@media (max-width: 760px) {
  .analytics-consent {
    display: block;
  }
  .analytics-consent-actions { margin-top: 10px; }
  .analytics-consent button { flex: 1 1 0; min-width: 0; padding-inline: 8px; }
}
