/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */

.threads-list {
  padding: 4px 0;
}

.threads-list * {
  user-select: none;
}

.threads-list > .thread {
  font-size: inherit;
  color: var(--theme-text-color-strong);
  padding: 2px 6px;
  padding-inline-start: 20px;
  line-height: 16px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;

  &:hover {
    background-color: var(--search-overlays-semitransparent);
  }

  &.selected {
    background: var(--theme-selection-background);
    color: var(--theme-selection-color);

    & .img {
      background-color: currentColor;
    }
  }

  &.paused:not(.selected) {
    background-color: var(--paused-background-color);
    color: var(--paused-color);
  }
}

.threads-list .icon {
  flex: none;
}

.threads-list .img {
  display: block;
}

.threads-list .label {
  display: inline-block;
  flex-grow: 1;
  flex-shrink: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.threads-list .pause-badge {
  flex: none;
  font-weight: bold;
}
