.measurement-consent {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 160;
  width: min(420px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: 19px;
  border: 1px solid #b4c6b9;
  border-radius: 16px;
  background: #f7f7ef;
  color: #18271f;
  box-shadow: 0 12px 36px rgba(16, 42, 33, .2);
}
.measurement-consent[hidden] { display: none; }
.measurement-consent h2 { margin: 0 0 9px; font-size: 17px; line-height: 1.35; letter-spacing: 0; }
.measurement-consent p { margin: 0 0 12px; font-size: 13px; line-height: 1.6; }
.measurement-consent details { border: 0; margin-bottom: 13px; }
.measurement-consent summary { padding: 0; cursor: pointer; font-size: 12px; font-weight: 700; }
.measurement-consent details p { margin-top: 10px; font-size: 12px; }
.measurement-consent a { text-decoration: underline; }
.measurement-consent-actions { display: flex; gap: 9px; }
.measurement-consent-actions button {
  flex: 1;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #15392c;
  border-radius: 9px;
  background: #ffffff;
  color: #15392c;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.measurement-consent-actions button:hover { background: #e8efdf; }
.measurement-consent-actions button:focus-visible,
.measurement-preferences:focus-visible { outline: 3px solid #43a06f; outline-offset: 3px; }
.measurement-preferences {
  display: block;
  margin-top: 12px;
  padding: 5px 0;
  border: 0;
  background: none;
  color: #d5e1d6;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}
@media (max-width: 760px) {
  .measurement-consent {
    left: 12px;
    bottom: calc(90px + env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    max-height: calc(100dvh - 120px - env(safe-area-inset-bottom));
    padding: 16px;
  }
}
