/* ========================================================================== 
   Veridian 2.6.93 — All Products sidebar/layout hard fix
   Loaded explicitly after the consolidated theme stylesheet so this rule is
   active on existing shops even when their saved page layout is Full Width.
   ========================================================================== */

/* Desktop/tablet: force the faceted rail and catalogue to be two columns. */
@media (min-width: 768px) {
  body#module-vh_allproducts-all #wrapper > .container > .row,
  body.vh-all-products #wrapper > .container > .row {
    display: grid !important;
    grid-template-columns: 250px minmax(0, 1fr) !important;
    column-gap: 26px !important;
    align-items: start !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  body#module-vh_allproducts-all #wrapper > .container > .row > #left-column,
  body.vh-all-products #wrapper > .container > .row > #left-column {
    grid-column: 1 !important;
    grid-row: 1 !important;
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body#module-vh_allproducts-all #wrapper > .container > .row > #content-wrapper,
  body.vh-all-products #wrapper > .container > .row > #content-wrapper {
    grid-column: 2 !important;
    grid-row: 1 !important;
    float: none !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* All Products is intentionally a two-column page. If the shop has an old
     saved layout selection, prevent an unused right column from occupying a
     third grid cell. */
  body#module-vh_allproducts-all #wrapper > .container > .row > #right-column,
  body.vh-all-products #wrapper > .container > .row > #right-column {
    display: none !important;
  }

  body#module-vh_allproducts-all #left-column #search_filters_wrapper,
  body.vh-all-products #left-column #search_filters_wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 24px !important;
  }
}

@media (min-width: 1200px) {
  body#module-vh_allproducts-all #wrapper > .container > .row,
  body.vh-all-products #wrapper > .container > .row {
    grid-template-columns: 280px minmax(0, 1fr) !important;
    column-gap: 30px !important;
  }
}

/* Reference-style FILTER BY card. */
body#module-vh_allproducts-all #left-column .block-categories,
body.vh-all-products #left-column .block-categories {
  display: none !important;
}

body#module-vh_allproducts-all #left-column #search_filters,
body.vh-all-products #left-column #search_filters {
  width: 100% !important;
  padding: 18px 17px 20px !important;
  margin: 0 !important;
  background: #fbfaf3 !important;
  border: 1px solid #d6dac1 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

body#module-vh_allproducts-all #left-column #search_filters > .h6,
body.vh-all-products #left-column #search_filters > .h6 {
  display: block !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
  border: 0 !important;
  color: #111 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

body#module-vh_allproducts-all #left-column #search_filters .facet,
body.vh-all-products #left-column #search_filters .facet {
  margin: 0 0 24px !important;
  padding: 0 !important;
  border: 0 !important;
}

body#module-vh_allproducts-all #left-column #search_filters .facet:last-child,
body.vh-all-products #left-column #search_filters .facet:last-child {
  margin-bottom: 0 !important;
}

body#module-vh_allproducts-all #left-column #search_filters .facet .facet-title,
body.vh-all-products #left-column #search_filters .facet .facet-title {
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: #111 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
}

body#module-vh_allproducts-all #left-column #search_filters .facet ul,
body.vh-all-products #left-column #search_filters .facet ul {
  margin: 0 !important;
  padding: 0 !important;
}

body#module-vh_allproducts-all #left-column #search_filters .facet ul li,
body.vh-all-products #left-column #search_filters .facet ul li {
  margin: 0 !important;
  padding: 4px 0 !important;
  border: 0 !important;
}

body#module-vh_allproducts-all #left-column #search_filters .facet .facet-label,
body.vh-all-products #left-column #search_filters .facet .facet-label {
  display: flex !important;
  align-items: center !important;
  min-height: 24px !important;
  margin: 0 !important;
  gap: 4px !important;
}

body#module-vh_allproducts-all #left-column #search_filters .facet .facet-label a,
body.vh-all-products #left-column #search_filters .facet .facet-label a {
  margin: 0 !important;
  color: #31382c !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
}

body#module-vh_allproducts-all #left-column #search_filters .facet .facet-label a:hover,
body.vh-all-products #left-column #search_filters .facet .facet-label a:hover,
body#module-vh_allproducts-all #left-column #search_filters .facet .facet-label.active a,
body.vh-all-products #left-column #search_filters .facet .facet-label.active a {
  color: #5f752e !important;
}

body#module-vh_allproducts-all #left-column #search_filters .custom-checkbox input[type="checkbox"] + span,
body.vh-all-products #left-column #search_filters .custom-checkbox input[type="checkbox"] + span {
  width: 14px !important;
  height: 14px !important;
  margin: 0 6px 0 0 !important;
  border: 1px solid #777 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

/* Keep filter values from making the rail wider than its grid column. */
body#module-vh_allproducts-all #left-column #search_filters a,
body.vh-all-products #left-column #search_filters a {
  overflow-wrap: anywhere;
}

/* Mobile remains one column; Faceted Search's normal Filter button controls
   the hidden wrapper. */
@media (max-width: 767.98px) {
  body#module-vh_allproducts-all #wrapper > .container > .row,
  body.vh-all-products #wrapper > .container > .row {
    display: block !important;
    margin-left: -15px !important;
    margin-right: -15px !important;
  }

  body#module-vh_allproducts-all #wrapper > .container > .row > #left-column,
  body.vh-all-products #wrapper > .container > .row > #left-column,
  body#module-vh_allproducts-all #wrapper > .container > .row > #content-wrapper,
  body.vh-all-products #wrapper > .container > .row > #content-wrapper {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
