.lbaic-settings-insert-variable {
  &-dropdown {
    position: absolute;
    top: var(--lbaic-settings-iv-menu-top, unset);
    right: var(--lbaic-settings-iv-menu-right, unset);
    bottom: var(--lbaic-settings-iv-menu-bottom, unset);
    left: var(--lbaic-settings-iv-menu-left, unset);
    width: 280px;
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background-color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: var(--lbaic-settings-iv-menu-transform, translate3d(0, -4px, 0));
    opacity: var(--lbaic-settings-iv-menu-opacity, 0);
    transition: transform 180ms ease-in-out, opacity 180ms ease-in-out;
    z-index: -1;
    outline: none;

    &.active {
      --lbaic-settings-iv-menu-transform: translate3d(0, -4px, 0);
      --lbaic-settings-iv-menu-opacity: 1;
      z-index: 301;
    }
  }

  &-dropdown-content {
    max-height: 300px;
    overflow-y: auto;
    border-radius: inherit;
  }

  &-group {
    border-bottom: 1px solid #eaeaea;

    &:last-child {
      border-bottom: none;
    }

    &-header {
      padding: 8px 12px;
      background-color: #f9fafb;
    }

    &-label {
      font-weight: var(--lbaic-settings-fw-500);
      font-size: var(--lbaic-settings-fs-10);
      line-height: var(--lbaic-settings-lh-12);
      color: #999999;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin: 0;
    }

    &-items {
      padding: 4px 0;
    }
  }

  &-subgroup {
    border-bottom: 1px solid #f0f0f0;

    &:last-child {
      border-bottom: none;
    }
  }

  &-item {
    width: 100%;
    padding: 8px 12px;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 150ms ease-in-out;

    &:hover {
      background-color: #f9fafb;

      .lbaic-settings-insert-variable-item-icon {
        opacity: 1;
      }
    }

    &-content {
      flex: 1;
      min-width: 0;
    }

    &-label {
      font-weight: var(--lbaic-settings-fw-500);
      font-size: var(--lbaic-settings-fs-12);
      line-height: var(--lbaic-settings-lh-16);
      color: #232323;
      margin: 0 0 2px 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    &-value {
      font-size: var(--lbaic-settings-fs-10);
      line-height: var(--lbaic-settings-lh-14);
      color: #999999;
      margin: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    &-icon {
      width: 14px;
      height: 14px;
      color: #458cf6;
      opacity: 0;
      transition: opacity 150ms ease-in-out;
      margin-left: 8px;
      flex-shrink: 0;
    }
  }
}