//colors
$text-color: #222;
$border-color: #fedd00;

//fonts
$font_0: 'Helvetica Neue';
$font_1: 'Helvetica';
$font_2: 'Arial';
$font_3: 'sans-serif';

.tooltip {
  position: absolute;
  z-index: 1070;
  display: block;
  font-family: $font_0, $font_1, $font_2, $font_3;
  font-style: normal;
  font-weight: 400;
  letter-spacing: normal;
  line-break: auto;
  line-height: 1.42857;
  text-align: start;
  text-decoration: none;
  //Instead of the line below you could use @include text-shadow($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10)
  text-shadow: none;
  text-transform: none;
  white-space: normal;
  //Instead of the line below you could use @include word-break($value)
  word-break: normal;
  word-spacing: normal;
  word-wrap: normal;
  font-size: 12px;
  opacity: 0;
  filter: alpha(opacity=0);

  &.in {
    opacity: .9;
    filter: alpha(opacity=90);
  }

  &.top {
    margin-top: -3px;
    padding: 5px 0;

    .tooltip-arrow {
      bottom: 0;
      left: 50%;
      margin-left: -5px;
      border-width: 5px 5px 0;
      border-top-color: $border-color;
    }
  }

  &.right {
    margin-left: 3px;
    padding: 0 5px;

    .tooltip-arrow {
      top: 50%;
      left: 0;
      margin-top: -5px;
      border-width: 5px 5px 5px 0;
      border-right-color: $border-color;
    }
  }

  &.bottom {
    margin-top: 16px;
    padding: 5px 0;
    z-index: 50;

    .tooltip-arrow {
      top: 0;
      left: 50%;
      margin-left: -5px;
      border-width: 0 6px 10px;
      border-bottom-color: $border-color;
    }
  }

  &.left {
    margin-left: -3px;
    padding: 0 5px;

    .tooltip-arrow {
      top: 50%;
      right: 0;
      margin-top: -5px;
      border-width: 5px 0 5px 5px;
      border-left-color: $border-color;
    }
  }

  &.top-left .tooltip-arrow {
    bottom: 0;
    right: 5px;
    margin-bottom: -5px;
    border-width: 5px 5px 0;
    border-top-color: $border-color;
  }

  &.top-right .tooltip-arrow {
    bottom: 0;
    left: 5px;
    margin-bottom: -5px;
    border-width: 5px 5px 0;
    border-top-color: $border-color;
  }

  &.bottom-left .tooltip-arrow {
    top: 0;
    right: 5px;
    margin-top: -5px;
    border-width: 0 5px 5px;
    border-bottom-color: $border-color;
  }

  &.bottom-right .tooltip-arrow {
    top: 0;
    left: 5px;
    margin-top: -5px;
    border-width: 0 5px 5px;
    border-bottom-color: $border-color;
  }
}

.tooltip-inner {
  max-width: 100%;
  padding: 8px;
  color: $text-color;
  text-align: center;
  background-color: $border-color;
  //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
  border-radius: 4px;
  margin-top: 5px;
}

.tooltip-arrow {
  position: absolute;
  width: 0;
  height: 0;
  border-color: transparent;
  border-style: solid;
}