@import '../../../styles/common.module.scss';

.searchContent {
  @include paperElevated;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100vw;
  max-height: calc(100vh - 15px);
  width: 470px;
  height: 300px;
  min-height: 140px;
  overflow: auto;
  z-index: 10;
}

.notFoundText {
  font-weight: 500;
  font-size: 18px;
  top: calc(50% - 14px);
  position: absolute;
}

.itemWrapper {
  width: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition-property: background-color;
  transition-duration: 0.3s;
}

.itemWrapper:hover {
  background-color: rgba(0, 0, 0, 0.15);
  @apply bg-indigo-100;
}

.list {
  width: 100%;
  height: 100%;
  @include styledScrollBar;
}

.listPreloader {
  position: absolute;
  background-color: #fff;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.itemText {
  margin: 10px 15px;
}

:global(.modeDark) {
  .searchContent,
  .listPreloader {
    background-color: #222;
    border-radius: 6px;

    * {
      color: #eee;
    }
  }
}
