.tooltip {
  position: absolute;
  top: auto;
  right: auto;
  bottom: 100%;
  left: 50%;
  margin-bottom: 8px;
  padding: 6px 10px;
  box-sizing: border-box;
  font-size: 9px;
  line-height: 1.4;
  font-weight: 700;
  font-style: normal;
  text-align: left;
  opacity: 0;
  transform: scale(0);
  transform-origin: center bottom;
  transition: opacity 0.1s, transform 0s cubic-bezier(0.175, 0.885, 0.32, 1.175);
  background-color: #333;
  color: #fff;
  border-radius: 2px;
  pointer-events: none; }
  .tooltip:after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -6px;
    margin-left: -6px;
    margin-bottom: 0;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #333; }
  .tooltip.ext-east {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 100%;
    margin-left: 8px;
    margin-bottom: 0;
    transform-origin: left center; }
    .tooltip.ext-east:after {
      top: auto;
      right: auto;
      bottom: 50%;
      left: -6px;
      margin-bottom: -6px;
      border-top: 6px solid transparent;
      border-right: 6px solid #333;
      border-bottom: 6px solid transparent; }
  .tooltip.ext-west {
    top: 50%;
    right: 100%;
    bottom: auto;
    left: auto;
    margin-right: 8px;
    margin-bottom: 0;
    transform-origin: right center; }
    .tooltip.ext-west:after {
      top: auto;
      right: -12px;
      bottom: 50%;
      left: auto;
      margin-bottom: -6px;
      border-top: 6px solid transparent;
      border-bottom: 6px solid transparent;
      border-left: 6px solid #333; }
  .tooltip.ext-south {
    top: 100%;
    right: auto;
    bottom: auto;
    left: 50%;
    margin-top: 8px;
    margin-bottom: 0;
    transform-origin: center top; }
    .tooltip.ext-south:after {
      top: -6px;
      bottom: auto;
      border-top: 0px;
      border-right: 6px solid transparent;
      border-bottom: 6px solid #333;
      border-left: 6px solid transparent; }
  .tooltip.visible {
    opacity: 1;
    transform: scale(1);
    transition-duration: 0.1s, 0.2s; }
