:import {
  -st-from: "../Foundation/stylable/colors.st.css";
  -st-named: F00, B00, THEME-COLOR-10, D10, D50, D80;
}

:import {
  -st-from: '../Foundation/stylable/typography.st.css';
  -st-named: text-small-normal;
}

:import {
  -st-from: "../Foundation/stylable/shadows.st.css";
  -st-named: shadow30;
}

:vars {
  rootSize: 12px;
  railHeight: 3px;
  clickableAreaSize: 24px;
}

.root {
  -st-states: disabled;
  position: absolute;
  margin-left: calc(value(rootSize)/ -2);
  box-sizing:border-box;
  touch-action: pan-x;
  cursor: pointer;
  outline: none;
  width: value(clickableAreaSize);
  height: value(clickableAreaSize);
  transform: translate(-6px, -6px);
  display: flex;
}

.root:disabled {
  cursor: default;
}

.tooltip {
  -st-mixin: text-small-normal;
  position: absolute;
  background-color: value(D10);
  color: value(D80);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 10px 15px;
  bottom: 100%;
  box-shadow: value(shadow30);
  user-select: none;
  transform: translateX(-50%);
  left: 12px;
}

.tooltip::after {
  position: absolute;
  content: "";
  border-top: 5px solid value(D10);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  bottom: -5px;
  left: calc(50% - 5px);
}
