.onl-measure-control { margin: 0.85rem 0; font: inherit; }
.onl-measure-control label { display: inline-flex; align-items: center; gap: 0.55rem; cursor: pointer; font-weight: 600; }
.onl-measure-control input { appearance: auto; flex: none; width: 1.1rem; height: 1.1rem; margin: 0; }
.onl-measure-control p, .onl-measure-prompt p { margin: 0.4rem 0; max-width: 75ch; font-size: 0.9rem; line-height: 1.5; }
.onl-measure-prompt {
  position: fixed;
  z-index: 19;
  right: 13.5rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  box-sizing: border-box;
  width: min(26rem, calc(100% - 15rem));
  max-height: 85vh;
  overflow: auto;
  padding: 1rem 1.2rem;
  background: #fcfaf5;
  color: #292820;
  border: 1px solid #d0c9bb;
  border-radius: 0.75rem;
  box-shadow: 0 4px 24px rgb(43 38 27 / 14%);
}
.onl-measure-prompt[hidden],
body:has(.asr-launcher[aria-expanded="true"]) .onl-measure-prompt,
body:has(#booking-reminder[open]) .onl-measure-prompt { display: none; }
.onl-measure-prompt h2 {
  margin: 0;
  color: inherit;
  font-family: Georgia, serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: none;
}
.onl-measure-prompt p { margin: 0.4rem 0 0.7rem; font-size: 0.875rem; line-height: 1.4; }
.onl-measure-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.onl-measure-actions button {
  flex: 1 1 8rem;
  min-height: 44px;
  padding: 0.45rem 0.6rem;
  border: 1px solid #898575;
  border-radius: 0.35rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.onl-measure-actions button:hover { background: #eae6db; }
@media (max-width: 44rem) {
  .onl-measure-prompt {
    left: max(0.65rem, env(safe-area-inset-left));
    right: max(0.65rem, env(safe-area-inset-right));
    bottom: calc(9.5rem + env(safe-area-inset-bottom));
    width: auto;
    max-height: calc(85dvh - 9.5rem);
    padding: 0.85rem 1rem;
  }
  .onl-measure-prompt h2 { font-size: 1.19rem; }
}
.onl-measure-control input:focus-visible, .onl-measure-prompt button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.onl-measure-preferences { margin: 1rem; font: inherit; }
.onl-measure-preferences > summary { width: fit-content; cursor: pointer; text-decoration: underline; }

/* Venus uses its existing footer preferences panel for the first visit, too. */
[data-venus-analytics-consent] .onl-measure-prompt {
  position: static;
  width: auto;
  max-height: none;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: inherit;
}
[data-venus-analytics-consent].onl-landing-panel > :not(.onl-measure-prompt),
body:has(#venus-booking-dialog[open], .asr-launcher[aria-expanded="true"]) .onl-landing-panel { display: none; }
[data-venus-analytics-consent] .onl-measure-actions { justify-content: stretch; }
[data-venus-analytics-consent] .onl-measure-actions button { flex: 1 1 8rem; }
@media (max-width: 620px) {
  [data-venus-analytics-consent].onl-landing-panel {
    bottom: calc(9.5rem + env(safe-area-inset-bottom, 0px));
    max-height: max(8rem, calc(100dvh - 11rem));
  }
}
