.ui-autocomplete {
    position: absolute;
    z-index: 9999;
    cursor: default;
    padding: 10px;
    max-height: 420px;
    overflow-y:auto;
    margin-top: 2px;
    list-style: none;
    background-color: #ffffff;
    border: 1px solid #ccc
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
            border-radius: 5px;
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
.ui-autocomplete > li {
    color: #888;
    margin: 0px;
    padding: 0;
    line-height: 40px;
}
.ui-state-active {
    color: blue;
}
.ui-helper-hidden-accessible {
    display: none;
}
.ui-state-hover,
.ui-state-active,
.ui-state-focus {
    text-decoration: none;
    color: #262626;
    background-color: #888;
    cursor: pointer;
    border-radius: 5px
}
.ui-menu-item .ui-menu-item-wrapper.ui-state-active {
    background: #f5f5f5 !important; 
}
/* limit elements to 5 */
.ui-widget li:nth-child(n+8) {
   display: none;
}
.ui-autocomplete.ui-widget-content { 
    z-index: 9999;
}


  
