.autocomplete {
    /*the container must be positioned relative:*/
    position: relative;
    display: inline-block;
}
.autocomplete_item div{
    /* color: black !important; */
}
.autocomplete-items {
    width:auto;
    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;
}

#results-top-container{
    max-height: calc(88vh - 210px);
    overflow: auto;
}


.autocomplete_item strong {text-transform: capitalize;}

.autocomplete_item > div:hover {
    /*when hovering an item:*/
    background-color: #e9e9e9;
}

.autocomplete_item > div img {width:80px;}

.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;*/
        width: calc(100vw - 24px);
    }

    #results-top-container{
        flex-direction: column;
    }
}
