.autocomplete, .autocomplete_container {
    /*the container must be positioned relative:*/
    width:100%;
    position: relative;
    display: inline-block;
}

.autocomplete-items {
  width:300px;
    position: absolute;
    border: 1px solid #d4d4d4!important;
    box-shadow: 0 10px 33px rgba(0,0,0,.43), 0 0 33px rgba(0,0,0,.2);
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
}

.autocomplete_item > div {
  display: flex;
  flex-wrap: wrap;
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
    transition: all ease-in-out .3s;
}
.autocomplete_item strong {text-transform: capitalize;}

.autocomplete_item > div:hover {
    /*when hovering an item:*/
    background-color: #e9e9e9;
}

.autocomplete_item > div img {max-width:80px;max-height: 80px;height: auto!important;}

.autocomplete-active {
    /*when navigating through the items using the arrow keys:*/
    background-color: DodgerBlue !important;
    color: #ffffff;
}

@media (max-width: 767px) {
  .autocomplete-items {position: fixed; left:15px;top:auto;}
}
