@import "../../../styles/component.scss";

.filtersWrapper {
  width: max-content;
  // margin-left: 1.5em;
  // margin-right: 1.5em;
  margin-right: 1.5em;
  // max-height: calc(100vh - 100px);
  // overflow-y: auto;
  padding-top: 1rem;
  width: 100%;
  max-width: 250px;
  min-width: 230px;
}

.filterHeader {
  font-weight: 600;
  font-size: 24px;
  line-height: 12px;
}

.individualFilters {
  width: 230px;
  border: $border;
  border-radius: 5px;

  @media only screen and (max-width: 1024px) {
    border: none;
  }
}

.filterSearch {
  width: 100%;
  border: none;
  border-bottom: $border;
  border-radius: 0;
}

.priceRangeInput {
  width: 35% !important;
}

.categoryHeader {
  color: $primaryColor;
}

.filterBtnMobile {
  height: 46px;
  align-items: center;
  background-color: #ebe7ff;

  &:active {
    background-color: #ebe7ff;
  }
}

.seacrhIcon {
  font-size: 20px;
  margin-right: 4px;
}

.searchTrigger {
  background: #efefef;
  border-radius: 5px;
  color: #5e5f60;
  font-size: 13px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-right: 16px;
}

.inputField {
  height: 46px;
}

.filterIcon {
  font-size: 20px;
  color: #dd4242;
}

.filterBtnContent {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobileFiltersContainer {
  position: absolute;
  top: 0;
  height: 90%;
  background: white;
  width: 100vw;
  z-index: 1000;
}

.mobileFilterHeader {
  border-bottom: $border;
}

.mobileFilterNames {
  padding: 12px;
  background-color: $lighterGray;
  color: $lightGray;
  border-bottom: 1px solid #bababa;
}

.mobileFilterActive {
  background-color: white;
  border-left: 4px solid $primaryColor;
}

.mobileFilterFooter {
  bottom: 0;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-top: $border;
  background-color: white;
}

.mobileFilterFooterButtons {
  height: 40px;
  width: 150px;
}

.mobileIndividualFilter {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-gap: 24px;
}

.mobileProductFilterOptions {
  height: calc(100vh - 198px);
}

@media (max-width: 768px) {
  .filtersWrapper {
    display: none;
  }
  .individualFilters {
    width: 100%;
  }
  .continerBox{
    max-height: 11rem;
  }
}

.directoryFilterDiv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f1f1;
  // margin: 0.5em 0.5em;
}

.directoryDiv {
  margin-bottom: 0.5em;
}

.directoryDiv:last-child > .directoryFilterDiv{
  margin: 0;
  border: 0;
}

.iconDisplay {
    color: $primaryColor;
    display: flex;
    background: whitesmoke;
    width: 1.8em;
    height: 1.8em;
    align-items: center;
    justify-content: center;
    border-radius: 2em;
    top: calc(50% - 1.5em);
    z-index: 9;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 5px;
    margin-bottom: 0.5em;
  }