/* Styles for New autosuggestions */
.autocomplete-suggestions {
    max-height: 300px;
    max-height: none;
}

.auto-suggestion-header {
}

.auto-suggestion-header .as-header-left, .auto-suggestion-header .as-header-right {
    padding: 8px 5px 0px 5px;
    float: left;
    font-size: 17px;
    font-style: italic;
}

.autosuggest {
    position: absolute;
    top: 76px;
    left: 43%;
    width: 644px;
    height: auto;
    background: white;
    box-shadow: 3px 3px 5px #D7D7D7;
    border-radius: 10px;
    border-top-left-radius: 0;
    background: #F9F9F9;
    /*z-index: 501;*/
/*    z-index: 515;*/
    z-index: 541; /*Added 11/5/18*/
    /*border-left: 1px solid #ccc;
    border-top: 1px solid #ccc;*/
}

.as_cat, .as-header-left {
    background: #F9F9F9;
    width: 215px;
}

.as-header-left {
    font-size: 11px !important;
    color: grey;
}

.as_cat:empty {
    display: none;
}

.as_prod, .as-header-right {
    float: left;
    width: calc(100% - 215px);
    height: 100%;
}

.as-header-right {
    border-left: 1px solid #DFDFDF;
    background: white;
    display: none;
}

.as_prod.full_width {
    width: 100%;
}

.as_cat, .as_prod {
    padding: 2px 10px;
    height: 100%;
    float: left;
}

.as_prod {
    background: white;
    border-left: 1px solid #DFDFDF;
    margin-left: -1px;
}

.as_cat {
    border-right: 1px solid #DFDFDF;
}

.as_cat_header, .as_prod_header {
    font-size: 17px;
    font-style: italic;
}

.as_prod_name {
    font-size: 13px;
}

.as_cat_name, .as_prod_name {
    padding: 3px 5px;
    cursor: pointer;
}

.as_cat_name:hover, .as_prod_name:hover, .as_cat_name.selected, .as_prod_name.selected {
    /*border: 1px solid #C3C3C3;
    margin: -1px;*/
}

.as_prod_name .as-prod-img {
}

.as_cat_search_active, .as_prod_search_active {
    font-weight: bold;
}

.as-prod-left {
    float: left;
    width: 55px;
}

.as-prod-right {
    float: left;
    width: calc(100% - 63px);
    margin-left: 8px;
}

.prod_title {
    font-size: 16px;
    white-space: normal;
}

.as-prod-price-label {
    display: none;
}

.as-prod-price {
    float: left;
    font-size: 16px;
    color: #030398;
}

.as-prod-min_qty {
    float: left;
    font-size: 13px;
    line-height: 26px;
    color: green;
    min-width: 120px;
}

.as-prod-min_qty-label {
    float: left;
}

.price-min-separator {
    float: left;
    font-size: 16px;
}

/*Height of each autosuggest term*/
.autocomplete-suggestion {
    /*height: 35px;*/
    /*line-height: 50px !important;*/
}
.autocomplete-suggestion a{
    color: inherit;
}

.as_cat .autocomplete-suggestion {
    height: auto;
    line-height: 20px;
    border-bottom: 1px solid #C3C3C3;
    white-space: normal;
    padding-top: 6px;
    padding-bottom: 6px;
    cursor: pointer;
    margin-bottom: 0;
    font-size: 14px;
    text-transform: capitalize;
}

.as_cat .autocomplete-suggestion:nth-child(1) {
    border-top: 1px solid #E2E2E2;
}

.as_prod .autocomplete-suggestion {
    height: auto;
    /*border-bottom: 1px solid #E2E2E2;*/
    padding-bottom: 10px;
    padding-top: 10px;
    display: inline-block;
    width: 100%;
}

.as_prod .autocomplete-suggestion:nth-child(1) {
    /*border-top: 1px solid #E2E2E2;*/
}

.as_show_more_results > a {
    display: block;
    text-align: center;
    background: #FFDE05;
    color: black;
    height: 40px;
    line-height: 40px;
    font-size: 15px;
    font-weight: bold;
}

.ie .as_show_more_results > a {
    font-size: 14px;
}

.cat-item-count {
    font-size: 11px;
    position: relative;
    top: -1px;
}

/* END Styles for New autosuggestions */

/*Brands*/
.as-header-brand {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .as-header-brand {
        display: none;
    }
}

.as-header-brands {
    margin-top: 15px;
    padding-bottom: 5px;
}

.as-header-cat, .as-header-brand {
    font-size: 11px;
}

.as_cat .as_br_name {
    float: left;
    border-bottom: 0;
    border: 1px solid #CACACA;
    margin: 0px 5px 8px 0;
    padding: 1px 8px;
    background: #EFEFEF;
    color: black;
    font-size: 12px;
}

.as_cat .as_br_name:hover {
    background: #E0E0E0;
}

/*Parents*/
.as-cat-parent {
    width: 100%;
    clear: both;
    display: block;
    font-size: 12px;
    margin-top: -3px;
    color: grey;
    margin-left: 10px;
}

@media (max-width: 768px) {
    .as_cat, .as_prod {
        width: 100%;
        background: white;
        border-left: 1px solid #DFDFDF;
    }

    .as_prod {
        padding: 0 8px;
    }

    .as_cat {
        padding-left: 8px;
        padding-right: 8px;
    }

    .as-prod-price, .price-min-separator, .as-prod-min_qty {
        display: none;
    }

    .as-header-left {
        display: none;
    }

    .as_cat .autocomplete-suggestion:nth-child(1) {
        border-top: 0;
    }

    /*    .as_prod .autocomplete-suggestion:nth-child(1) {
            border-top: 0;
        }
    */
    .as_prod_name .as-prod-img {
    }

    .as-prod-left {
        width: 60px;
        margin-right: 5px;
    }
    .as-prod-right {
        width: calc(100% - 73px);
    }

    .autosuggest {
        border-radius: 0;
        max-width: 87% !important;
    }

    /*Change Mobile Font Size*/
    .autocomplete-suggestion {
        font-size: 13px;
    }

    .prod_title {
        font-size: inherit !important;
    }

    .as_show_more_results > a {
        font-size: 12px;
    }

    .as-header-brands {
        display: none;
    }

    .as_cat .as_br_name {
        display: none;
    }
}

/*Updated Autosuggestions styles*/
@media (max-width: 768px) {
    .as_cat {
        max-width: 30%;
        padding: 0 !important;
    }

    .as_prod {
        width: calc(100% - 170px);
        max-width: 70%;
    }

    .autocomplete-suggestions.autosuggest {
        background: white;
        position: fixed;
        left: 1% !important;
        top: 46px !important;
        width: 98%;
        max-width: unset !important;
    }

    .as_prod {
        padding-right: 2px;
        padding-left: 2px;
    }

    .as-header-cat, .as_cat_name {
        margin-left: 2px;
        margin-right: 2px;
    }
}

@media (max-width: 480px) {
    .as_prod .autocomplete-suggestion {
        padding-bottom: 5px;
        padding-top: 5px;
    }

    .autocomplete-suggestions.autosuggest {
        left: 2% !important;
        max-width: 96% !important;
    }

    .as-prod-right {
    }

    .as_cat {
        padding-left: 2px;
        padding-right: 2px;
        max-width: 155px;
        width: initial;
    }

    .as_prod {
    }
}

@media (max-width: 350px) {
    .as_cat, .as_prod {
        width: 100%;
    }

    .as_cat {
        max-width: initial;
    }
}