.mt-dropdown {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.mt-dropdown__trigger {
  cursor: pointer;
}

.mt-dropdown__label {
  margin-right: 10px;
}

.mt-dropdown__menu {
  position: absolute;
  width: 190px;
  padding: 7px;
  border: 1px solid @gray-3;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(26, 53, 71, .1);
  opacity: 0;
  pointer-events: none;
  background: @white;
  z-index: 20;

  &.is-visible {
    opacity: 1;
    pointer-events: auto;
    -webkit-transform: none;
    transform: none;
  }

  &::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
  }

  &::after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
  }

  .h3 {
    font-size: @font-size-xsmall;
    text-transform: uppercase;
    border-bottom: 1px solid @gray-3;
    display: block;
    padding: 5px 0 3px;
    margin: 0 5px 5px;
    color: @gray-6;
  }

  li {
    list-style: none;
    text-align: left;
    font-size: @font-size-medium;
  }

  li {
    display: block;
    padding: 5px;
    color: @blue;
    .border-radius(3px);
    cursor: pointer;

    &:hover {
      background: @blue;
      color: @white;

      a {
        color: @white !important;
      }
    }

    &.red-text {
      color: @red !important;
      &:hover {
        background: @red;
        color: @white !important;
      }
    }

    &.disabled {
      color: @gray-4 !important;
      &:hover {
        background: @gray-1;
        cursor: not-allowed;
      }
    }

    a {
      padding: 0;
    }
  }

  a {
    display: block;
    padding: 5px;
    color: @blue;
    .border-radius(3px);
    cursor: pointer;

    &:hover {
      background: @blue;
      color: @white;
    }

    &.red-text {
      color: @white !important;
      &:hover {
        background: @red;
        color: @white !important;
      }
    }
  }
}

.mt-dropdown__menu--up {
  -webkit-transform: scale(.8) translateY(20%);
  transform: scale(.8) translateY(20%);
  transition: @short-animation-time cubic-bezier(.3, 0, 0, 1.3);
  bottom: 20px;
  right: 0;

  &::before {
    bottom: -10px;
    right: 15px;
    margin-right: -10px;
    border-top: 10px solid @gray-3;
  }

  &::after {
    bottom: -8px;
    right: 15px;
    margin-right: -9px;
    border-top: 9px solid @white;
  }
}


.mt-dropdown__menu--down {
  -webkit-transform: scale(.8) translateY(-20%);
  transform: scale(.8) translateY(-20%);
  transition: @short-animation-time cubic-bezier(.3, 0, 0, 1.3);
  top: 20px;
  right: -12px;

  &::before {
    top: -10px;
    left: 170px;
    margin-left: -10px;
    border-bottom: 10px solid @gray-3;
  }

  &::after {
    top: -9px;
    left: 170px;
    margin-left: -9px;
    border-bottom: 9px solid @white;
  }
}