/* Container for the custom dropdown */
.language-dropdown,
#btn-language-dropdown {
  position: relative;
}

#btn-language-dropdown {
  display: flex;

  align-items: center;
  vertical-align: middle;
  justify-content: center;
  border-radius: var(--borderRadiusLow);
  padding: 4px;
  cursor: pointer;
  font-size: 14px;
  overflow: hidden;
  background-color: white;
}

#btn-language-dropdown img {
  border: 1px solid #666;
  height: 1rem;
  margin-right: 8px;
}

.custom-dropdown-list {
  width: 150px;
  position: absolute;
  top: calc(100% + 17px);
  left: 50%;
  transform: translate(-50%);
  background-color: white;
  max-height: 0px;
  transition: max-height 0.2s ease;
  display: flex;
  gap: 5px;
  flex-direction: column;
  justify-content: left;
  overflow-y: scroll;
  scrollbar-width: thin;
  font-size: 1rem;
  padding: 0 12px;
  border-radius: 0 0 var(--borderRadiusLow) var(--borderRadiusLow);
  z-index: 100;
}

.custom-dropdown-list ul button {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 8px;
}

.custom-dropdown-list button img {
  width: 20px;
  margin-right: 8px;
}

.custom-dropdown-list ul button:hover .search-data-cell {
  color: var(--colorPrimary);
}

.custom-dropdown-list ul button::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 0;
  top: 50%;
  left: 0px;
  background-color: var(--colorPrimary);
  transition: all 0.3s ease-out;
  transform: translateY(-50%);
}

.custom-dropdown-list ul button:hover::after,
.custom-dropdown-list ul button.active::after {
  height: 40%;
}

.language-dropdown.open .custom-dropdown-list {
  max-height: 220px;
  height: 100%;
  height: fit-content;
  border-top-color: white;
}

#language-dropdown-list {
  height: 220px;
  overflow: scroll;
  margin-bottom: 12px;
}
