/* Style for the filter container */
.filter-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 9px;
}

/*the container must be positioned relative:*/
.custom-select {
  position: relative;
  font-family: Arial;
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-top: -1px;
}

#location .filter-list {
  max-height: 380px;
  overflow-y: auto;
}
#location .filter-list::-webkit-scrollbar {
  width: 8px;
}
#location .filter-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
#location .filter-list::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 10px;
  transition: 300ms all;
}
#location .filter-list::-webkit-scrollbar-thumb:hover {
  background: #777 !important;
}

.custom-select select {
  display: none; /*hide original SELECT element:*/
}
.filter-wrapper {
  display: flex;
  width: 100%;
}

.custom-select .btn-clear {
  display: flex;
  align-items: center;
  width: 14%;
  justify-content: center;
  margin-left: -1%;
  background-image: url(https://onsitestaging.onsitestoragesystem.com/wp-content/uploads/2022/07/icon-trash-disabled-01.png);
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: 51% 50%;
  transition: all 300ms;
  cursor: pointer;
  border: 1px solid #ccc;
}
.custom-select .btn-clear:hover {
  background-color: #e2e2e2;
  /* background-image: url(https://onsitestaging.onsitestoragesystem.com/wp-content/uploads/2022/07/icon-trash-white.png) !important; */
}

.custom-select .filter-title {
  width: 100%;
  position: relative;
  font-family: "Poppins", sans-serif;
}

/* Style for dropdown scrollbar */

.custom-select .filter-list::-webkit-scrollbar {
  width: 5px;
}

/* Track */
.custom-select .filter-list::-webkit-scrollbar-track {
  border-radius: 10px;
}

/* Handle */
.custom-select .filter-list::-webkit-scrollbar-thumb {
  background: #6c6c6c;
}

/* Handle on hover */
.custom-select .filter-list::-webkit-scrollbar-thumb:hover {
  background: #6c6c6c;
}

/* Added space to Product sorter to align with the product catalog */
#productSorter {
  margin-top: 58px;
}
/* Style for the filter labels */
.filter-sort_label {
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.filter-sort_label img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-right: 5px;
  margin-top: 2px;
}
.filter-sort_label span {
  font-size: 18px;
  font-weight: 600;
}

/* Style for filter and sort buttons */

.filter-sort_button_container .filter-sort_button {
  width: 100%;
  text-align: center;
  padding: 5px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 11.2px 16px;
}

.filter-sort_button_container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

/* Style for the filter and Sort divider */
.filter-sort_divider {
  display: block;
  margin: 20px 0;
  height: 1px;
  background-color: #ccc;
}

/* Styles for product sorter select */
.custom-select.select-sort .filter-list {
  width: 100%;
  max-width: 490px;
  left: auto !important;
}

.custom-select.select-sort {
  display: flex;
  justify-content: flex-end;
  max-width: 420px;
}
.custom-select.select-sort .filter-title {
  width: 100%;
}

.filter-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #000 !important;
  font-weight: 600;
}

/*style the arrow inside the select element:*/
.filter-title:after {
  position: absolute;
  content: "+";
  top: 13px;
  right: 20px;
  width: 0;
  height: 0;
}

/*point the arrow upwards when the select box is open (active):*/
.filter-title.open:after {
  content: "-";
}

/*style the items (options), including the selected item:*/
.filter-list > div,
.filter-title {
  color: firebrick;
  padding: 12px 30px 12px 10px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  position: relative;
}
img.onsite-btn-info {
  height: 14px;
  margin-bottom: -2px;
  margin-left: 5px;
  width: 14px;
}
/*style items (options):*/
.filter-list {
  position: relative;
  background-color: #fff;
  color: firebrick !important;
  top: 100%;
  left: 0;
  right: 0;
  overflow: visible;
  padding: 10px;
  padding-left: 20px;
  -webkit-tap-highlight-color: transparent;
}

/*hide the items when the select box is closed:*/
.select-hide {
  display: none;
}
.filter-list div {
  transition: all 300ms;
}

/* .filter-list div:not(.same-as-selected):hover {
  background-color: rgba(195, 32, 39, 0.1);
} */

.same-as-selected {
  background-color: firebrick;
  color: white !important;
}

.onsite-filter-container-wrapper {
  display: flex;
  justify-content: center;
}

/* For onsite tags in Loop Container Archive template */
.onsite_tag .badge_container {
  position: absolute;
  top: 23px;
  right: -60px;
  width: 100%;
  background-color: #c60c29;
  color: white;
  text-align: center;
  padding: 5px;
  transform: rotate(45deg);
  z-index: 2;
}
.product-image-container {
  overflow: hidden;
}
.single-sorter {
  display: flex;
  justify-content: right;
  padding-right: 10px;
}
.filter-sort-selected-label .dynamic-location-text {
  text-transform: uppercase;
}
.splash-screen.active {
  display: flex;
}

/* Tablet responsive */
@media (max-width: 768px) {
  /* Sort field */
  form#onsite-single-sort {
    flex-direction: column;
    padding-right: 0px !important;
    margin-bottom: 10px;
  }
  form#onsite-single-sort .sortOptions {
    width: 100% !important;
    margin-top: 9px;
  }
  /* Style of the heading with the selected filter */
  .filter-sort-selected-label h2 {
    text-align: center;
    font-size: 24px !important;
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .filter-sort-selected-label h2 {
    font-size: 32px !important;
  }
  .filter-sort-selected-label .dynamic-location-text {
    font-size: 24px !important;
  }
  .filter-sort-selected-label .hyphen {
    display: none;
  }
  .onsite-filter-container-wrapper.active .filter-container {
    max-height: 100% !important;
    overflow: visible;
  }
  .onsite-filter-container-wrapper .filter-sort_label {
    padding: 5px;
    margin-right: 0;
    position: relative;
  }
  .onsite-filter-container-wrapper.active .filter-sort_label::after {
    border-color: transparent transparent firebrick transparent;
    top: calc(50% - 10px);
  }
}

/* .selected .location-option {
  display: none;
} */
.selected .location-option.active {
  display: flex !important;
}
.location-option {
  padding-left: 27px;
  min-height: 20px;
  display: flex;
  font-size: 14px;
  position: relative;
  cursor: pointer;
  line-height: 1.7em;
}
.location-option:not(:last-child) {
  margin-bottom: 1em;
}

/* Styling for custom checkbox */

/* Hide the browser's default checkbox */
.location-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkmark.loading {
  background: url("./images/filter-spinner.gif");
  background-size: contain;
  background-repeat: no-repeat;
  background-color: transparent !important;
}

/* Create a custom checkbox */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  border-radius: 5px;
  background-color: #eee;
  transition: 300ms all;
  cursor: pointer;
}

/* On mouse-over, add a grey background color */
.location-option:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.location-option input:checked ~ .checkmark {
  background-color: #05903f;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the checkmark when checked */
.location-option input:checked ~ .checkmark:after {
  display: block;
}

/* Style the checkmark/indicator */
.location-option .checkmark:after {
  left: 8px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

/* location-option label to checkbox disabled */


.location-option.disabled .checkmark,
.location-option.disabled:hover .checkmark,
.location-option.disabled input:checked ~ .checkmark,
.location-option.disabled:hover input:checked ~ .checkmark {
  background-color: #eee;
}

/* .location-option.disabled:hover .checkmark {
  background-color: #eee;
} */

.location-option.disabled {
  color: #ccc;
  cursor:not-allowed;
}

.filter-list {
  display: none;
}
.filter-list.active {
  display: block;
  margin: 10px 0;
}
.filter-title.open {
  border-bottom: 1px solid #ddd;
}

#location .filter-list .location-option:nth-child(n + 11) {
  display: none;
}
#location .filter-list.show-all .location-option {
  display: flex;
}

/* .location-option.active {
  margin-bottom: 0;
} */
.text-clear-filter {
  display: none;
  opacity: 0.8;
  transition: 300ms all;
  text-align: center;
  margin-top: 10px;
}

.text-clear-filter:hover {
  opacity: 1;
}
.see-more-less {
  display: block;
  text-align: center;
}

span.selection-option-description.active {
  display: block;
}
span.selection-option-description {
  position: absolute;
  display: none;
  transition: all 300ms;
  margin-left: 25px;
  top: 2px;
  width: 500px;
  z-index: 25;
  background: rgba(255, 51, 51, 1);
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  color: white;
  font-size: 12px;
}

/* custom sort styling */
/* The container must be positioned relative: */
.custom-sort-select {
  position: relative;
  font-family: "Poppins";
  width: 300px;
}
@media (max-width: 980px) {
  .custom-sort-select {
    width: 100%;
  }
}
.select-items > div {
  font-family: "poppins";
  font-size: 14px;
  color: #000 !important;
}
.custom-sort-select select {
  display: none; /*hide original SELECT element: */
}

.custom-sort-select .select-selected {
  background-color: DodgerBlue;
}

/* Style the arrow inside the select element: */
.custom-sort-select .select-selected:after {
  position: absolute;
  content: "";
  top: calc(50% - 3px);
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #fff transparent transparent transparent;
}

/* Point the arrow upwards when the select box is open (active): */
.custom-sort-select .select-selected.select-arrow-active:after {
  border-color: transparent transparent #fff transparent;
  top: calc(50% - 9px);
}

/* style the items (options), including the selected item: */
.custom-sort-select .select-selected {
  border: 2px solid #3e3e3e;
  color: white;
  background-color: #3e3e3e !important;
}
.custom-sort-select .select-items div,
.custom-sort-select .select-selected {
  padding: 8px 16px;
  padding-right: 40px;
  background-color: white;
  font-family: "poppins";
  font-size: 14px;
  cursor: pointer;
  border-radius: 3px;
}

/* Style items (options): */
.custom-sort-select .select-items {
  position: absolute;
  background-color: #fff;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
  box-shadow: 0 5px 5px rgb(100, 100, 100, 0.3);
}

/* Hide the items when the select box is closed: */
.custom-sort-select .select-hide {
  display: none;
}

.custom-sort-select .select-items div:hover,
.custom-sort-select .same-as-selected {
  background-color: rgba(5, 144, 63, 0.2);
}

@media (max-width: 980px) {
  .mobile-filter-trigger {
    display: flex;
    z-index:-1;
  }
  .filter-container {
    display: none;
  }
  .filter-container.active {
    display: flex;
  }
  .filter-sort_label {
    border: 1px solid #c60c29;
    padding: 8px 16px;
  }
  .filter-sort_label span {
    font-size: 16px;
  }

  .filter-sort_label::after {
    position: absolute;
    content: "";
    top: 16px;
    right: 10px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: #c60c29 transparent transparent transparent;
  }

  .filter-sort_label.active::after {
    border-color: transparent transparent #c60c29 transparent;
    top: 10px;
  }
  .filter-sort_label img {
    margin-top: 0px !important;
  }
}
.mobile-filter-trigger {
  width: 34%;
  background: #3e3e3e;
  margin-bottom: 10px;
  border-radius: 3px;
  border: 2px solid #3e3e3e;
  align-items: center;
  justify-content: center;
  position: relative;
  color: white;
  font-size: 14px;
}

.product-container-filter.mobile-filter {
  display: none;
}
.mobile-filter-trigger,
.filter-modal {
  display: none;
}
.product-container-filter.mobile-filter .filter-container {
  display: flex;
}

.filter-modal {
  display: flex;
  position: fixed;
  top: 100vh;
  left: 0;
  width: 100%;
  /* height: calc(100vh - 200px); */
  background: white;
  z-index: 100;
  flex-direction: column;
  transition: top 500ms, opacity 500ms;
  opacity: 0;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 0 10px rgb(0 0 0 / 50%);
  overflow: hidden;
}

.filter-modal .modal-head {
  text-align: center;
  font-family: "poppins", sans-serif;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  color: #000;
  padding: 10px 15px;
  background: #f5f5f5;
}
.filter-modal .modal-body {
  overflow-y: auto;
}
.filter-modal .modal-head .modal-close {
  position: absolute;
  right: 12px;
  line-height: 1;
  top: 12px;
  font-size: 16px;
  font-weight: 400;
  background: #777;
  color: white;
  width: 20px;
  height: 20px;
  padding-top: 2px;
  font-weight: 500;
  border-radius: 20px;
}

.filter-modal.active {
  top: 100px;
  opacity: 1;
}

.product-container-filter.mobile-filter .filter-sort_label {
  display: none;
}

.product-container-filter.mobile-filter .onsite-form,
.product-container-filter.mobile-filter .onsite-filter-container-wrapper {
  width: 100%;
}
.tooltip-container {
  display: block;
  min-width: 20px;
}
.mobile-filter-trigger:after {
  position: absolute;
  content: "";
  top: calc(50% - 3px);
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #fff transparent transparent transparent;
}

@media (max-width: 980px) {
  .onsite-container-selected-fitler {
    padding: 10px;
  }
  .product-column {
    display: flex;
    flex-wrap: wrap;
  }
  .filter-modal .filter-container {
    margin-top: 0px;
  }
  .filter-modal .product-container-filter {
    padding: 0px;
  }
  .product-column .single-sorter.onsite-form {
    padding-right: 0px;
    margin-right: 1%;
    width: 65%;
    padding: 0;
  }
  .mobile-filter-trigger {
    text-align: left;
    display: flex;
    justify-content: flex-start;
    padding: 8px;
  }
  .mobile-filter-trigger img {
    height: 39px;
    width: 39px;
    object-fit: contain;
  }
}

@media (max-width: 980px) {
  .mobile-filter-trigger {
    display: flex;
  }
  .product-container-filter.desktop-filter {
    display: none;
  }
  .product-container-filter.mobile-filter {
    display: flex;
  }
}

.onsite-container-selected-filter {
  display: block;
}
.onsite-selected-filter {
  width: fit-content;
  border: 2px solid #05903f;
  border-radius: 5px;
  padding: 5px;
  position: relative;
  font-size: 9pt;
  font-weight: 600;
  margin: 2px;
  margin-top: 10px;
  display: inline-block;
  background: #05903f;
  color: #fff;
  padding-right: 30px;
}
.select-filter {
  border-top: 1px solid #ddd;
}

.onsite-selected-filter-close {
  cursor: pointer;
  border-radius: 50%;
  font-size: 12px;
  line-height: 1em;
  color: #fff;
  font-weight: 600;
  position: absolute;
  right: 6px;
  top: calc(50% - 8.5px);
  background: #045e2a;
  padding: 2px 5px 3px;
}
.onsite-selected-filter-name {
  text-transform: capitalize;
  font-weight: 400;
  display: block;
  font-size: 80%;
}

.onsite-selected-filter-value {
  font-weight: 600;
}

.po-parent {
  padding: 0 !important;
  padding-bottom: 1em !important;
  color: #000 !important;
  font-weight: 600;
  position: relative;
}
.location-option.rto:not(.active),
.location-option.rental:not(.active) {
  display: none;
}
.location-option.rto.show,
.location-option.rental.show {
  display: block;
}
.po-parent::after {
  content: "";
  border: solid black;
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  right: 0px;
  position: absolute;
  top: calc(50% - 11.31px);
  transition: all 300ms;
}
.po-parent.active::after {
  transform: rotate(-135deg);
  -webkit-transform: rotate(-135deg);
}
.filter-container button.btn-apply-filter {
  background: #045e2a !important;
  border-color: #045e2a !important;
}
.filter-container button.btn-apply-filter:hover {
  color: #fff !important;
  background: #034920 !important;
}


.filter-modal.active{
  z-index:9999;
}
