/* Faceted Search - Layout */
#mainContent_catalog {
  padding-left: 18px;
}

/* General Layout */
.cm-content .row { display: flex; }

.cm-cols {display: block;}
.cm-cols .cm_content{
  display: block;
  max-width: 100%;
  min-height: 100vh;
}
.cm-flex { display: flex; gap: 0.5em; }
.cm-flex-full-width { flex: 1; }
.cm_content .row {
  display: flex;
}

/* Faceted Search - selected items */
.cm_uncheck_filter_container { margin-bottom: 1rem; }
.cm_uncheck_filter_container .cm_uncheck_filter_class { 
  background-color: #fff; 
  border: 1px solid #464646;
  border-radius: 10px;
  color: #464646;
  cursor: pointer;
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
  margin-right: 10px;
  padding: 4px 12px;
  width: fit-content;
}
.cm_uncheck_filter_class::after { content: 'X'; padding-left:10px;margin-right: 0px; }
.cm_uncheck_filter_class:hover, .cm_uncheck_filter_class:focus, .cm_uncheck_filter_class:active { background-color: #ecefd8; color: #464646; text-decoration: none; outline: none; }


/* Faceted Search */

#filterBox { 
  margin-top: 1.5rem; 
  padding-right: 18px; 
}
#filterBox fieldset { border: none; background-color: #ecefd8; margin: 0 0 20px 0; }
#filterBox h3 { font-size: 1.2rem; font-weight: 400; margin-bottom: 0; text-transform: uppercase; }

.filter_block_inner_container { margin-top: 1rem; }
.bpp-filter-menu-mobile-remove-all{background-color: transparent !important; padding:0 0 0 0 !important; border:0px !important;text-transform: none !important;letter-spacing: normal !important;font-family: "Arial", sans-serif !important;text-decoration: underline !important;}
.bpp-filter-menu-mobile-remove-all:hover{text-decoration: none !important;}
/* Faceted Search - Checkbox styling */
.filter-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #6C6F70;
  border-radius: 3px;
  background-color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  margin: 2px 0 0 0;
  padding: 0.5rem;
  position: relative;
}

.filter-checkbox input[type="checkbox"]:checked {
  background-color: #6C6F70;
  border-color: #6C6F70;
}

.filter-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-checkbox input[type="checkbox"]:hover {
  border-color: #006644;
}

.filter-checkbox input[type="checkbox"]:focus {
  outline: 2px solid #006644;
  outline-offset: 2px;
}

.filter-checkbox-label {
  cursor: pointer;
  line-height: 1.4;
  flex: 1;
  margin: 0;
  font-weight: normal;
}

.filter-checkbox input[type="checkbox"]:checked + .filter-checkbox-label {
  font-weight: 600;
}
.filter-sort-bar-select-placeholder{color:#464646;}
.filter-sort-bar-select-style a{text-decoration: none;
	color:#464646 !important;}
.filter-sort-bar-select-dropdown-option a:hover, .filter-sort-bar-select-dropdown-option a.active {
	text-decoration: none;
	background-color: #597C31 !important;
	color: #fff !important;}
/* Faceted Search - Button styling */
#filterBox .btn, 
#filterBox button {
  background-color: #eeaf00;
  border: 2px solid #eeaf00; 
  cursor: pointer;
	transition: background .2s ease-out;
}
#filterBox button{padding:0.5em 1em;font-family: "Oswald", sans-serif;
    font-weight: 400;
    letter-spacing: .05em;
    font-size: 16px;
text-transform: uppercase;}
#filterBox .btn:hover, 
#filterBox .btn:active, 
#filterBox .btn:focus,
#filterBox button:hover,
#filterBox button:active, 
#filterBox button:focus { 
  background-color: transparent; 
}
.form-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em;
}
.form-search .input-large {
  width: calc( 100% - 82px );
}
.form-search #cm_text_search{color:#464646;}
.form-search input.btn { 
  background-color: #eeaf00;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="%23ffffff"><path d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/></svg>');
  background-position: center;
  background-repeat: no-repeat;
  background-size: 25px 25px;
  color: transparent; 
  cursor: pointer;
  font-size: 1.5rem;
  padding: 5px 10px;
  text-indent: -9999px;
  width: 45px;
}
.form-search input.btn:hover, .form-search input.btn:active, .form-search input.btn:focus { 
  background-color: transparent; 
  color: transparent; 
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" fill="%23eeaf00"><path d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/></svg>');
}

.filter_block_inner_container .date_picker:nth-child(2) {
  margin-top: 0.5rem;
}

/* Faceted Search - More / Less styling */

.cm-faceted-search-filter-block-side-expand-collapsed,
.cm-faceted-search-filter-block-side-expand-expanded {
  cursor: pointer;
  color: #006644;
  font-size: 14px;
}

.cm-faceted-search-filter-block-side-expand-collapsed:hover,
.cm-faceted-search-filter-block-side-expand-expanded:hover {
  color: #597C31;
}

.cm-faceted-search-filter-block-side-expand-collapsed {
  display: none;
}

.collapsed .cm-faceted-search-filter-block-side-expand-collapsed {
  display: inline;
}

.cm-faceted-search-filter-block-side-expand-expanded {
  display: inline;
}

.collapsed .cm-faceted-search-filter-block-side-expand-expanded {
  display: none;
}

#filterBox .collapse {
  display: none;
}

#filterBox .collapse.in,
#filterBox .collapse.show {
  display: block;
}

#filterBox .collapsing {
  display: block;
  height: 0;
  overflow: hidden;
  transition: height .35s ease;
}

.collapse:has(~ .cm-faceted-search-filter-block-side-expand-text.collapsed) {
  display: none !important;
}
 
/* Mobile Filters Toggle */
.faceted-filters-mobile-toggle {
  display: none;
  cursor: pointer;
}

#faceted-search-filters-heading {
  display: none;
  height: 0;
  width: 0;
  margin: 0;
}
.filter-sort-bar-column-1{width:150px !important;}
@media screen and (max-width: 768px) {
  .cm_content .row {
    flex-wrap: wrap;
  }
  #filterBox {
    border: none;
    padding: 0;
    padding-bottom: 15px;
    padding-right: 0 !important;
    margin-bottom: 15px;
    width: 100%;
  }
  
  #mainContent_catalog {
    padding-left: 0;
  }
  
  #filterBox h2 {
    background-color: #ecefd8;
    width: calc(100% - 40px);
    position: relative;
    padding: 10px 20px 12px;
	  margin-bottom:0;
  }

  #cm_faceted_search_form {
    display: none;
  }

  #faceted-search-filters-heading:checked + #cm_faceted_search_form {
    display: block;
	  margin-top:1em;
  }

  h2:has(+ #faceted-search-filters-heading) .faceted-filters-mobile-toggle:before {
    content: '\f105';
    font: var(--fa-font-regular);
    font-size: 2rem;
    line-height: 1;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
  }

  h2:has(+ #faceted-search-filters-heading:checked) .faceted-filters-mobile-toggle:before {
    content: '\f107';
  }
	.filter-sort-bar{padding-top: 0px !important;}
	.filter-sort-bar-row{display: grid !important;}
	.filter-sort-bar-column.filter-sort-bar-column-2{display: grid !important;}
	.filter-sort-bar-sort-order, .filter-sort-bar-per-page{padding-left:0 !important;}

  .faceted-search-filters-heading {
    display: inline-block;
    position: relative;
    width: 100%;
  }

  .faceted-filters-mobile-toggle {
    display: inline-block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }

  #mainContent_catalog {
    max-width: 100vw;
  }
}
