/**
* 2007-2021 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2021 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

#content_search {
    position: absolute;
    z-index: 98;
    width: 100%;
    left: 0;
    background-color: #FFF;
    padding: 32px;
    margin-top: 4px;
    box-shadow: 0 17px 27px rgb(0 0 0 / 36%);
    visibility: hidden;
    opacity: 0;
}
#content_search.open {
    visibility: visible;
    opacity: 1;
}
#content_search .header_searchbar {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: center;
}
#content_search .header_searchbar .searchbar_items {
    margin-bottom: 0;
}
#content_search .header_searchbar .searchbar_items .link_allresult a {
    color: var(--color_font) !important;
}
#content_search .header_searchbar .searchbar_items .link_allresult a:hover {
    color: var(--color_hover) !important;
}
#content_search .header_searchbar .close {
    opacity: 1;
}
#content_search .result_searchbar #js-product-list {
    width: 100%;
}
#content_search .result_searchbar #js-product-list .products {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: center;
    margin-left: -7px;
    margin-right: -7px;
}
#content_search .result_searchbar #js-product-list .products > div {
    width: calc(20% - 15px);
    margin: 0 7px;
}
#content_search .result_searchbar #js-product-list .pagination {
    display: none;
}
#content_search .allresult_searchbar .btn {
    margin: 0 auto;
    display: table;
}

@media (max-width: 991px) {
    #content_search {
        margin: 0;
        left: 0;
        top: 0;
        padding: 1rem;
        position: fixed;
        overflow-y: auto;
        height: 100%;
        width: 100%;
    }
    #content_search .header_searchbar {
        margin-bottom: 15px;
        margin-top: 50px;
    }
    #content_search .result_searchbar #js-product-list .products {
        margin-left: -5px;
        margin-right: -5px;
    }
    #content_search .result_searchbar #js-product-list .products > div {
        width: calc(33% - 10px);
        margin: 0 5px;
    }
    #search_widget.search-widget form.open_mobile {
        z-index: 99;
        position: fixed;
        top: 0;
        width: calc(100% - 2rem);
        left: 0;
        margin: 0.5rem 1rem;
    }
}
@media (max-width: 767px) {
    #content_search .result_searchbar #js-product-list .products > div {
        width: calc(50% - 10px);
    }
}