/* 
 * Styles for the Gravity Forms School Autocomplete 
 */

/* Hide the UAI field container completely */
.gfield_hide_uai {
    display: none !important;
}

/* Ensure jQuery UI Autocomplete dropdown looks decent if theme doesn't style it */
.ui-autocomplete {
    position: absolute;
    z-index: 9999;
    cursor: default;
    padding: 0;
    margin-top: 2px;
    list-style: none;
    background-color: #fff;
    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);
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

.ui-autocomplete .ui-menu-item {
    margin: 0;
    padding: 0;
}

.ui-autocomplete .ui-menu-item-wrapper {
    display: block;
    padding: 8px 12px;
    clear: both;
    font-weight: normal;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.ui-autocomplete .ui-menu-item-wrapper.ui-state-active,
.ui-autocomplete .ui-menu-item-wrapper:hover {
    color: #262626;
    text-decoration: none;
    background-color: #f5f5f5;
}
