@import '../../../../../../../assets/scss/variables';

.filter-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 21px;
}

.icon {
  width: 17px;
  margin-left: 5px;
  transition: all 0.2s linear;

  &.expand {
    transform: rotate(-180deg);
  }
}

.filter-item {
  position: relative;
  background-color: rgba(255, 255, 255, 0);
  transition: all 0.2s linear;
  width: fit-content;
  padding: 0px 15px;
  cursor: pointer;

  &.expand {
    background-color: rgba(255, 255, 255, 1);
  }
}

.filter-menu {
  position: absolute;
  z-index: 999;
  background-color: white;
  -moz-box-shadow: 0 0 20px 1px $hima-content-shadow-color;
  -webkit-box-shadow: 0 0 20px 1px $hima-content-shadow-color;
  box-shadow: 0 0 20px 1px $hima-content-shadow-color;
  border-radius: 4px;
  padding: 0px;
  margin-top: 35px;
  overflow: scroll;
}

.move-left {
  right: 5px;
}

.item-container {
  display: grid;
  grid-template-columns: auto;
  max-height: 425px;
  overflow: scroll;
}

.archive-menu {
  width: 167px;
}

.item {
  padding-top: 8px;
  padding-bottom: 2px;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: row;
  // max-width: 160px;
  // overflow-wrap: break-word;
  // word-wrap: break-word;
  cursor: pointer;
}

.filter-checkbox {
  padding-top: 5px;
  padding-right: 10px;
}

.checked-box {
  margin-left: 3px;
  margin-top: -37px;
  padding-bottom: 5px;
}

.active {
  background-color: #a7b9ca;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  flex-direction: column;

  a {
    font-size: 18px;
    font-weight: bold;
    color: $hima-button-color;
    padding: 8px 0px;
    text-decoration: none;

    &.active {
      color: #fff;
      background-color: $hima-button-color;
      border-radius: 40px;
      outline: none;
      text-align: center;
      width: 115px;
    }

    &:hover {
      cursor: pointer;
    }
  }
}

.inactive {
  background-color: #557596 !important;
}

/*
  ##Device = Big Desktops
*/
@media (min-width: 1281px) {
  .group-menu {
    margin-left: -42px;
    max-height: 505px;

    .item-container {
      max-height: 410px;
    }
  }

  .lang-menu {
    max-height: 475px;
    margin-left: -95px;

    .item-container {
      max-height: 375px;
    }
  }

  .category-menu {
    max-height: 485px;
    .item-container {
      max-height: 395px;
    }
  }

  .stock-menu {
    margin-left: -95px;
  }

  .order-menu {
    max-height: 515px;
  }

  .years-menu {
    max-height: 485px;
    margin-left: -85px;
    .item-container {
      max-height: 390px;
    }
  }
}

/*
  ##Device = Laptops, Desktops, Ipad pro
*/
@media (min-width: 1025px) and (max-width: 1280px) {
  .group-menu {
    margin-left: -42px;
    max-height: 505px;

    .item-container {
      max-height: 410px;
    }
  }

  .lang-menu {
    max-height: 475px;
    margin-left: -95px;

    .item-container {
      max-height: 375px;
    }
  }

  .category-menu {
    max-height: 485px;
    .item-container {
      max-height: 395px;
    }
  }

  .stock-menu {
    margin-left: -95px;
  }

  .order-menu {
    max-height: 515px;
  }

  .years-menu {
    max-height: 485px;
    margin-left: -85px;
    .item-container {
      max-height: 390px;
    }
  }
}

.item-name {
  white-space: nowrap;
}

/*
  ##Device = Tablets, Ipads
*/
@media (min-width: 768px) and (max-width: 1024px) {
  .group-menu {
    margin-left: -42px;
    max-height: 490px;

    .item-container {
      max-height: 395px;
    }
  }

  .lang-menu {
    max-height: 460px;
    margin-left: -95px;

    .item-container {
      max-height: 360px;
    }
  }

  .category-menu {
    max-height: 485px;
    .item-container {
      max-height: 380px;
    }
  }

  .stock-menu {
    margin-left: -95px;
  }

  .order-menu {
    max-height: 460px;

    .item-container {
      max-height: 360px;
    }
  }

  .years-menu {
    margin-left: -85px;
    .item-container {
      max-height: 330px;
    }
  }
}

.filter-wrapper {
  display: flex;
  flex-direction: row;
  // justify-content: space-between;
  flex-wrap: wrap;
}

@media (max-height: 919px) {
  .item-container {
    max-height: 360px;
  }
}

@media (max-height: 861px) {
  .item-container {
    max-height: 300px;
  }
}
