/**
* 2007-2022 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-2022 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/

body.fixed {
    position: fixed !important
}

#search_block_nav {
    padding: 10px 0 10px 10px;
    width: 145px;
    float: right;
    position: relative;
}

#search_query_nav {
    width: 100%;
    border: none;
    cursor: pointer;
    margin: 0;
}

#search_query_nav:after {
    content: "\f002";
    position: absolute;
    right: 0;
    font-family: FontAwesome;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}

#search_query_nav:hover:after,
#search_query_nav:focus:after,
#search_query_nav:active:after {
    -webkit-animation-name: cp-nav-social;
    animation-name: cp-nav-social;
    -webkit-animation-duration: 0.3s;
    animation-duration: 0.3s;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-direction: alternate;
    animation-direction: alternate;
}

#search_block_top {
    position: relative;
    width: auto;
    float: none;
    padding: 0;
    display: inline-block;    
    vertical-align: middle;
}

#search_block_top.show {
    height: 155px !important;
    padding: 40px 15%;
    -moz-transition: all 0.5s;
    -o-transition: all 0.5s;
    -webkit-transition: all 0.5s;
    transition: all 0.5s;
}

#search_block_top .btn.button-search {
    background: #fff;
    border: medium none;
    float: left;
    line-height: 20px;
    padding: 9px 10px;
    border-radius: 0;
    margin: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    transition: none;
    position: absolute;
    right: 0;
}

#search_block_top .btn.button-search .material-icons {
    font-size: 24px;
    line-height: 24px;
    display: block;
}

#search_block_top .btn.button-search:before {
    content: "\E8B6";
    display: none;
    font-family: "Material Icons";
    font-size: 21px;
    width: 100%;
    text-align: center;
}

#search_block_top #search_query_top {
    padding: 8px 14px;
    width: 650px;
    border: none;    
    margin-inline-end: 0px;
    border: 2px solid #e5e5e5;
    border-radius: 5px 0px 0px 5px;
    border-inline-end: 0px;
}

#products .page-not-found #search_block_top #search_query_top,#pagenotfound .page-not-found #search_block_top #search_query_top{
     width: 720px;
}

.searchtoggle {
    display: block;
}

span.search_button {
    display: none;
}

form#searchbox input#search_query_block {
    margin-inline-end: 10px;
    margin-bottom: 10px;
    float: left;
}

form#searchbox .button.button-small {
    float: left;
}

form#searchbox .button.button-small i {
    margin-inline-end: 0;
}

#searchbox {
    position: relative;
    display: flex;
}

#search_block_top .btn.btn-primary {
    padding: 11px 27px;
    border-radius: 0px 5px 5px 0px;
    background-color: #2936cc;
    color: #fff;
}

/* Removed all search result styles - JoliSearch handles results */

#header.header-sticky #search_block_top {
    position: fixed;
    top: 0px;
    margin: 0;
    z-index: 988;
    left: 22.5%;
}

#header.header-sticky #search_block_top #searchbox {
    border: none;
    border-radius: 0;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
    -khtml-border-radius: 0;
}

#header.header-sticky #search_block_top #search_query_top {
    height: 41px;
}

#header.header-sticky #search_block_top .btn.button-search {
    padding: 11px 0;
}

.cpsearch-main {
    float: left;
    text-align: left;        
}

#search_block_top #search_query_top::placeholder {
    color: #808080;
    font-size: 14px;
}

#search_block_top .btn.button-search span {
    display: none;
}

.full-header.fixed #search_block_top {
    padding: 9px 0;
    margin-right: 40px;
}

@media (max-width: 1199px) {
    #search_block_top #search_query_top {
        width: 465px;
    }
    #products .page-not-found #search_block_top #search_query_top,#pagenotfound .page-not-found #search_block_top #search_query_top{
        width: 660px;
    }
}

@media (max-width: 991px) {
    .cpsearch-main,
    #search_block_top{ width: 100%;}
    #searchbox{
        display: flex;
    }
    #search_block_top #search_query_top {
        width: 100%;
        margin: 0;
        padding: 8px 50px 8px 14px;
    }
    #search_block_top .btn.button-search span {
        display: none;
    }
    /* Removed search result styles */
    #products .page-not-found #search_block_top #search_query_top,#pagenotfound .page-not-found #search_block_top #search_query_top{
     width: 100%;
    }
}

@media (max-width: 767px) {
    #search_block_top .btn.btn-primary{position: absolute;right: 0;left: auto;}
}

@media (max-width: 480px) {
    #search_block_top .btn.btn-primary{
        padding: 11px 10px;
    }
    #search_block_top .btn.button-search {
        margin: 0;
        height: 32px;
        padding: 0 7px;
    }
    #search_block_top #search_query_top{padding-inline-end: 50px;}
}
