/* BA Ajax Search of Khánh Đông*/


/* Example of modifying the BA Ajax Search CSS file */

@media (max-width: 767px) {
    /* Make the search container flow in the mobile header */
    #ba_ajax_search {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 auto;
        /* center if needed */
    }
    /* Position dropdown directly below the input */
    #ba_ajax_search .result_search {
        position: absolute;
        top: 100% !important;
        /* place at bottom of parent */
        left: 0 !important;
        width: 100% !important;
        float: none !important;
        margin-top: 0 !important;
    }
    /* Optional: adjust arrow indicator to align right */
    #ba_ajax_search .result_search:before {
        left: auto;
        right: 15px;
    }
}

#ba_ajax_search {
    position: absolute;
    top: 13px;
    right: 65px;
    width: 170px;
    z-index: 10
}

#ba_ajax_search .result_search {
    background: white;
    z-index: 100;
    text-align: left;
    border-radius: 2px;
    display: none;
    width: 400px;
    float: right;
    padding: 0;
    top: 33px;
    background: none;
}

#ba_ajax_search .result_search .item_product img {
    width: 60px;
}

.title_product {
    border-bottom: 1px solid #eeeeee;
    border-top: 1px solid #eeeeee;
    background-color: #f7f7f7;
    padding: 0px 10px 0px;
    text-transform: uppercase;
    font-size: 10px;
    color: #a0a0a0;
    text-align: right;
}

#ba_ajax_result {
    margin-bottom: 0;
    float: left;
    box-shadow: 0 0 5px rgba(0, 0, 0, .25);
    width: 100%;
    height: 400px;
    overflow-y: scroll;
}

#ba_ajax_result li a {
    display: block;
    float: left;
    width: 100%;
    text-transform: capitalize;
}

#ba_ajax_result li a .image_product {
    float: left;
    margin-right: 6px;
}

#ba_ajax_result li a .name_des_price_product {
    float: left;
    width: 80%;
}

.result_search:before {
    font-family: FontAwesome;
    content: "\f0d8";
    height: 13px;
    float: right;
    display: block;
    font-size: 23px;
    margin-right: 15px;
}

#ba_ajax_result li.title_product:first-child {
    border-top: 0;
}

#ba_ajax_result li .name_product {
    float: left;
    width: 100%;
    text-transform: capitalize;
}

#ba_ajax_result li .description_product {
    float: left;
    width: 100%;
}

#ba_ajax_result li .price_product {
    float: left;
    width: 100%;
}

#ba_search {
    padding: 7px 10px 8px 10px;
    height: auto;
    margin-top: 5px
}

.result_search .ba_ajax-loader {
    display: none;
}

#ba_ajax_result li a.ba_next {
    width: 47%;
    float: left;
    text-align: left;
    margin-left: 7px;
}

#ba_ajax_result li a.ba_prev {
    width: 50%;
    float: left;
    text-align: right;
}

#ba_ajax_result ul {
    width: 100%;
    float: left;
    margin: 0;
}

#ba_ajax_result::-webkit-scrollbar {
    width: 7px;
}

#ba_ajax_result::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

#ba_ajax_result::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

#ba_ajax_result li a.ba_prev:hover,
#ba_ajax_result li a.ba_next:hover {
    color: #747474;
    font-weight: 400;
}

#ba_ajax_result li .title_reference {
    font-weight: bold;
}

#ba_ajax_search .key_search .close_ba_ajax_search:after {
    font-family: FontAwesome;
    content: "\f00d";
    color: black;
    float: right;
    display: block;
    font-size: 15px;
    margin-right: 5px;
    position: absolute;
    right: 10px;
    top: 5px;
    padding: 5px 0;
    background-color: transparent;
    cursor: pointer;
}

#ba_ajax_search .key_search .close_ba_ajax_search {
    display: none;
}

#ba_ajax_result li.item_product a .name_des_price_product.nproduct_noimage {
    width: 100%;
}