/*{*
     * PrestaShop module created by Raditoweb, a Team from official PrestaShop community ;-)
     * @author    Raditoweb Team
     * @copyright Copyright (C) August 2022 http://Raditoweb.com
     * @license   This program is not free software and you can't resell and redistribute it
     * @package   RDQiuckSearch
     * @version   1.0.1
     * CONTACT WITH DEVELOPER https://Raditoweb.com
     * support@Raditoweb.com
*}*/

.QuickSearchBlock{
    padding: 0 10px;
    display: inline-block;
}

.QuickSearchBox{
    position: relative;
    z-index: 9;
}

.QuickSearchForm{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;

    border: 1px solid #f2f2f2;
    background: #f2f2f2;
    border-radius: 5px;
    z-index: 7;
    min-height: 40px;
}

.QuickSearchInput {
    position: relative;
    flex-grow: 9;
    border-collapse: separate;
    color: #7a7a7a;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.QuickSearchBtnSearch {
    border: none;
    height: 35px;
    width: 35px;
    align-items: center;
    display: flex;
    justify-content: center;
    font-size: 20px;
    z-index: 9;
}

.QuickSearchInputText {
    position: relative;
    z-index: 2;
    float: left;
    width: 100%;
    margin-bottom: 0;
    border: none;
    padding: .5rem 1rem;
    background: transparent;
}

.QuickSearchResults {
    position: absolute;
    width: 100%;
    background: #fff;
    z-index: 9;
    border-radius: 0 0 5px 5px;
}

.QuickSearchCategory {
    padding: 0.2rem 1rem;
    line-height: normal;
    -webkit-user-select: none;
    -moz-user-select: -moz-none;
    -ms-user-select: none;
    -moz-appearance: none;
    background-color: transparent;
    text-align: right;
    color: #7a7a7a;
    flex-grow: 2;
    border: none;
    border-right: 1px solid #00000040;
    font-size: 15px;
    z-index: 9;
}

.SearchIcon {
    align-items: center;
    display: flex;
    justify-content: center;
    z-index: 9;
    margin-left: 5px;
}

.SearchIconBox {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}


/** Results **/

.QuickSearchResultName {
    min-width: calc(70% - 10px);
    margin-left: 10px;
    font-size: 14px;
}


/** Results **/

.QuickSearchForm:focus-within {
    background: #f2f2f2;
    border-radius: 5px 5px 0 0;
}


.QuickSearchResultProductBox {
    display: flex;
    border: 1px solid #f2f2f2;
    align-items: center;
    border-top: 0px;
    border-bottom: 1px solid #dadada;
    cursor: pointer;
}

.QuickSearchResultProductBox:hover {
    background: #f3f3f3;
}

.QuickSearchResultProductBox_line {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
}

.ResultProductBrand ,.ResultProductCategory {
 font-size: 10px;
}

.autocomplete-suggestions {
    overflow-x: hidden;
    overflow-y: auto;
    border-top: 1px solid #dadada;
}

.display_none, .unvisible {
    display: none;
}


/** Tag CSS **/

.QuickSearchTagLink {
    border-radius: 5px;
    background-color: #e1e1e1;
    padding: 5px 10px;
    margin: 5px 5px;
}

.QuickSearchTags {
    flex-wrap: wrap;
    display: none;
    position: absolute;
    top: 0;
    padding: 0.375rem;
    background: #fff;
    width: 100%;
    padding-top: 40px;
    border-radius: 5px;
    -webkit-box-shadow: 0 3px 12px 0 rgb(0 0 0 / 20%);
    box-shadow: 0 3px 12px 0 rgb(0 0 0 / 20%);
}

/*.QuickSearchTags:before {*/
/*    content: "";*/
/*    width: 90%;*/
/*    border-top: 1px solid #b7b7b7;*/
/*    position: absolute;*/
/*    top: 35px;*/
/*    margin: auto;*/
/*    right: 0;*/
/*    left: 0;*/
/*}*/

.QuickSearchInputClose {
    position: absolute;
    left: 5px;
    background: #f2f2f2;
    color: #0f0f0f;
    width: 20px;
    height: 20px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: normal;
    cursor: pointer;
}

.SearchActive {
    display:flex !important;
}

.QuickSearchTagLink:after {content: "";}

.QuickSearchTagLink i {
    margin-right: 3px;
}


/** Tag CSS **/

/** Side Css **/

#SideSearchQuickSearch{
    right: 0;
    left: 0;
    border-right-width: 0;
    border-left-width: 4px;
}

#SideSearchQuickSearch .QuickSearchBlock {
    padding: 10px;
}
/** Side Css **/


/** Result Search **/


.ResultProductPrice {
    font-size: 15px;
    padding: 0 0.25rem;
    text-align: left;
}


.ResultProductOldPrice {
    color: #757575;
    font-size: 12px;
    position: relative;
    text-decoration: line-through;
    text-align: left;
}

.ResultProductImg {
    padding: 0.25rem;
    max-width: 70px;
}

.autocomplete-suggestions .QuickSearch_more_products {
    display: block;
    text-align: center;
    padding: .75rem .375rem;
    background: #dedede;
    color: #23262b;
    text-underline-position: under;
    border-radius: 0 0 5px 5px;
}

.QuickSearchResults .autocomplete-no-suggestion {
    overflow: hidden;
    display: block;
    text-align: center;
    padding: 1rem 0.375rem;
    background: #f2f2f2;
    color: #23262b;
    border-radius: 0 0 5px 5px;
    border-top: none;
}

/** Responsive **/

/** Desktop **/
@media only screen and (min-width: 768px) {

}

/** Mobile **/
@media only screen and (max-width: 768px) {
    .QuickSearchResultProductBox_line {
        flex-direction: column;
    }

    .QuickSearchBlock{
        padding: 10px;
        max-width: 100%;
        width: 100% !important;
        min-width: 100% !important;
    }

    .QuickSearchResultName {
        width: 100%;
        margin: 0px;
    }

    .QuickSearchForm {
        -webkit-flex-flow: column nowrap;
        -moz-flex-flow: column nowrap;
        flex-flow: column nowrap;
    }

    .QuickSearchInput {
        width: 100%;
    }

    .QuickSearchCategory {
        width: 100%;
        border-right: none;
        padding: 1rem;
    }
    .QuickSearchTags {
        padding-top: 75px;
    }
    .ActiveOnMobile {
        display: none;
    }
}

/** 1.6 **/

@media only screen and (max-width: 991px) {
    #header_top .QuickSearchBlock,
    #search_block_nav.QuickSearchBlock {
        display: none; }

}

@media (min-width:991px) {
    #category_filter {
        position: absolute;
        left: 0;
        height: 100%;
    }
}

.ac_results{
    overflow-x: hidden;
    overflow-y: auto;
    border-color: #dadada;
    border-top: 1px solid #ffffff;
    margin-left: 0px;
}
.ac_results li {
    font-family: inherit;
}

.ac_results .ac_over ,
.ac_results .ac_odd ,
.ac_results .ac_even {
    background: #0000 !important;
    color: #000111;
    padding: 0px !important;
}

.rightbar_wrap .SearchIcon {
    color: #fff;
    margin: 0px;
}
/** 1.6 **/