#header_search_wrapper{
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

/* Search main container */
#search_block_top {
    position: relative;
}

/* Search form input container */
.search_block_top_form {
    display: none;
    position: absolute;
    z-index: 1;
    top: 50px;
    right: 0;
    padding: 10px;
    background: #f7f7f7;
    -webkit-box-shadow: 0 0 15px 0 rgba(0,0,0,0.45);
    -moz-box-shadow: 0 0 15px 0 rgba(0,0,0,0.45);
    box-shadow: 0 0 15px 0 rgba(0,0,0,0.45);
}

#search_block_top.wpsearchblock-open .search_block_top_form {
    display: block;
}

.search_block_top_form:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    right: 9px;
    top: -9px;
    border-right: 9px solid transparent;
    border-left: 9px solid transparent;
    border-bottom: 9px solid #d7dce2;
    z-index: 0;
}

.search_block_top_form:before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    right: 10px;
    top: -8px;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    border-bottom: 8px solid #f7f7f7;
    z-index: 1;
}

/* Search input */
#search_query_top {
    margin: 0;
    width: 280px;
    padding: 0 10px;
    height: 40px;
    border: 1px solid #cecece;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    border-radius: 2px;
    -webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.05);
    -moz-box-shadow: 0 1px 1px 0 rgba(0,0,0,0.05);
    box-shadow: 0 1px 1px 0 rgba(0,0,0,0.05);
}

/* Search icon */
.search_query_icon {
    display: block;
    height: 40px;
    color: #666666;
    line-height: 40px!important;
    padding: 0 10px;
    margin: 0;
    cursor: pointer;
    font-size: 16px;
}

.wpsearchblock-open .search_query_icon,
.search_query_icon:hover {
    color: #da3b44;
}


/* Header Specific */
/* Make search box visible all the time for header design 2*/
.header-v2 #header_search_wrapper {
    margin-right: 20px;
}

.header-v2 .search_block_top_form {
    display: block;
    position: relative;
    top: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    background: none;
    padding: 0;
}

.header-v2 .search_block_top_form:after,
.header-v2 .search_block_top_form:before {
    display: none;
    position: static;
    border: none;
}

.header-v2 #search_query_top {
}

.header-v2 .search_query_icon {
    position: absolute;
    cursor: auto;
    right: 0;
    z-index: 2;
}

.header-v2 .ac_results {
    margin-right: 0;
}

/*Search expanded*/
.ac_results {
    z-index: 4444;
    overflow: hidden;
    background-color: #f7f7f7;
    margin-right: -10px;
    padding: 10px;
    -webkit-box-shadow: 0 13px 13px 0 rgba(0,0,0,0.45);
    -moz-box-shadow: 0 13px 13px 0 rgba(0,0,0,0.45);
    box-shadow: 0 13px 13px 0 rgba(0,0,0,0.45);
}

.ac_results ul {
    width: 100%;
    background: #ffffff;
    border: 1px solid #d7dce2;
    list-style-position: outside;
}

.ac_results li {
    display: block;
    overflow: hidden;
    margin: 0;
    padding: 7px;
    border-bottom: 1px solid #eaeaea;
    line-height: 16px;
    cursor: pointer;
}

.ac_results li:last-of-type {
    border-bottom: none;
}

.ac_results li img {
    float: left;
    width: auto;
    height: 30px;
}

.ac_product_name {
    display: block;
    float: left;
    padding-left: 10px;
    line-height: 30px;
}

.ac_product_name strong {
    color: #da3b44;
}

.ac_over {
    background: #da3b44 !important;
    color: #fafafa !important;
}

.ac_over .ac_product_name strong {
    color: #fafafa !important;
}

.ac_odd {

}

.ac_more_link {
    display: block;
    text-align: center;
    line-height: 30px;
}


/* Search expanded mobile */
.ac_results.mobile {
    z-index: 99999;
    overflow: hidden;
    margin: 0;
    padding: 0;
    background-color: white;
    -webkit-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.095), 0 1.5px 1.5px 0 rgba(0, 0, 0, 0.2), 0 2px 1.5px 0 rgba(0, 0, 0, 0.1), 0px 3px 10px 0 rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.095), 0 1.5px 1.5px 0 rgba(0, 0, 0, 0.2), 0 2px 1.5px 0 rgba(0, 0, 0, 0.1), 0px 3px 10px 0 rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.095), 0 1.5px 1.5px 0 rgba(0, 0, 0, 0.2), 0 2px 1.5px 0 rgba(0, 0, 0, 0.1), 0px 3px 10px 0 rgba(0, 0, 0, 0.1);
}

.ac_results.mobile ul {
    width: 100%;
    border: none;
    list-style-position: outside;
}

.ac_results.mobile li {
    display: block;
    overflow: hidden;
    margin: 0;
    padding: 7px;
    border-bottom: 1px solid #eaeaea;
    line-height: 16px;
    cursor: pointer;
}

.ac_results.mobile li:last-of-type {
    border-bottom: none;
}

.ac_results.mobile li img {
    float: left;
    width: auto;
    height: 30px;
}

.ac_results.mobile .ac_product_name {
    display: block;
    float: left;
    padding-left: 10px;
    line-height: 30px;
    white-space: nowrap;
}

.ac_results.mobile .ac_product_name strong {
    color: #da3b44;
}

.ac_results.mobile .ac_over {
    background: #da3b44 !important;
    color: #fafafa !important;
}

.ac_results.mobile .ac_over .ac_product_name strong {
    color: #fafafa !important;
}

.ac_results.mobile .ac_odd {
    background: #ffffff;
}

.ac_results.mobile .ac_more_link {
    display: block;
    text-align: center;
    line-height: 30px;
}