src/components/SearchPanel/SearchPanel.scss
@import '../../constants/styles';
@import '../../constants/panel';

.search-panel-container {
  z-index: 65;
  @include mobile {
    z-index: 95;
  }
  display: flex;
  flex-direction: column;
  background-color: var(--panel-background);
  display: flex;
  flex-direction: row;
  position: relative;
  overflow: hidden;

  @include tablet {
    border-inline-start: 1px solid var(--side-panel-border);
  }

  @include mobile {
    position: fixed;
    inset-block-start: 0;
    inset-inline-end: 0;
    height: 100%;
    width: 100%;
  }
}

.SearchPanel {
  padding: 16px 8px 0 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  // Needed
  // overflow: hidden; // https://stackoverflow.com/questions/1260122/expand-a-div-to-fill-the-remaining-width

  .ListSeparator:first-child {
    margin-top: 0px;
  }

  @include ie11 {
    .ReactVirtualized__Grid__innerScrollContainer {
      max-width: 1000px !important;
    }
  }

  @include mobile {
    width: 100%;
    min-width: 100%;
    padding-top: 0px;

    .close-container {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      height: 28px;
      margin-bottom: 8px;

      width: 100%;
      padding-inline-end: 12px;

      .close-icon-container {
        @include button-reset;
        z-index: 3;
        cursor: pointer;
        .close-icon {
          width: 24px;
          height: 24px;
        }
      }
    }
  }

  .results {
    overflow-y: auto;
    overflow-y: overlay;
    flex: 1;

    &.wild-card-visible {
      margin-top: 110px !important;
    }

    .ReactVirtualized__List {
      overflow: overlay !important;
      padding-inline-end: 8px;

      &:focus {
        outline: none;
      }

      width: auto !important;

      .ReactVirtualized__Grid__innerScrollContainer {
        max-width: unset !important;
      }
    }
  }

  .loader-wrapper {
    display: flex;
    padding: 10px;
    justify-content: center;
  }

  .info {
    padding: 15px 0;
  }
}
