.rf-measurement-settings {
  margin: 1rem;
  padding: .5rem .75rem;
  border: 1px solid #9a9a9a;
  border-radius: .4rem;
  background: #fff;
  color: #171717;
}
.rf-measurement-dialog {
  position: fixed;
  inset: auto 0 0;
  box-sizing: border-box;
  width: min(36rem, 100%);
  max-width: 100%;
  max-height: 85dvh;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 5vw, 2rem) calc(1.5rem + env(safe-area-inset-bottom, 0px));
  border: 1px solid #d5bd8d;
  border-radius: 1.1rem 1.1rem 0 0;
  color: #211c1c;
  background: #fffdf9;
  box-shadow: 0 -12px 40px rgb(23 14 15 / 16%);
}
.rf-measurement-dialog[open] { animation: rf-cookie-rise 720ms cubic-bezier(.22, 1, .36, 1) both; }
.rf-measurement-dialog::backdrop {
  background: rgb(17 13 14 / 28%);
  animation: rf-cookie-dim 720ms ease-out both;
}
body:has(.rf-measurement-dialog[open]) { overflow: hidden; }
.rf-measurement-dialog h2 { margin: 0; font-size: 1.35rem; line-height: 1.25; }
.rf-measurement-dialog p { margin: .65rem 0 1.1rem; line-height: 1.55; }
.rf-measurement-actions { display: flex; flex-wrap: wrap; gap: .65rem; justify-content: flex-end; }
.rf-measurement-actions button {
  min-height: 44px;
  padding: .55rem 1rem;
  border: 1px solid #742737;
  border-radius: .55rem;
  background: #fffdf9;
  color: #642234;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.rf-measurement-actions [data-choice="yes"] { background: #742737; color: #fff; }
@keyframes rf-cookie-rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes rf-cookie-dim { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .rf-measurement-dialog[open], .rf-measurement-dialog::backdrop { animation: none; }
}
