.caffeine-slider {
  --caffeine-green: #28513d;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4dbcf;
  border-radius: 12px;
  background: #faf7ed;
  color: #28513d;
  text-align: left;
}
.caffeine-slider .caffeine-slider__heading { margin: 0; font-size: 12px; font-weight: 600; line-height: 1.4; }
.caffeine-slider__note { margin: 2px 0 0; font-size: 11px; line-height: 1.4; color: #4b6047; }
.caffeine-slider__track { position: relative; display: flex; align-items: center; height: 44px; }
.caffeine-slider input.caffeine-slider__range {
  appearance: none; -webkit-appearance: none;
  display: block; width: 100%; min-width: 0; height: 44px; min-height: 44px;
  margin: 0; padding: 0; border: 0; border-radius: 999px;
  background: transparent; box-shadow: none; cursor: pointer;
  touch-action: pan-y; color: var(--caffeine-green);
}
.caffeine-slider__range::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: #a8b8a5; }
.caffeine-slider__range::-moz-range-track { height: 4px; border-radius: 999px; background: #a8b8a5; }
.caffeine-slider__range::-webkit-slider-thumb {
  appearance: none; -webkit-appearance: none; width: 28px; height: 28px; margin-top: -12px;
  border: 4px solid #faf7ed; border-radius: 50%; background: #28513d; box-shadow: 0 0 0 1px #28513d;
}
.caffeine-slider__range::-moz-range-thumb {
  width: 20px; height: 20px; border: 4px solid #faf7ed; border-radius: 50%;
  background: #28513d; box-shadow: 0 0 0 1px #28513d;
}
.caffeine-slider[data-selected="false"] .caffeine-slider__range::-webkit-slider-thumb { opacity: 0; }
.caffeine-slider[data-selected="false"] .caffeine-slider__range::-moz-range-thumb { opacity: 0; }
.caffeine-slider__unselected {
  position: absolute; left: 50%; top: 50%; width: 28px; height: 28px;
  transform: translate(-50%, -50%); border: 1px dashed #879881;
  border-radius: 50%; background: #faf7ed; pointer-events: none;
}
.caffeine-slider__ends { display: flex; justify-content: space-between; gap: 8px; }
.caffeine-slider button.caffeine-slider__endpoint {
  display: block; min-width: 0; min-height: 44px; width: 25%; margin: 0; padding: 0;
  border: 0; border-radius: 4px; background: transparent; color: #28513d;
  font-family: inherit; font-size: 12px; font-weight: 400; line-height: 1.3;
  text-align: center; cursor: pointer; box-shadow: none; overflow-wrap: anywhere;
}
.caffeine-slider button.caffeine-slider__endpoint:first-child { text-align: left; }
.caffeine-slider button.caffeine-slider__endpoint:last-child { text-align: right; }
.caffeine-slider button.caffeine-slider__endpoint[aria-pressed="true"] { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.caffeine-slider .caffeine-slider__status { min-height: 18px; margin: 2px 0 0; font-size: 12px; line-height: 1.5; color: #4b6047; }
.caffeine-slider__range:focus-visible,
.caffeine-slider button.caffeine-slider__endpoint:focus-visible { outline: 2px solid #28513d; outline-offset: 3px; }
.tea-flip .caffeine-slider { margin: 8px 10px; }
