/* Mobile presentation of Aspro's existing compact smart filter. */
.isf-header, .isf-footer, .isf-summary, .isf-sort-control { display: none; }
@media (max-width: 767px) {
  .filter-panel.isf-toolbar {
    display: flex !important; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 0 !important; min-height: 76px; position: relative; overflow: visible !important;
  }
  .filter-panel.isf-toolbar > .filter-panel__filter,
  .filter-panel.isf-toolbar > .isf-sort-control { display: block !important; float: none !important; flex: 1 1 0; width: 0; margin: 0 !important; padding: 0 !important; position: relative; }
  .filter-panel.isf-toolbar > .filter-panel__sort,
  .filter-panel.isf-toolbar > .filter-panel__view,
  .filter-panel.isf-toolbar > .clearfix,
  .filter-panel.isf-toolbar .controls-hr { display: none !important; }
  .filter-panel.isf-toolbar .bx-filter-title,
  .filter-panel.isf-toolbar .isf-sort-toggle {
    display: flex !important; justify-content: center; align-items: center; gap: 9px; width: 100%; height: 46px;
    box-sizing: border-box; margin: 0 !important; padding: 10px 8px !important; border: 1px solid #1d1d1f !important;
    border-radius: 12px !important; background: #fff !important; color: #1d1d1f !important; font: inherit;
    font-size: 13px !important; font-weight: 600; line-height: 20px; text-transform: none !important; letter-spacing: 0 !important;
    text-decoration: none !important; box-shadow: none !important; cursor: pointer;
  }
  .filter-panel.isf-toolbar .bx-filter-title > span { border: 0 !important; text-decoration: none !important; text-transform: none !important; letter-spacing: 0 !important; font: inherit !important; }
  .filter-panel.isf-toolbar .bx-filter-title::after,
  .filter-panel.isf-toolbar .bx-filter-title > span::after { display: none !important; }
  .filter-panel.isf-toolbar .bx-filter-title .svg { display: inline-flex; margin: 0 !important; top: auto; }
  .filter-panel.isf-toolbar .bx-filter-title svg { width: 14px; height: 14px; }
  .filter-panel.isf-toolbar .isf-sort-toggle > svg { width: 18px; height: 18px; flex-shrink: 0; }
  .filter-panel.isf-toolbar .isf-sort-menu {
    display: grid; gap: 4px; position: absolute; top: calc(100% + 8px); right: 0; z-index: 102;
    width: min(270px, calc(100vw - 32px)); padding: 8px; background: #fff; color: #1d1d1f;
    border: 1px solid #e6e6e9; border-radius: 14px; box-shadow: 0 10px 35px rgb(0 0 0 / 12%);
  }
  .filter-panel.isf-toolbar .isf-sort-menu[hidden] { display: none !important; }
  .filter-panel.isf-toolbar .isf-sort-option { display: block; padding: 12px; margin: 0; color: #1d1d1f !important; font-size: 13px; line-height: 20px; border-radius: 8px; }
  .filter-panel.isf-toolbar .isf-sort-option:hover,
  .filter-panel.isf-toolbar .isf-sort-option:focus-visible { background: #f5f5f7; }
  .filter-panel.isf-toolbar :focus-visible { outline: 2px solid #111; outline-offset: 3px; }
  html.isf-open, html.isf-open body { overflow: hidden !important; overscroll-behavior: none; }
  html.isf-open body { padding-right: 0 !important; }
  #mobilefilter.istore-filter-sheet {
    inset: auto 0 0 !important; width: 100% !important; max-width: none !important;
    height: 78vh; height: min(78dvh, 720px); max-height: calc(100dvh - 24px);
    background: #fff !important; color: #1d1d1f; border-radius: 24px 24px 0 0 !important;
    z-index: 10010; overflow: hidden !important; box-sizing: border-box;
    transform: translateY(105%); visibility: hidden; opacity: 0;
    transition: transform 280ms cubic-bezier(.22,.68,.25,1), opacity 200ms, visibility 280ms;
    box-shadow: 0 -12px 48px rgb(0 0 0 / 12%) !important;
  }
  #mobilefilter.istore-filter-sheet.show { transform: translateY(0); visibility: visible; opacity: 1; }
  #mobilefilter.istore-filter-sheet:focus { outline: none; }
  html.isf-open #mobilefilter-overlay { background: #17171b; opacity: .4 !important; z-index: 10009; }
  html.isf-open [id^="smartFilterDropDown"] { z-index: 10012 !important; }
  #mobilefilter.istore-filter-sheet .bx_filter,
  #mobilefilter.istore-filter-sheet .bx_filter_section,
  #mobilefilter.istore-filter-sheet .smartfilter { height: 100% !important; margin: 0 !important; padding: 0 !important; background: #fff !important; border: 0 !important; }
  #mobilefilter.istore-filter-sheet > .bx_filter { z-index: 1 !important; }
  #mobilefilter.istore-filter-sheet .smartfilter > .bx_filter_parameters_box.title,
  #mobilefilter.istore-filter-sheet .smartfilter > .bx_filter_button_box,
  #mobilefilter.istore-filter-sheet .bx_filter_button_box,
  #mobilefilter.istore-filter-sheet .smartfilter > .bx_filter_search_reset,
  #mobilefilter.istore-filter-sheet .char_name,
  #mobilefilter.istore-filter-sheet .delete_filter,
  #mobilefilter.istore-filter-sheet .count_selected,
  #mobilefilter.istore-filter-sheet .bx_filter_popup_result { display: none !important; }
  #mobilefilter.istore-filter-sheet .bx_filter .bx_sort_filter { display: none !important; }
  #mobilefilter.istore-filter-sheet .prices .bx_filter_block .bx_filter_parameters_box_title.prices { display: none !important; }
  #mobilefilter.istore-filter-sheet .bx_filter .bx_filter_parameters {
    position: absolute !important; inset: 78px 0 calc(86px + env(safe-area-inset-bottom, 0px)) !important;
    padding: 0 20px 16px !important; margin: 0 !important; overflow: auto !important;
    overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
  }
  #mobilefilter.istore-filter-sheet .bx_filter .bx_filter_parameters_box {
    float: none !important; display: block; width: 100% !important; padding: 0 !important;
    margin: 0 !important; border: 0 !important; border-bottom: 1px solid #e9e9ec !important;
    border-radius: 0 !important; background: #fff !important; box-shadow: none !important;
  }
  #mobilefilter.istore-filter-sheet .bx_filter .isf-heading {
    position: relative !important; display: flex !important; align-items: center; gap: 8px;
    min-height: 62px; box-sizing: border-box; padding: 18px 26px 18px 0 !important; margin: 0 !important;
    font: inherit; font-size: 15px !important; font-weight: 500; line-height: 22px; letter-spacing: 0;
    text-transform: none; color: #1d1d1f !important; background: transparent !important;
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important; cursor: pointer;
  }
  #mobilefilter.istore-filter-sheet .isf-heading > .text { flex: 1; }
  #mobilefilter.istore-filter-sheet .isf-heading .svg-inline-down,
  #mobilefilter.istore-filter-sheet .isf-heading::before { display: none !important; }
  #mobilefilter.istore-filter-sheet .bx_filter .isf-heading::after {
    content: '' !important; display: block !important; position: absolute; right: 3px; top: 26px;
    width: 7px; height: 7px; border: solid #8b8b92; border-width: 1.5px 1.5px 0 0;
    background: none !important; transform: rotate(45deg); transition: transform 180ms;
  }
  #mobilefilter.istore-filter-sheet .bx_filter .isf-heading[aria-expanded="true"]::after { transform: rotate(135deg); top: 24px; }
  #mobilefilter.istore-filter-sheet .isf-summary:not(:empty) {
    display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px;
    padding: 0 6px; background: #f1f1f3; color: #111111; border-radius: 7px; font-size: 11px; font-weight: 600;
  }
  #mobilefilter.istore-filter-sheet .bx_filter .bx_filter_block {
    position: static !important; width: 100% !important; min-width: 0 !important; max-height: none !important;
    padding: 0 0 18px !important; margin: 0 !important; opacity: 1 !important;
    border: 0 !important; background: #fff !important; box-shadow: none !important;
  }
  #mobilefilter.istore-filter-sheet .bx_filter .bx_filter_block[hidden] { display: none !important; }
  #mobilefilter.istore-filter-sheet .bx_filter .bx_filter_block:not([hidden]) { display: block !important; }
  #mobilefilter.istore-filter-sheet .bx_filter_block > .bx_filter_parameters_box_title { display: none !important; }
  #mobilefilter.istore-filter-sheet .bx_filter_parameters_box_container { max-height: none !important; padding: 0 !important; }
  #mobilefilter.istore-filter-sheet .isf-heading + .bx_filter_block .bx_filter_parameters_box_container { margin-top: 3px !important; }
  #mobilefilter.istore-filter-sheet .bx_filter_block .scrollblock { overflow: visible !important; }
  #mobilefilter.istore-filter-sheet .bx_filter_parameters_box.isf-inline > .bx_filter_block { padding: 18px 0 !important; }
  #mobilefilter.istore-filter-sheet .isf-inline .bx_filter_parameters_box_title { color: #1d1d1f !important; background: transparent !important; padding: 0 !important; }
  #mobilefilter.istore-filter-sheet .isf-inline .bx_filter_parameters_box_title::after { display: none !important; }
  #mobilefilter.istore-filter-sheet .bx_filter .filter-value-wrap { margin: 0 !important; }
  #mobilefilter.istore-filter-sheet .bx_filter label:not(.nab) { position: relative; display: block; min-height: 40px; padding: 9px 0 9px 32px !important; font-size: 14px; line-height: 22px; }
  #mobilefilter.istore-filter-sheet .bx_filter input + label:not(.nab)::before { content: '' !important; display: block !important; position: absolute; z-index: 1; left: 0; top: calc(50% - 10px); width: 20px; height: 20px; box-sizing: border-box; background: #fff !important; border: 1.5px solid #d8d8de !important; border-radius: 5px; box-shadow: none !important; opacity: 1 !important; }
  #mobilefilter.istore-filter-sheet .bx_filter input + label:not(.nab)::after { content: none !important; }
  #mobilefilter.istore-filter-sheet .bx_filter input:checked + label:not(.nab)::before { background: #111111 !important; border-color: #111111 !important; }
  #mobilefilter.istore-filter-sheet .bx_filter input:checked + label:not(.nab)::after { content: '' !important; position: absolute; left: 7px; top: calc(50% - 6px); width: 6px; height: 10px; background: transparent !important; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) !important; margin: 0 !important; padding: 0 !important; box-sizing: border-box !important; display: block !important; border-radius: 0; opacity: 1 !important; }
  #mobilefilter.istore-filter-sheet .bx_filter input[type="text"] { height: 46px; font-size: 16px !important; border-radius: 10px !important; }
  #mobilefilter.istore-filter-sheet .wrapp_slider { padding-top: 18px !important; }
  #mobilefilter.istore-filter-sheet .isf-header {
    display: flex; position: absolute; inset: 0 0 auto; z-index: 12; height: 78px;
    align-items: center; justify-content: space-between; padding: 16px 16px 0 20px; background: #fff;
  }
  #mobilefilter.istore-filter-sheet .isf-header::before { content: ''; position: absolute; top: 9px; left: calc(50% - 18px); width: 36px; height: 4px; border-radius: 4px; background: #dcdce1; }
  #mobilefilter.istore-filter-sheet .isf-header h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.4px; color: #1d1d1f; }
  #mobilefilter.istore-filter-sheet .isf-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; padding: 0; border-radius: 50%; background: #f5f5f7; color: #56565e; cursor: pointer; }
  #mobilefilter.istore-filter-sheet .isf-close svg { width: 20px; height: 20px; }
  #mobilefilter.istore-filter-sheet .isf-footer {
    display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; position: absolute; inset: auto 0 0; z-index: 12;
    padding: 16px 16px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #eeeef1;
    background: #fff; box-shadow: 0 -6px 24px rgb(29 29 31 / 3%);
  }
  #mobilefilter.istore-filter-sheet .isf-footer button { min-width: 0; min-height: 50px; margin: 0; padding: 12px 8px; font: inherit; font-size: 13px; line-height: 20px; font-weight: 600; border-radius: 12px; cursor: pointer; }
  #mobilefilter.istore-filter-sheet .isf-apply { border: 1px solid #111111; background: #111111; color: #fff; }
  #mobilefilter.istore-filter-sheet .isf-reset { border: 1px solid #8a8a8f; background: transparent; color: #343439; }
  #mobilefilter.istore-filter-sheet .isf-footer button:active { filter: brightness(.94); }
  #mobilefilter.istore-filter-sheet :focus-visible { outline: 2px solid #111111; outline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) { #mobilefilter.istore-filter-sheet, #mobilefilter.istore-filter-sheet .isf-heading::after { transition: none !important; } }
