.sidebar__filter {
  padding: 0 1.6rem;
  margin-bottom: 1.5rem;

  border: 1px solid #F2F2F2;
  border-radius: $radius;

  @include media-breakpoint-down(md) {
    border: none;
    padding: 0;
  }
}

.sidebar__form {
  @include media-breakpoint-down(md) {
    width: 100%;
    height: 100%;
    padding: 0 1.6rem;
    display: none;

    background-color: rgba(#333, .75);

    position: fixed;
    top: 0;
    right: 0;
    z-index: 1010;

    &.active {
      display: block;
    }

  }
}

.sidebar__form-wrapper {
  @include media-breakpoint-down(md) {
    width: 100%;
    max-width: 320px;
    height: 100%;
    overflow-y: auto;
    padding: 0 1.6rem 1.6rem;

    background-color: $white;

    position: absolute;
    top: 0;
    right: 0;
  }
}

.sidebar__filter-header {
  display: none;
  margin-bottom: 1.5rem;

  border-bottom: 1px solid #f2f2f2;

  @include media-breakpoint-down(md) {
    display: block;
    padding: 1.8rem 0;
  }
}

.sidebar__filter-footer {
  display: none;

  padding-top: 2rem;
  margin-top: 2.4rem;

  border-top: 1px solid #f2f2f2;

  @include media-breakpoint-down(md) {
    display: block;
  }
}

.sidebar__block {
  padding: 2rem 0;

  border-bottom: 1px solid #F2F2F2;

  &:last-of-type {
    border-bottom: none;
  }
}

.sidebar__title {
  position: relative;

  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.2;
  color: $dark;
  cursor: pointer;
  user-select: none;

  &::after {
    content: "";
    width: 16px;
    height: 16px;
    margin-left: 1rem;

    background: url("/shop/images/dropdown-toggle-arrow.svg") center no-repeat;
    border: none;

    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  &.active {
    &::after {
      transform: translateY(-50%) rotate(180deg);
    }
  }
}

.sidebar__contact {
  // height: 183px;
  overflow: hidden;
  margin-bottom: 1.2rem;
  padding: 1.2rem;
  position: relative;

  // background: url("/shop/images/sidebar-contact.jpg") center no-repeat;
  background-size: cover;
  border-radius: $radius;

  @include media-breakpoint-down(md) {
    display: none;
  }
}

.sidebar__contact-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  width: 100%;
}

.sidebar__contact-content {
  padding-left: 1.2rem;
}

.sidebar__contact-photo {
  width: 6.5rem;
  height: 6.5rem;

  border-radius: 50%;
}

.sidebar__contact-text {
  font-size: 1.2rem;
  color: #9E9E9E;
}

.sidebar__contact-name {
  font-weight: 500;
  font-size: 1.4rem;
  color: $dark;
}

.sidebar__contact-phone {
  font-size: 1.2rem;
  color: $dark;
  text-decoration: none;

  img {
    margin-right: 4px;
    position: relative;
    top: 3px;
  }

  &:hover {
    text-decoration: underline;
  }
}


.sidebar__benefits {
  margin-bottom: 1rem;

  list-style: none;

  background-color: $gray;
  border-radius: $radius;
  border: 1px solid #F2F2F2;

  @include media-breakpoint-down(md) {
    display: none;
  }
}

.sidebar__benefits-item {
  padding: 0.8rem 1.6rem;

  text-align: center;

  &:first-child {
    padding: 0;
    margin: 1.6rem 0;
    border-bottom: none;
  }

  &:last-child {
    .sidebar__benefits-text {
      border-bottom: none;
    }
  }
}

.sidebar__benefits-photo {
  display: block;
  max-width: 100%;
  height: auto;
}

.sidebar__benefits-icon {
  width: 2.4rem;
  height: 2.4rem;
  margin: 0 auto;
}

.sidebar__benefits-text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding-bottom: 1.6rem;

  font-size: 1.4rem;
  line-height: 1.45;
  font-weight: 500;
  color: $dark;

  border-bottom: 1px solid #F2F2F2;
}

.sidebar__header-title {
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 1.2;
  color: $dark;
}

.sidebar__close {
  display: none; /* Hidden by default */
  
  @include media-breakpoint-down(md) {
    display: block; /* Only show on mobile */
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;

    border: none;
    background: transparent;
    cursor: pointer;

    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    z-index: 1;
  }
}