.filter {
  .accordion__content {
    padding: 20px 0 0;
  }

  &__item {
    margin-bottom: 20px;

    &:last-child {
      margin-bottom: 0;
    }
  }

  &.category-filter {
    .accordion__content {
      padding-top: 5px;
    }
  }

  &-quantity {
    color: $warm-grey;
  }
}

.filter-results {
  &_mobile {
    max-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  &__heading {
    padding: 10px 0;

    .link-secondary {
      text-decoration: none;
      float: right;
    }
  }

  &__actions {
    padding-top: 40px;
  }

  &__clear {
    @include link-primary;
    float: right;
    margin-top: 2px;
    background-color: transparent;
    border: 0;
    text-decoration: underline;
    padding: 0;

    &:hover {
      cursor: pointer;
    }
  }

  &__close-holder {
    margin-bottom: 10px;
    text-align: right;
  }

  &__btn-close {
    color: $warm-grey;
    font-size: 1rem;
  }

  .custom-scroll {
    &[data-simplebar] {
      max-height: 234px;
    }
  }
}

.hidden-state {
  display: none;
}

@include media-breakpoint-down(sm) {
  .is-filters-visible {
    position: fixed;
  }

  .filter-results {
    padding: 20px 15px;
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: $zindex-modal;
    background-color: $white;
    overflow-y: auto;

    &.show {
      display: block;
    }

    &__heading {
      padding-bottom: 20px;
    }
  }
}

@include media-breakpoint-up(md) {
  .filter-results {
    &__heading {
      padding-top: 0;
    }

    &_mobile,
    &__actions,
    &__close-holder {
      display: none;
    }
  }
}
