@use '@vizality' as vz;

.vz-addons-list {
  display: flex;
  flex-flow: column;
  flex: 1;
  &-items {
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
    gap: 15px;
    [vz-display='compact'] & {
      gap: 10px;
    }
  }
  &-inner {
    display: flex;
    justify-content: flex-start;
    flex-flow: column;
    flex: 1 0 auto;
    &[vz-loading] {
      align-items: center;
      justify-content: center;
    }
  }
  &-search {
    margin: 0 8px;
    .icon-1S6UIr:not(.clear--Eywng).visible-3bFCH- {
      color: var(--text-muted);
    }
  }
  &-search-options {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
    .vz-icon-wrapper {
      color: var(--interactive-normal);
      &:hover {
        color: var(--interactive-hover);
      }
    }
  }
  &-display-button {
    // To prevent the SVG parts from triggering the popout onClick which would cause the popout
    // to spawn slightly offset.
    svg * {
      pointer-events: none;
    }
  }
  &-search-options-button {
    cursor: pointer;
    margin: 0 8px;
    &.vz-addons-list-more-button {
      margin: 0;
    }
    > div {
      display: flex;
    }
  }
  &-search-results-text {
    padding: 20px;
  }
  &-search-results-text-wrapper {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
    color: var(--header-secondary);
  }
  &-search-results-matched {
    color: var(--header-primary);
  }
  &-empty {
    display: flex;
    flex-flow: column;
    align-items: center;
    color: var(--header-secondary);
    > div {
      margin-bottom: 20px;
    }
  }
}

@media (max-width: 1050px) {
  .vz-addons-list-search-options-button:not(.vz-addons-list-more-button) {
    display: none;
  }
}
