﻿

.autocomplete {
    /*the container must be positioned relative:*/
    position: relative;
    display: inline-block;
}

    .autocomplete > input {
        box-sizing: border-box;
        margin-top: 5px;
        height: 48px;
        border-radius: 4px;
        border: 1px solid #6D72784D !important;
        text-indent: 16px;
        text-transform: capitalize;
        background-color: #ffffff;
    }

        .autocomplete > input[type=text] {
            background-color: #ffffff !important;
            width: 100%;
        }

        .autocomplete > input[type=submit] {
            background-color: DodgerBlue;
            color: #fff;
        }

        .autocomplete > input:focus {
            outline: #00A24F 2px solid;
        }

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    top: 103%;
    left: 0;
    right: 0;
    max-height: 232px;
    overflow: auto;
    border: solid 1px lightgray;
}

    .autocomplete-items div {
        padding: 10px;
        padding: 6px 16px;
        cursor: pointer;
        background-color: #fff;
        /*border-bottom: 1px solid #d4d4d4;*/
    }

        .autocomplete-items div:hover {
            /*when hovering an item:*/
            background-color: #e9e9e9;
        }

.autocomplete-active {
    /*when navigating through the items using the arrow keys:*/
    background-color: #00A24F !important;
    color: #ffffff;
}
