.lbaic-settings-select {
  &-holder {
    --lbaic-settings-select-height: 0;

    position: relative;

    &.opened {
      --lbaic-settings-select-height: 200px;

      .lbaic-settings-select {
        border: 1px solid rgba(var(--lbaic-settings-primary-rgb), 0.25);
        box-shadow: 0 0 0 3px rgba(var(--lbaic-settings-primary-rgb), 0.1);

        &-arrow {
          transform: scaleY(-1);
        }

        &-menu {
          transform: translate3d(0, 2px, 0);
          opacity: 1;
          pointer-events: auto;
        }
      }
    }
  }

  &-in {

  }

  & {
    position: relative;
    background-color: var(--lbaic-settings-select-local-bg, var(--lbaic-settings-select-bg));
    border: 1px solid var(--lbaic-settings-select-border);
    border-radius: 6px;
    cursor: pointer;

    &:focus-within {
      border: 1px solid var(--lbaic-settings-primary);
      box-shadow: 0 0 0 3px rgba(var(--lbaic-settings-primary-rgb), 0.1);
    }
  }

  &-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    padding-inline: var(--lbaic-settings-dropdown-pis, 12px) var(--lbaic-settings-dropdown-pie, 48px);
    pointer-events: none;

    &-in {
      font-size: var(--lbaic-settings-fs-14);
      font-weight: var(--lbaic-settings-fw-500);
      color: var(--lbaic-settings-select-placeholder-color);
      line-height: var(--lbaic-settings-lh-24);
    }
  }

  &-arrow {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 48px;
    display: flex;
    transition: transform 180ms ease-in-out;
    cursor: pointer;

    &-in {
      width: 24px;
      height: auto;
      display: block;
      margin-block: auto;
      margin-inline: auto;
      fill: var(--lbaic-settings-select-icon-fill);
    }
  }

  &-h-40 {
    height: 40px;
  }

  &-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: var(--lbaic-settings-select-height);
    border-radius: 6px;
    box-shadow: var(--lbaic-settings-select-menu-shadow);
    transform: translate3d(0, 10px, 0);
    opacity: 0;
    transition: transform 180ms ease-in-out, opacity 180ms ease-in-out;
    pointer-events: none;
    overflow: hidden;
    z-index: 100;

    &-in {
      max-height: var(--lbaic-settings-select-height);
      padding-block: 8px;
      padding-inline: 8px;
      background-color: var(--lbaic-settings-select-menu-bg);
      border-radius: 6px;
      box-shadow: var(--lbaic-settings-select-menu-shadow);
    }

    &-item {
      min-height: 36px;
      display: flex;
      align-items: center;
      padding-block: 8px;
      padding-inline: 8px;
      background-color: transparent;
      border-radius: 4px;
      text-align: left;
      transition: background-color 360ms ease-in-out;
      cursor: pointer;

      &:not(:last-child) {
        margin-bottom: 2px;
      }

      &-i {
        width: 20px;
        height: auto;
        display: block;
        flex: 0 0 20px;
      }

      &-label {
        flex: 1 0 0;
        font-size: var(--lbaic-settings-fs-14);
        color: var(--lbaic-settings-select-menu-item-color);
        line-height: var(--lbaic-settings-lh-20);
        white-space: pre-wrap;

        &:not(:first-child) {
          padding-inline-start: 8px;
        }
      }

      &:hover {
        background-color: var(--lbaic-settings-select-menu-item-hover);
      }

      &.active {
        background-color: var(--lbaic-settings-select-menu-item-hover);
        cursor: default;
      }

      &.disabled {
        --lbaic-settings-select-menu-item-color: var(--lbaic-settings-select-menu-item-color-disabled);

        pointer-events: none;
      }
    }

    &-action {
      min-height: 36px;
      display: flex;
      align-items: center;
      background-color: transparent;
      border-radius: 4px;
      text-align: left;
      transition: background-color 360ms ease-in-out;
      cursor: pointer;

      &-i {
        width: 18px;
        height: auto;
        display: block;
        flex: 0 0 18px;
        fill: var(--lbaic-settings-select-menu-item-action-color);
      }

      &-label {
        flex: 1 0 0;
        font-size: var(--lbaic-settings-fs-14);
        color: var(--lbaic-settings-select-menu-item-action-color);
        line-height: var(--lbaic-settings-lh-20);
        white-space: pre-wrap;
      }

      &:hover {
        background-color: var(--lbaic-settings-select-menu-item-action-hover);
      }

      &-in {
        width: 100%;
        padding-block: 8px;
        padding-inline: 8px;
      }
    }
  }

  &-has-tooltip {
    --lbaic-settings-select-pis: 44px;
    --lbaic-settings-select-placeholder-transform: translate3d(32px, 0, 0);

    .lbaic-settings-tooltip-wrapper {
      position: absolute;
      top: 14px;
      bottom: 14px;
      left: 12px;
    }
  }

  &-disabled {
    opacity: 0.4;
    pointer-events: none;
  }
}