.bs-filter-mobile-toggle,
.bs-filter-mobile-close,
.bs-filter-mobile-heading,
.bs-filter-mobile-actions {
  display: none;
}

/* test */

.bs-filter-mobile-panel {
  display: contents;
}

@media (max-width: 991px) {
  html.mobile-filters-opened {
    overflow: hidden;
  }
  html.mobile-filters-opened #main-header {
    opacity: 0;
    z-index: 1;
  }
  html.mobile-filters-opened .sticky-mobile-buttons {
    display: none;
  }

  .bs-filter-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 15px;
    margin: 0 0 24px;
    background: #fff;
    border: 2px solid #1f3075;
    color: #003EA5;
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
  }
  .bs-filter-mobile-toggle::before {
    content: "";
    width: 21px;
    height: 20px;
    margin: 0 10px 0 0;
    background: url('/images/design/filter-icon-blue.svg') left center no-repeat;
  }
  .bs-filter-mobile-toggle .selected {
    margin: 0;
    font-style: normal;
    font-weight: 400;
    color: #757B8A;
  }

  .bs-filter-mobile-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100vw;
    bottom: 0;
    left: auto;
    width: 100%;
    background: #fff;
    z-index: 1000;
    pointer-events: none;
    transition: right .3s ease-in-out;
  }
  .bs-filter-mobile-panel.is-open {
    right: 0;
    pointer-events: auto;
  }

  .bs-filter-mobile-close {
    display: block;
    position: absolute;
    top: 20px;
    right: 16px;
    width: 20px;
    height: 20px;
    border: 0;
    background: transparent url('/images/design/close-mobile-filter-icon.svg') right center no-repeat;
    cursor: pointer;
    z-index: 2;
  }

  .bs-filter-mobile-heading {
    display: block;
    flex-shrink: 0;
  }
  .bs-filter-mobile-heading .block-heading {
    display: flex;
    align-items: center;
    margin: 0;
    width: 100%;
    height: 56px;
    padding: 0 15px;
    background: #f6f5fa;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    color: #232C4D;
  }
  .bs-filter-mobile-heading .block-heading::before {
    content: '';
    width: 20px;
    height: 20px;
    margin: 0 8px 0 0;
    background: url('/images/design/filter-icon.svg') left center no-repeat;
  }
  .bs-filter-mobile-heading .selected {
    margin-left: 7px;
    font-weight: 400;
    color: #ACAFB8;
  }
  .bs-filter-mobile-clear {
    display: flex;
    align-items: center;
    margin: 7px 0 0;
    border: 0;
    padding: 0 15px;
    background: none;
    color: #757B8A;
    font-family: inherit;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.01em;
    cursor: pointer;
  }
  .bs-filter-mobile-clear::before {
    content: '';
    width: 10px;
    height: 10px;
    margin: 0 4px 0 0;
    background: url('/images/design/reset-form-icon.svg') left center no-repeat;
  }
  .bs-filter-mobile-clear span {
    text-decoration-line: underline;
    text-decoration-thickness: 2px;
  }

  .bs-filter-mobile-panel .bs-filter {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
    max-width: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }

  .bs-filter-mobile-panel .bs-filter .filtrs-btn {
    display: none;
  }

  .bs-filter-mobile-panel .bs-filter .top-bar-controls {
    grid-column: auto;
    position: static;
    height: auto;
    min-height: 0;
    padding: 8px 15px 0;
    border-bottom: none;
    flex-shrink: 0;
  }
  .bs-filter-mobile-panel .bs-filter .sort-wrap {
    margin-left: 0;
    width: 100%;
  }

  .bs-filter-mobile-panel .bs-filter .grid-table {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow: auto;
    padding-bottom: 110px;
    -webkit-overflow-scrolling: touch;
  }

  .bs-filter-mobile-panel .bs-filter .grid-header {
    position: relative;
    top: auto;
    min-height: 0;
    order: 0;
    width: 100%;
    padding: 5px 50px 5px 15px;
    background: #fff;
    font-weight: 500;
    font-size: 16px;
    border-right: none;
    border-bottom: none;
    align-items: center;
  }
  .bs-filter-mobile-panel .bs-filter .grid-header:nth-child(odd) {
    background: #fff;
  }
  .bs-filter-mobile-panel .bs-filter .grid-header svg {
    display: none;
  }
  .bs-filter-mobile-panel .bs-filter .grid-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 15px;
    bottom: 0;
    width: 12px;
    height: 7px;
    margin: auto 0;
    background: url('/images/design/filter-arrow-down.svg') right center no-repeat;
    background-size: contain;
    transition: transform .3s ease-in-out;
  }
  .bs-filter-mobile-panel .bs-filter .grid-header.opened::after {
    transform: rotate(-180deg);
  }

  .bs-filter-mobile-panel .bs-filter .grid-value-col {
    display: none;
    padding: 10px 15px 18px;
    border-right: none;
    background: #fff;
  }
  .bs-filter-mobile-panel .bs-filter .grid-values.hidden .grid-value-col.mobile-open,
  .bs-filter-mobile-panel .bs-filter .grid-value-col.mobile-open {
    display: block;
  }

  .bs-filter-mobile-panel .bs-filter .pills,
  .bs-filter-mobile-panel .bs-filter .pills.wide-vals {
    display: flex;
    flex-wrap: wrap;
  }
  .bs-filter-mobile-panel .bs-filter .pill {
    flex: 0 1 auto;
    margin: 0 10px 10px 0;
    padding: 9px 8px;
    height: auto;
  }

  .bs-filter-mobile-panel .bs-filter .grid-footer {
    display: flex !important;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 16px 24px 132px;
    background: #fff;
    border-top: 1px solid #EAEAEB;
    z-index: 1;
  }
  .bs-filter-mobile-panel .bs-filter .active-chips,
  .bs-filter-mobile-panel .bs-filter .grid-footer .btn-clear {
    display: none;
  }
  .bs-filter-mobile-panel .bs-filter .footer-actions {
    width: 100%;
    margin-left: 0;
  }
  .bs-filter-mobile-panel .bs-filter .btn-show {
    flex-grow: 1;
    font-size: 16px;
  }

  .bs-filter-mobile-actions {
    display: flex;
    position: absolute;
    left: 16px;
    bottom: 24px;
    z-index: 2;
  }
  .bs-filter-mobile-cancel {
    min-width: 100px;
    height: 48px;
    padding: 10px 16px;
    margin-right: 16px;
    border: 1px solid #d9dade;
    background: #fff;
    color: #9195A1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
  }
}
