.custom-html-select,
.is-dropdown {
  position: relative;
}
.custom-html-select:after,
.is-dropdown:after {
  display: block;
  content: " ";
  position: absolute;
  right: 1px;
  top: 1px;
  bottom: 0;
  width: 38px;
  height: 38px;
  background-image: url("/img/ic-svg/ic-arrow-up.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
  transform: rotate(180deg);
  transition: 300ms;
}
.custom-html-select[aria-expanded=true], .custom-html-select.show:after,
.is-dropdown[aria-expanded=true],
.is-dropdown.show:after {
  transform: rotate(0deg);
  transition: 300ms;
}
.custom-html-select select,
.is-dropdown select {
  float: none;
  border: 1px solid #AFB5BB;
  -webkit-appearance: none;
  -moz-appearance: none;
  position: relative;
  color: #333333;
}
.custom-html-select select:focus, .custom-html-select select:focus-within,
.is-dropdown select:focus,
.is-dropdown select:focus-within {
  outline: none;
  box-shadow: none;
  border: 1px solid #333333;
}
.custom-html-select .dropdown-menu,
.is-dropdown .dropdown-menu {
  width: 100%;
  max-width: 100%;
  min-width: 100%;
  min-height: 40px;
  max-height: 400px;
  overflow-y: auto;
  text-align: left;
  border: none;
  background: #FFFFFF;
  box-shadow: 0 0px 4px rgba(0, 0, 0, 0.55);
  border-radius: 2px;
  padding: 0;
  flex-direction: column;
  justify-content: flex-start;
  align-content: flex-start;
  gap: 8px;
}
.custom-html-select .dropdown-menu .dropdown-input-field,
.is-dropdown .dropdown-menu .dropdown-input-field {
  padding: 10px;
}
.custom-html-select .dropdown-menu .dropdown-input-field input:focus,
.custom-html-select .dropdown-menu .dropdown-input-field input:focus-within,
.is-dropdown .dropdown-menu .dropdown-input-field input:focus,
.is-dropdown .dropdown-menu .dropdown-input-field input:focus-within {
  outline: none;
  box-shadow: none;
  border: 1px solid #333333;
}
.custom-html-select .dropdown-menu .option-fields,
.is-dropdown .dropdown-menu .option-fields {
  padding: 0 0 8px 0;
}
.custom-html-select .dropdown-menu .dropdown-item,
.is-dropdown .dropdown-menu .dropdown-item {
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  padding: 0px 20px;
}
.custom-html-select .dropdown-menu .dropdown-item.add-new-item,
.is-dropdown .dropdown-menu .dropdown-item.add-new-item {
  height: auto;
  min-height: 40px;
}
.custom-html-select .dropdown-menu .dropdown-item.category,
.is-dropdown .dropdown-menu .dropdown-item.category {
  cursor: default;
}
.custom-html-select .dropdown-menu .dropdown-item.category:hover,
.is-dropdown .dropdown-menu .dropdown-item.category:hover {
  background-color: #FFFFFF;
}
.custom-html-select .dropdown-menu .dropdown-item:not(.category),
.is-dropdown .dropdown-menu .dropdown-item:not(.category) {
  cursor: pointer;
}
.custom-html-select .dropdown-menu .dropdown-item:not(.category):hover:not(.selected),
.is-dropdown .dropdown-menu .dropdown-item:not(.category):hover:not(.selected) {
  background-color: #FAFBFE;
}
.custom-html-select .dropdown-item,
.is-dropdown .dropdown-item {
  padding: 0;
}

/*
    #A3ABB2 - borer
    #808080 - text placceholde
*/
div.is-dropdown > .dropdown-menu.down {
  bottom: auto;
  margin-top: 0;
}

div.is-dropdown > .dropdown-menu.up {
  top: auto;
  bottom: 100%;
  margin-bottom: 0;
}

div.is-dropdown .dropdown-item {
  display: block;
}

div.is-dropdown a[role=option] {
  cursor: default;
  color: black;
  padding-left: 10px;
}

div.is-dropdown a[role=option].disabled {
  color: #909090;
}

div.is-dropdown a[role=option].category {
  font-weight: bold;
}

div.is-dropdown div.category-separator {
  margin: 5px 0;
  display: block;
  height: 1px;
  width: 100%;
  border: 0;
  border-top: 1px solid #CCCCCC;
}
