﻿
div.autocomplete * {
    box-sizing: border-box;
}

div.autocomplete {
    /*the container must be positioned relative:*/
    position: relative;
    display: inline-block;
}

div.autocomplete input {
    border: 1px solid var(--light);
    background-color: #ffffff;
    padding: 7px;
}

    div.autocomplete input[type=text] {
        background-color: #ffffff;
        width: 100%;
    }

    div.autocomplete .autocomplete-items {
        position: absolute;
        border: 1px solid var(--light);
        /*border-bottom: none;
    border-top: none;*/
        z-index: 99;
        /*position the autocomplete items to be the same width as the container:*/
        top: 100%;
        left: 0;
        right: 0;
    }

    div.autocomplete .autocomplete-items div {
        padding: 5px;
        cursor: pointer;
        background-color: #fff;
        /*border-bottom: 1px solid #f0f0f0;*/
        line-height:normal;
    }

        div.autocomplete .autocomplete-items div:hover {
            /*when hovering an item:*/
            background-color: #e9e9e9;
        }

div.autocomplete .autocomplete-active {
    /*when navigating through the items using the arrow keys:*/
    background-color: DodgerBlue !important;
    color: #ffffff;
}
