What is the difference between the ad populum fallacy and the appeal to authority fallacy?

Ad populum fallacies and appeal to authority fallacies both rely on people’s opinions to persuade, but there is a key difference: