.pisell-lowcode-drop-sort-item {
  box-sizing: border-box;
  padding-left: var(--spacing);
  list-style: none;

  &.clone {
    display: inline-block;
    pointer-events: none;
    padding: 0;
    padding-left: 10px;
    padding-top: 5px;

    .pisell-lowcode-drop-sort-item-tree-item {
      --vertical-padding: 5px;

      padding-right: 24px;
      box-shadow: 0px 15px 15px 0 rgba(34, 33, 81, 0.1);
    }
  }

  &.ghost {
    &.indicator {
      opacity: 1;
      position: relative;
      z-index: 1;
      margin-bottom: -1px;

      .pisell-lowcode-drop-sort-item-tree-item {
        position: relative;
        padding: 0;
        height: 8px;
        border-color: #2389ff;
        background-color: #56a1f8;

        &:before {
          position: absolute;
          left: -8px;
          top: -4px;
          display: block;
          content: '';
          width: 12px;
          height: 12px;
          border-radius: 50%;
          border: 1px solid #2389ff;
          background-color: #ffffff;
        }

        > * {
          /* Items are hidden using height and opacity to retain focus */
          opacity: 0;
          height: 0;
        }
      }
    }

    &:not(.indicator) {
      opacity: 0.5;
    }

    .pisell-lowcode-drop-sort-item-tree-item > * {
      box-shadow: none;
      background-color: transparent;
    }
  }

}

.pisell-lowcode-drop-sort-item-tree-item {
  position: relative;
  display: flex;
  padding: 12px;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  border-radius: 12px;
  background: var(--Base-White, #fff);

  --vertical-padding: 10px;
  box-sizing: border-box;
  // transition: all 0.25s;

  .pisell-lowcode-drop-sort-item-content {
    flex: 1;
    height: 48px;
  }

  .pisell-lowcode-drop-sort-item-button {
    &:hover {
      background: var(--Gray-300, #D0D5DD) !important;
    }
  }

  &:hover {
    background: var(--Gray-100, #F2F4F7) !important;
  }

  &.disabled {
    border: 1px solid var(--Gray-200, #EAECF0);
    background: var(--Gray-100, #F2F4F7);
    cursor: not-allowed;
  }
}

.pisell-lowcode-drop-sort-item-tree-item-border {
  border: 1px solid var(--Gray-200, #eaecf0);
  /* Shadow/xs */
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
  transition: background-color 0.2s !important;
}

.pisell-lowcode-drop-sort-item-icon {
  font-size: 20px;
  color: #101828;
}

.pisell-lowcode-drop-sort-item-drag-handle-icon {
  font-size: 20px;
  color: #98a2b3;
}

.pisell-lowcode-drop-sort-item-count {
  position: absolute;
  top: -10px;
  right: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #2389ff;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.disableInteraction {
  pointer-events: none;
}

.disableSelection,
.clone {
  .pisell-lowcode-drop-sort-item-count {
    user-select: none;
    -webkit-user-select: none;
  }
}

.Collapse {
  svg {
    transition: transform 250ms ease;
  }

  &.collapsed svg {
    transform: rotate(-90deg);
  }
}
