.ac_results {
    position: absolute;
    padding: 0;
    width: 100%;
    top: 100%;
    background-color: white;
    z-index: 99999;
    box-sizing: border-box;
    border-radius: .3em;
    margin: .2em 0 0;
    background: rgba(255,255,255,.8);
    background: linear-gradient(to bottom right, white, hsla(0,0%,100%,.8));
    border: 1px solid rgba(0,0,0,.3);
    box-shadow: .05em .2em .6em rgba(0,0,0,.2);
}

.ac_results.ac_hide{
    display: none;
}
.ac_results li {
    margin: 0;
    padding: 5px 10px;
    cursor: pointer;
    display: block;
    font-size: 18px!important;
    line-height: 18px!important;
    color: #000;
}
.ac_results li:hover{
    background: rgba(255, 144, 1, 0.5);
    color: #fff;
}
.ac_results li.selected {
    background: rgba(255, 144, 1, 0.8);
    color: #fff;
}
.ac_results .found{
    background: #CCCCCC;
    padding:0;
}
.ac_results:before {
    content: "";
    position: absolute;
    top: -.43em;
    right: 1em;
    width: 0; height: 0;
    padding: .4em;
    background: white;
    border: inherit;
    border-right: 0;
    border-bottom: 0;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    z-index: -1;
}

@supports (transform: scale(0)) {
    .ac_results {
        transition: .3s ease-in-out;
        transform-origin: right top;
    }

    .ac_results.ac_hide{
        opacity: 0;
        transform: scale(0);
        display: block;
        transition-timing-function: ease;
    }
}
/* tooltip and error handling */
.online-search-form .ac_input.ac_error{
    border: 2px solid red;
}
.online-search-form .tooltip{
    position: absolute;
    text-align: center;
    bottom: 120%;
    right:0;
    background-color: #e51c23;
    color: #fff;
    border-radius: 6px;
    padding: 2px 4px;
}
.online-search-form .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #e51c23 transparent transparent transparent;
}