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

.ProductSearch {
  position: relative;
  box-sizing: border-box;
  width: 100%;
}

.searchContent {
  @include paperElevated;
  @include styledScrollBar;
  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;
  box-sizing: border-box;
}

.searchItem {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid transparent;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  transition: 0.3s;
  box-sizing: border-box;
}

.searchItem:hover {
  background-color: #f4f4f4;
}

.searchItemImage {
  @include bckgrCover;
  height: 75px;
  width: 90px;
  min-width: 90px;
  margin-right: 10px;
}

.searchItemTitle {
  margin: 0;
  line-height: 1.5;
  margin-right: 15px;
  overflow: hidden;
  height: 50px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.searchPriceBlock {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  padding-right: 20px;
  font-size: 18px;
  margin: 6px 0;
  margin-left: auto;
}

.searchItemPrice {
  margin: 0;
  line-height: 1.5;
  font-weight: 500;
  margin-left: 10px;
}

.searchItemOldPrice {
  text-decoration: line-through;
  opacity: 0.7;
  margin: 0;
  line-height: 1.5;
}

.searchNotFoundText {
  height: 100%;
  display: flex;
  align-items: center;
}
