.cl-measurement {
  position: fixed;
  inset: auto auto max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  z-index: 1000;
  max-width: min(28rem, calc(100vw - 2rem));
  color: #32363a;
  font-family: inherit;
  font-size: .9375rem;
}

.cl-measurement [hidden], .cl-measurement[hidden] { display: none; }
.cl-measurement button {
  min-height: 44px;
  padding: .45rem .8rem;
  border: 1px solid #86293d;
  border-radius: .55rem;
  background: #fffcf9;
  color: #76263a;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.cl-measurement button:focus-visible, .cl-measurement input:focus-visible, .cl-measurement a:focus-visible { outline: 2px solid #76263a; outline-offset: 3px; }
.cl-measurement-open { box-shadow: 0 3px 15px #29211c20; }
.cl-measurement section {
  position: absolute;
  bottom: calc(100% + .6rem);
  left: 0;
  width: min(28rem, calc(100vw - 2rem));
  box-sizing: border-box;
  max-height: min(32rem, 65vh);
  overflow: auto;
  padding: 1rem;
  border: 1px solid #d9c9c4;
  border-radius: 1rem;
  background: #fffcf9;
  box-shadow: 0 8px 24px #29211c26;
}
.cl-measurement h2 { margin: 0; font-size: 1.15rem; }
.cl-measurement p { margin: .55rem 0; }
.cl-measurement a { color: #76263a; }
.cl-measurement-options { margin: .35rem 0; }
.cl-measurement-options label { display: flex; align-items: center; gap: .55rem; min-height: 44px; cursor: pointer; }
.cl-measurement-options input { width: 1.2em; height: 1.2em; accent-color: #86293d; }
.cl-measurement-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cl-measurement button[data-cl-measurement-save] {
  background: #86293d;
  color: #fff;
  padding-inline: 1.05rem;
  font-weight: 800;
  box-shadow: 0 2px 5px #70203230;
}
.cl-measurement button[data-cl-measurement-save]:hover { background: #702032; }
