/* Search root is the same Bootstrap .row as catalog section */

/* Search uses catalog classes; only minimal fixes */

.px-search-dns__guess {
  font-size: 14px;
}

.px-search-dns__history {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  font-size: 13px;
}

.px-search-dns__history-label {
  color: var(--catalog-grey-text, #A5A5A5);
}

.px-search-dns__history-link {
  color: #000;
  text-decoration: none;
  border-bottom: 1px dashed #cfcfcf;
}

/* Filter groups — collapse/expand like catalog smart filter */
.px-search-dns .bx_filter_parameters_box {
  position: relative;
  clear: both;
  float: none !important;
  width: 100% !important;
  margin: 0 0 28px !important;
  padding: 0;
  display: flow-root;
}

.px-search-dns .bx_filter_parameters_box_title {
  display: inline-block;
  margin: 0 0 8px;
  position: relative;
  z-index: 2;
  background: #fff;
  cursor: pointer;
  user-select: none;
}

.px-search-dns .bx_filter_block {
  position: relative;
  clear: both;
  overflow: hidden;
}

.px-search-dns .bx_filter_parameters_box:not(.active) .bx_filter_block {
  display: none;
}

.px-search-dns .bx_filter_parameters_box.active .bx_filter_block {
  display: block;
}

.px-search-dns .bx_filter_parameters_box_container {
  overflow: hidden;
}

.px-search-dns .bx_filter_param_label {
  display: block !important;
  position: static !important;
  clear: both;
  float: none !important;
  margin: 0 0 4px;
  cursor: pointer;
}

/*
  main.js strips all_visible and shows only first 10 items (catalog behaviour).
  Do NOT force max-height here — that was clipping the box while labels still painted over the next group.
*/
.px-search-dns .catalog-filter__scroll,
.px-search-dns .catalog-filter__scroll.all_visible,
.px-search-dns .px-filter-scroll {
  max-height: none !important;
  overflow: hidden !important;
  position: relative;
}

.px-search-dns .sidebar__categories a.is-active div,
.px-search-dns .sidebar__categories a:hover {
  background-color: var(--background-hover-btn-for-filter, #e3e4e6);
}

.px-search-dns__reset {
  color: var(--main-color, #E42035);
  font-size: 13px;
  text-decoration: none;
}

.px-search-dns__active {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.px-search-dns__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #fff7f8;
  border: 1px solid #f0b4bb;
  color: #231F20;
  text-decoration: none;
  font-size: 13px;
}

.px-search-dns__tag span {
  color: #8C8C8C;
  font-size: 16px;
  line-height: 1;
}

.px-search-dns__tag-reset {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  color: var(--main-color, #E42035);
  font-size: 13px;
  text-decoration: none;
}

.px-search-dns .view-button.is-active {
  opacity: 1;
}

.px-search-dns .view-button:not(.is-active) {
  opacity: .45;
}

.px-search-dns__empty {
  text-align: center;
  padding: 48px 16px;
  background: #F5F5F5;
  border-radius: 12px;
}

.px-search-dns__empty h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.px-search-dns__empty p {
  margin: 0;
  color: #8C8C8C;
}

.px-search-dns .bx_pagination_bottom,
.px-search-dns [data-pagination-num],
.px-search-dns .show_all_link_bl,
.px-search-dns .js__show_full_list {
  display: none !important;
}

.px-search-dns__sidebar-close {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #8C8C8C;
}

.px-search-dns__sidebar-backdrop {
  display: none;
}

@media (max-width: 767.98px) {
  .px-search-dns .sidebar-wrap {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 320px);
    z-index: 1200;
    background: #fff;
    padding: 12px;
    transform: translateX(-105%);
    transition: transform .2s ease;
    overflow: auto;
    display: block !important;
  }

  .px-search-dns.is-filters-open .sidebar-wrap {
    transform: translateX(0);
  }

  .px-search-dns.is-filters-open .px-search-dns__sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    z-index: 1190;
  }
}


.px-search-dns.is-loading {
  opacity: .55;
  pointer-events: none;
  transition: opacity .15s ease;
}


.px-search-dns .catalog__products.is-view-loading,
[data-entity="search-grid"].is-view-loading {
  opacity: .45;
  pointer-events: none;
  transition: opacity .15s ease;
}
