.custom-autocomplete {
  width: 100%;
  display: grid;
  grid-template-rows: min-content 0fr;
  transition: grid-template-rows 0.3s ease-out;
}

.custom-autocomplete.show {
  grid-template-rows: min-content 1fr;
}

.custom-autocomplete__button-show {
  background-color: transparent;
  padding: 0 12px;
}

.custom-autocomplete.show
  .custom-autocomplete__button-show
  > .custom-autocomplete__icon {
  transform: rotate(180deg);
}

/* .custom-autocomplete__content {
  margin-bottom: 12px;
} */

.custom-autocomplete__label {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .custom-autocomplete__label {
    font-size: 16px;
  }
}

.form-control.custom-autocomplete__input-group {
  padding-left: 20px;
  display: flex;
  justify-content: space-between;
}

.custom-autocomplete__input {
  padding: 0;
  width: 100%;
  background: inherit;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary-color);
}

@media (min-width: 768px) {
  .custom-autocomplete__input {
    font-size: 16px;
  }
}

.custom-autocomplete__options-list {
  max-height: 300px;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  gap: 4px;
}

.custom-autocomplete__options-list::-webkit-scrollbar {
  width: 16px;
}

.custom-autocomplete__options-list::-webkit-scrollbar-track {
  background: var(--bg-primary-color-dark);
  border-radius: 16px;
}

.custom-autocomplete__options-list::-webkit-scrollbar-thumb {
  background: var(--btn-secondary-color);
  border-radius: 16px;
}

.custom-autocomplete__options-list::-webkit-scrollbar-thumb:hover {
  background: var(--btn-secondary-color);
}

.autocomplete-option,
.autocomplete-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
  cursor: pointer;
}

.autocomplete-option {
  padding: 8px;
  justify-content: flex-start;
}

.autocomplete-selected {
  padding: 4px;
  justify-content: space-between;
}

.autocomplete-option:hover {
  background-color: var(--bg-primary-color-dark);
}

.autocomplete-option__image,
.autocomplete-selected__image {
  max-width: 40px;
  max-height: 40px;
  width: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.autocomplete-selected__image {
  max-width: 32px;
  max-height: 32px;
}

.custom-autocomplete__selected-list {
  padding: 8px;
  margin-bottom: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.custom-autocomplete__selected-item {
  width: 100%;
  max-width: calc(50% - 8px);
  border-radius: 16px;
  background-color: var(--bg-primary-color-dark);
  border-color: 1px solid var(--input-primary-color);
}

.autocomplete-selected__content {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.autocomplete-selected__name {
  max-width: 120px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.autocomplete-selected__button-delete {
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: transparent;
}
