.dropdown-item.has-icon i {
  margin-top: -1px;
  font-size: 13px;
}

.dropdown-menu {
  @include shadow(0 0 30px);
  border: none;
  width: 200px;
  &.show {
    display: block !important;
  }
  a {
    font-size: 13px;
  }
  .dropdown-title {
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: color(dark) !important;
    padding: 10px 20px;
    line-height: 20px;
    color: color(muted);
  }
  &.dropdown-menu-sm {
    a {
      font-size: 14px;
      letter-spacing: normal;
      padding: 10px 20px;
      color: color(font);
    }
  }
}

a.dropdown-item {
  padding: 10px 20px;
  font-weight: 500;
  line-height: 1.2;
  &:focus,
  &:active,
  &.active {
    background-color: color(primary);
    color: #fff!important;
  }
}

.dropdown-divider {
  border-top-color: #f9f9f9;
}

.dropdown-list {
  width: 350px;
  padding: 0;
  .dropdown-item {
    display: inline-block;
    width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
    font-size: 13px;
    border-bottom: 1px solid #f9f9f9;
    &.dropdown-item-header:hover {
      background-color: transparent;
    }
    .time {
      margin-top: 10px;
      font-weight: 600;
      text-transform: uppercase;
      font-size: 10px;
      letter-spacing: .5px;
    }
    .dropdown-item-avatar {
      float: left;
      width: 40px;
      text-align: right;
      position: relative;
      img {
        width: 100%;
      }
      .is-online {
        position: absolute;
        bottom: 0;
        right: 0;
      }
    }
    .dropdown-item-desc {
      line-height: 24px;
      white-space: normal;
      color: color(fontdark);
      margin-left: 60px;
      b {
        font-weight: 600;
        color: #666;
      }
      p {
        margin-bottom: 0;
      }
    }
    &:focus {
      background-color: color(primary);
      .dropdown-item-desc {
        color: #fff !important;
        b {
          color: #fff !important;
        }
      }
    }
    &.dropdown-item-unread:active .dropdown-item-desc {
      color: color(font);
      b {
        color: color(font);
      }
    }
    &:active {
      .dropdown-item-desc {
        color: #fff;
        b {
          color: #fff;
        }
      }
    }
    &.dropdown-item-unread {
      background-color: #fbfbfb;
      border-bottom-color: #f2f2f2;
      &:focus {
        .dropdown-item-desc {
          color: color(font) !important;
          b {
            color: color(font) !important;
          }
        }
      }
    }
  }
  .dropdown-footer,
  .dropdown-header {
    letter-spacing: .5px;
    font-weight: 600;
    padding: 15px;
    a {
      font-weight: 600;
    }
  }
  .dropdown-list-content {
    height: 350px;
    overflow: hidden;
    &:not(.is-end) {
      &:after {
        content: ' ';
        position: absolute;
        bottom: 46px;
        left: 0;
        width: 100%;
        background-image: linear-gradient(to bottom, rgba(255,255,255, 0), rgba(255,255,255, .4), rgba(255,255,255, .8));
        height: 60px;
      }
    }
  }
  .dropdown-list-icons {
    .dropdown-item {
      display: flex;
      .dropdown-item-icon {
        flex-shrink: 0;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        line-height: 42px;
        text-align: center;
        i {
          margin: 0;
        }
      }
      .dropdown-item-desc {
        margin-left: 15px;
        line-height: 20px;
        .time {
          margin-top: 5px;
        }
      }
    }
  }
}

.dropdown-flag {
  .dropdown-item {
    font-weight: 600;
    .flag-icon {
      width: 20px;
      height: 13px;
      margin-right: 7px;
      margin-top: -6px;
    }
    &.active {
      background-color: color(primary);
      color: #fff;
    }
  }
}

@include media-breakpoint-down(xs) {
  .dropdown-list-toggle {
    position: static;
    .dropdown-list {
      left: 10px !important;
      width: calc(100% - 20px);
    }
  }
}
