/*
 * The filter name component.
 *
 * Edit this file. It is served as it is — nothing compiles it, and the
 * order it loads in is set in resources/css/order.php.
 */

.filter-name__dropdown {
  background-color:#181818;
  color:#fff;
  width:calc(var(--grid-column-width)*5.25 + var(--grid-gap)*4.25);
  z-index:2;
}

@media (max-width:900px)and (orientation:landscape),screen and (max-width:767px) {

  .filter-name__dropdown {
    width:100%;
  }
}

.filter-name__dropdown-inner {
  display:flex;
  flex-direction:column;
  gap:64px;
  height:100%;
  justify-content:space-between;
  padding:16px 24px;
  width:100%;
}

@media screen and (max-width:1440px) {

  .filter-name__dropdown-inner {
    gap:32px;
  }
}

.filter-name__items-container {
  display:grid;
  gap:6px;
  grid-template-columns:repeat(4,1fr);
  width:100%;
}

.filter-name__item {
  border:1px solid #ccc;
  font-weight:600;
  height:48px;
  transition:color .3s ease,background-color .3 ease;
}

@media(any-hover:hover),(hover:hover)and (pointer:fine) {

  .filter-name__item:not(:disabled):hover {
    background-color:#f1ede4;
    color:#181818;
  }
}

@media screen and (max-width:1440px) {

  .filter-name__item {
    height:32px;
  }
}

.filter-name__item-label {
  align-items:center;
  border:1px solid #ccc;
  cursor:pointer;
  display:flex;
  font-weight:600;
  height:100%;
  justify-content:center;
  padding-inline:24px;
  transition:color .3s ease,background-color .3 ease;
}

@media screen and (max-width:1440px) {

  .filter-name__item-label {
    padding-inline:16px;
  }
}

.filter-name__item:has(input:checked) {
  background-color:#f1ede4;
  color:#181818;
}

.filter-name__sort-container {
  display:flex;
  flex-direction:column;
  gap:8px;
}

@media (max-width:900px)and (orientation:landscape),screen and (max-width:767px) {

  .filter-name__sort-container {
    width:100%;
  }
}

.filter-name__btn {
  align-items:center;
  display:flex;
  height:100%;
  justify-content:space-between;
  padding:19px;
  transition:color .3s ease,background-color .3 ease;
  width:100%;
}

@media(any-hover:hover),(hover:hover)and (pointer:fine) {

  .filter-name__btn:not(:disabled):hover {
    background-color:#181818;
    color:#fff;
  }
}

.filter-name__btn svg {
  transform:rotate(180deg);
  transition:transform .3s ease-in-out;
}

@media(any-hover:hover),(hover:hover)and (pointer:fine) {

  .filter-name__btn:not(:disabled):hover svg {
    transform:rotate(0deg);
  }
}

@media screen and (max-width:1440px) {

  .filter-name__btn {
    padding:12px 10px;
  }
}

.filter-name__btn.is-active {
  background-color:#181818;
  color:#fff;
}

.filter-name__btn.is-active svg {
  transform:rotate(180deg);
}
