.nd-dropdown {
  position: relative;
  outline: 0;
  background: $white;

  .nd-list-container {
    background: $white;
    margin-top: $default-spacing * 0.5;
    padding: $default-spacing * 0.5;
  }

  .nd-list-item {
    border-left: 0;
    border-right: 0;
  }

  &.open {
    z-index: 1000;

    .icon-arrow-down {
      transform: rotate(180deg);
    }
  }

  i {
    transform-origin: 50% 50%;
    transition: $default-transition;
    display: inline-block;
  }
}

.nd-dropdown-list-container {
  opacity: 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 100%;
  max-height: 0;
  overflow-y: scroll;
  z-index: 10;

  .nd-dropup & {
    top: auto;
    bottom: 110%;
    left: auto;
    right: $default-spacing;
    min-width: auto;
  }

  &.right {
    right: 0;
    left: auto;
  }
}

.nd-dropdown-container {
  display: flex;
  cursor: pointer;
  border: 1px solid var(--nd-color-link);
}

.nd-dropdown__selected {
  @include rem(9);
  font-weight: 700;
  letter-spacing: 0.5px;
  flex: 1;
  padding: $default-spacing;
  color: var(--nd-color-link);
  user-select: none;
}

.nd-dropdown__arrow {
  @include rem(7);
  display: flex;
  align-items: center;
  border-left: 1px solid var(--nd-color-link);
  color: var(--nd-color-link);
  padding: 0 $default-spacing;
}

.nd-dropdown__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: -1;
}
