/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 849px) {

  /*************** ADD MOBILE ONLY CSS HERE  ***************/
  .filter-section {
    margin-bottom: 0 !important;
  }

  .filter-section .filter-label {
    margin-bottom: 0 !important;
  }

}

@media only screen and (min-width: 850px) {

  /*************** ADD DESKTOP ONLY CSS HERE  ***************/
  .mobile-filter .custom-dropdown-second-filter,
  .mobile-filter .custom-dropdown {
    display: none;
  }

}


.category-page-title {
  display: none;
}

#custom-orderby:focus {
  box-shadow: none;
}

#custom-orderby {
  box-shadow: none;
}

.filter-widget {
  font-family: sans-serif;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
}

.filter-header {
  background: #000;
  color: #fff;
  padding: 10px 15px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-header .reset-filter {
  color: #fff;
  font-size: 13px;
  text-decoration: none;
}

.filter-block input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}



.filter-block {
  border: 1px solid #e0e0e0;
  margin-bottom: 10px;
  padding: 10px 0;
  border-radius: 4px;
  background: #F7F7F7;
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);

}

.filter-block .filter-title {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  color: #4D4B4B;
  padding: 10px;
  padding-bottom: 0;
  padding-top: 0;

}

.filter-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.filter-block ul li {
  padding: 5px 0;
  margin: 0;
  position: relative;
  border-bottom: 1px solid #C8C8C866;
}

.filter-block ul li:last-child {

  border: 0;
}

/* .filter-block ul li.checked::after {
  content: "✔";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: #000;
} */

.filter-block label {
  cursor: pointer;
  display: block;
  color: #616060;
  font-weight: 400;
}

.filter-block input[type="checkbox"] {
  margin: 0;
}

.filter-scroll {
  max-height: 250px;
  overflow-y: auto;
  /* border: 1px solid #ddd; */
  /* padding: 5px 10px; */
  border-radius: 4px;
  /* background: #fff; */
}

.filter-scroll ul {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

.filter-scroll li {
  margin-bottom: 6px;
}

.filter-scroll::-webkit-scrollbar {
  width: 6px;
}

.filter-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.custom-pagination ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin-top: 30px;
}

.custom-pagination li a {
  padding: 8px 14px;
  background: #f2f2f2;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
}

.custom-pagination li span.current {
  background: #000;
  color: #fff;
  padding: 8px 14px;
  border-radius: 5px;
}

.ajax-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 999;
  display: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ajax-spinner {
  width: 40px;
  height: 40px;
  border: 5px solid #ccc;
  border-top: 5px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* 1. Hide the checkbox */
/* .filter-block input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

.filter-block ul li {
  position: relative;
  padding-right: 20px;
}

.filter-block input[type="checkbox"]:checked ~ span::after {
  content: "✔";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #000;
} */
/* Hide the checkbox */
/* Hide the checkbox */
/* Hide the checkbox */
/* Hide native checkbox */
.filter-block input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

/* Position list item for relative styling */
.filter-block ul li {
  position: relative;
  padding-right: 20px;
  padding-left: 10px;
  padding-bottom: 6px;
  padding-top: 6px;
}

/* Show checkmark when input is checked */
.filter-block input[type="checkbox"]:checked~span::after {
  content: "✔";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #000;
}


/* Style the label of checked checkboxes */
.filter-block input[type="checkbox"]:checked+span {
  color: #000000;
  /* Replace with your desired color */
  font-weight: 600;
}

.custom-dropdown {
  position: relative;
  font-family: sans-serif;
}

.dropdown-toggle {
  width: 100%;
  padding: 6px 15px;
  background-color: #000;
  color: white;
  border: none;
  cursor: pointer;
  text-align: left;
  margin: 0;
  font-size: 12px;
}

.dropdown-toggle-2 {
  width: 100%;
  padding: 6px 15px;
  background-color: transparent;
  color: #000000;
  border: 1px solid #000000;
  cursor: pointer;
  text-align: left;
  margin: 0;
  font-size: 12px;
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: white;
  border: 1px solid #ccc;
  position: absolute;
  width: 100%;
  display: none;
  z-index: 1000;
  background-color: #F7F7F7;
}

ul.dropdown-menu {
  height: 350px;
  overflow: auto;
}

.dropdown-menu li {
  padding: 8px;
  cursor: pointer;
  margin: 0;
  border-bottom: 1px solid #C8C8C866;
  font-size: 12px;
}

.dropdown-menu li:last-child {
  border: 0;
}

.dropdown-menu li:hover {
  background-color: #f0f0f0;
}

.custom-dropdown.open .dropdown-menu {
  display: block;
}

@media screen and (max-width: 849px) {
  .cstm-filter-drpdwn .col {
    padding-bottom: 0px !important;
  }
}

.cstm-filter-drpdwn .col {
  padding: 0px 15px 0px 15px !important;
}

.grouped-menu {
  max-height: 350px;
  overflow-y: auto;
}

.filter-section {
  margin-bottom: 15px;
}

.filter-section .filter-label {
  font-weight: bold;
  margin-bottom: 5px;
  padding: 8px;
}

/* Hide checkboxes visually but keep them accessible */
.cstm-filter-drpdwn input[type="checkbox"] {
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

/* Ensure <li> is positioned for tick mark */
.cstm-filter-drpdwn .dropdown-menu li {
  position: relative;
  padding-right: 20px;
}

/* Add ✔ tick using ::after when checkbox is checked */
.cstm-filter-drpdwn input[type="checkbox"]:checked~span::after {
  content: "✔";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #000;
}


/* .custom-dropdown {
  position: relative;
  width: 200px;
  font-family: sans-serif;
  margin-bottom: 20px;
}

.dropdown-toggle {
  width: 100%;
  padding: 10px;
  background-color: #000;
  color: white;
  border: none;
  cursor: pointer;
  text-align: left;
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: white;
  border: 1px solid #ccc;
  position: absolute;
  width: 100%;
  display: none;
  z-index: 1000;
}

.dropdown-menu li {
  padding: 10px;
  cursor: pointer;
}

.dropdown-menu li:hover {
  background-color: #f0f0f0;
}

.custom-dropdown.open .dropdown-menu {
  display: block;
} */