.measurement-choice {
  position: fixed;
  z-index: 100;
  bottom: 10px;
  left: 10px;
  right: 10px;
  max-width: 1100px;
  margin: auto;
  padding: 10px 16px;
  display: flex;
  gap: 18px;
  align-items: center;
  color: #e8e9e4;
  background: #202629;
  border: 1px solid #687b82;
  border-radius: 12px;
  box-shadow: 0 8px 40px #0008;
  font:
    13px/1.45 system-ui,
    sans-serif;
}
/* A slim strip, so the page's main button stays clear on first visit. The id outranks page rules such as
   ".simple section { padding-block: 84px }", which made this banner 254px tall on the home page. */
#measurement-choice.measurement-choice {
  padding: 10px 16px;
  margin: auto;
}
/* Moved under the site header when the bottom strip would cover the page's main button (measurement.js place). */
.measurement-choice.is-top {
  bottom: auto;
}
.measurement-choice[hidden] {
  display: none;
}
.measurement-choice p {
  margin: 2px 0;
}
.measurement-choice p:empty {
  display: none;
}
.measurement-choice strong {
  font-size: 14px;
}
.measurement-choice a {
  color: #c4d8df;
  text-decoration: underline;
}
.measurement-actions {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: 10px;
}
.measurement-choice button,
.measurement-settings {
  font: inherit;
  padding: 9px 14px;
  border-radius: 6px;
  border: 1px solid #87999f;
  cursor: pointer;
  background: #202629;
  color: #e8e9e4;
}
.measurement-choice button:hover,
.measurement-settings:hover {
  background: #364146;
}
.measurement-choice button:disabled {
  opacity: 0.5;
  cursor: default;
}
.measurement-choice button:focus-visible,
.measurement-settings:focus-visible {
  outline: 3px solid #c4d8df;
  outline-offset: 3px;
}
.measurement-settings {
  font-size: 13px;
}
@media (max-width: 700px) {
  .measurement-choice {
    left: 6px;
    right: 6px;
    bottom: 6px;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    max-height: 45vh;
    overflow: auto;
    font-size: 12.5px;
  }
  #measurement-choice.measurement-choice {
    padding: 10px 12px;
  }
  .measurement-choice strong {
    display: none;
  }
  .measurement-choice button {
    padding: 8px 10px;
    min-height: 44px;
  }
  .measurement-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
