@mixin generate-dropdown-menu() {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;

  //Dimensions
  min-width: 5rem; // 80px
  max-width: 15rem; // 240px

  //Other
  background: $fui-dropdown-bg-color;
  border: $border-width solid $fui-dropdown-border-color;
  border-radius: $border-radius;
  box-shadow: 0 4px 6px 0 $fui-dropdown-box-shadow;

  margin-top: 0.083333rem; // 1.333328px
  padding: 0.625rem; // 10px

  visibility: hidden;
  z-index: map-get($fui-layers, dropdown-menu);
}

@mixin generate-dropdown-item() {
  font-size: $font-size-base;
  letter-spacing: normal;
  font-weight: $font-weight-normal;
  border-radius: $border-radius;

  background: transparent;
  border: 0;
  color: $fui-dropdown-item-text-color;
  cursor: pointer;
  display: block;
  height: auto;
  line-height: inherit;
  margin: 0;
  width: 100%;
  text-transform: none;

  &:hover,
  &:focus {
    background-color: $fui-dropdown-bg-hover-color;
    color: $fui-dropdown-item-text-color;
    text-decoration: none;
  }

  &.active {
    background: $fui-dropdown-selection-color;
    color: $fui-dropdown-active-text-color;
  }

  &:active {
    box-shadow: none;
  }

  &:focus {
    outline: 0;
  }

  &.disabled,
  &:disabled {
    cursor: not-allowed;
    color: $fui-dropdown-item-disabled-text-color;
    user-select: none;

    &:hover {
      background: none;
    }

    &:active,
    &:focus {
      background: none;
      box-shadow: none;
    }
  }
}

@mixin generate-dropdown-item-height() {
  padding: 0.125rem 0.625rem;

  @media screen and (max-width: map-get($grid-breakpoints, sm)) {
    padding: 0.25rem 1rem;
  }
}
