/*
* Sortable Fields — Relevance Configurator
*/

.sws-sortable-fields {
  margin: 0;
  padding: 0;
  max-width: 420px;
  list-style: none;

  &__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    margin-bottom: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: default;
    user-select: none;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;

    &.ui-sortable-helper {
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.13);
      border-color: #2271b1;
    }
  }

  &__handle {
    cursor: move;
    color: #bbb;
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;

    &:hover {
      color: #555;
    }
  }

  &__label {
    flex: 1;
    font-size: 13px;
    color: #1d2327;
  }

  &__weight {
    font-size: 11px;
    color: #888;
    background: #f0f0f1;
    border-radius: 3px;
    padding: 2px 7px;
    min-width: 36px;
    text-align: center;
    flex-shrink: 0;

    &::before {
      content: 'w: ';
    }
  }
}
