.dropdown {
    position: relative;
}

/* Dropdown button styling */
.dropdown-btn-custom {
  background: transparent;
  border: 1px solid var(--black);
  color: var(--black);
  padding: 8px 18px;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.dropdown-btn-custom.white {
    border: 1px solid var(--white);
    color: var(--white);
}
.dropdown-btn-custom span {
  font-size: 14px;
  color: var(--black);
}
.dropdown-btn-custom.white span {
  color: var(--white);
}
.dropdown-btn-custom .dropdown-icon {
  width: 18px;
  height: 18px;
}

/* Dropdown menu */
.dropdown-menu-custom {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  width: max-content;
  min-width: 250px;
  background-color: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 2;
  overflow-y: auto;
  padding: 24px 24px 14px;
}
.dropdown-menu-custom .list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 15px;
}

/* Show the dropdown menu when open */
.dropdown.open .dropdown-menu-custom {
  display: block;
}

/* Clear all button */
.clear-all {
  display: flex;
  align-items: center;
  grid-column-gap: .1rem;
  grid-row-gap: .1rem;
  white-space: nowrap;
  color: var(--black);
  text-decoration: none;
  transition: all .28s;
}

/* Selected text placeholder */
.selected-items {
  font-size: 14px;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Custom checkbox filter */
.checkbox-filter {
  display: flex;
  align-items: center;
  grid-column-gap: 8px;
  grid-row-gap: 8px;
  white-space: nowrap;
  cursor: pointer;
  font-size: 14px;
  color: var(--black);
}

/* Custom checkbox visual box */
.checkbox-custom {
  border: 1px solid var(--black);
  width: 18px;
  height: 18px;
  margin-top: 0;
  border-radius: 5px;
  position: relative;
  background-color: transparent;
}
.checkbox-custom:after {
  content: "";
  position: absolute;
  inset: 14% 33%;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Hidden native checkbox */
.checkbox-custom-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkbox-custom-input:checked ~ .checkbox-custom {
  background-color: var(--black);
}

/* Label text */
.w-form-label {
  cursor: pointer;
}
