﻿/*
* Copyright 2014 Seven Spikes Ltd. All rights reserved. (http://www.nop-templates.com)
* http://www.nop-templates.com/t/licensinginfo
*/

.search-box form {
	position: relative;
}
span.search-box-text {
    position: relative;
    float: left;
    width: calc(100% - 45px);
}
span.search-box-text > input {
    width: 100% !important;
}
input.search-box-text.instant-search-busy {
    /*background: #fff url('../../../images/ajax-loader-small.gif') no-repeat center right 10px;*/
}
#small-searchterms-list {
    line-height: normal !important;
}
.search-box-select {
    position: absolute;
    left: 20px;
    top: 64px;
    width: calc(100% - 40px);
    border-radius: 0 0 3px 3px;
    border-color: #eee;
    padding: 0 25px 0 10px;
    background: #f6f6f6 url('images/select-arrow-dark.svg') no-repeat right 10px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.search-box-select::-ms-expand {
    display: none;
}
.search-box .k-clear-value {
    display: flex;
    align-items: center;
    position: absolute;
    top: 5px;
    bottom: 5px;
    right: 5px;
    z-index: 1;
    background: #fff;
    padding: 5px;
    cursor: pointer;
}
.search-box .k-clear-value.k-hidden {
    display: none;
}
.search-box .k-clear-value .k-icon {
    width: 16px;
    height: 16px;
    opacity: 0.4;
}

/* AUTOCOMPLETE */

.instantSearch {
    width: calc(100% - 40px) !important;
    height: auto !important;
    background: #fff;
    box-shadow: 0 0 15px rgba(0,0,0,.15);
    border-radius: 0 0 3px 3px;
}
.k-child-animation-container {
    width: 100% !important;
    height: auto !important;
}
.instantSearch .k-list-container {
    width: 100% !important;
    position: static !important;
}
.instantSearch .k-list-scroller {
    height: 100% !important;
    overflow-y: auto;
}
.instantSearch .k-list-item {
    cursor: pointer;
}
.instantSearch .k-list-item:first-child {
    padding-top: 7px;
	border: 0;
}
.instantSearch .k-list-item:last-child {
    padding-bottom: 7px;
}
.instant-search-item {
    overflow: hidden;
    padding: 7px 10px;
}
.k-hover .instant-search-item,
.k-focus .instant-search-item {
    background: #f6f6f6;
}
.instant-search-item .img-block {
    float: left;
    width: 60px;
    height: 60px;
    border: 1px solid #eee;
    border-radius: 3px;
    overflow: hidden;
    background-color: #fff;
}
.instant-search-item .img-block img {
	max-width: 100%;
}
.instant-search-item .detail {
    margin-left: 70px;
    text-align: left;
}
.instant-search-item .detail .title {
    margin: 0 0 7px;
    font-size: 15px;
    color: #444;
}
.instant-search-item .detail .price {
    color: #97c300;
    font-size: 16px;
    font-weight: 700;
}
.instant-search-item .detail .sku {
    margin: 0 0 10px;
    font-size: 14px;
    color: #8c8c8c;
}



@media all and (max-width: 1024px) {

    .search-box .k-clear-value {
        display: none;
    }
    .instantSearch.resize {
        top: 109px !important;
    }
    .instantSearch > div {
        max-height: calc(100vh - 160px);
        overflow: auto;
    }
    .instantSearch.resize > div {
        max-height: calc(100vh - 190px);
    }
    .instantSearch .k-no-data {
        padding: 7px 10px;
    }
}

@media all and (min-width: 1025px) {

    .instantSearch {
        width: calc(100% - 47px) !important;
        left: 0 !important;
    }
    span.search-box-text {
        width: calc(100% - 47px);
    }
    .search-box-select {
        top: 0;
        left: 0;
        border-radius: 3px 0 0 3px;
        width: 100px;
        height: 47px;
        background-color: #fff;
        border-right: 0;
    }
    .store-search-box span.search-box-text.narrow {
        width: calc(100% - 147px);
        margin: 0 0 0 100px;
    }
    .header-lower input.search-box-text.narrow {
        border-radius: 0;
    }
}

@media all and (min-width: 1281px) {

    .search-box-select {
        width: 150px;
        padding: 0 35px 0 20px;
        background-position: right 20px center;
    }
    .store-search-box span.search-box-text.narrow {
        width: calc(100% - 197px);
        margin: 0 0 0 150px;
    }

    .instantSearch .k-list-item:first-child {
        padding-top: 15px;
    }
    .instantSearch .k-list-item:last-child {
        padding-bottom: 15px;
    }
    .instant-search-item {
        padding: 7px 20px;
    }
    .instant-search-item .img-block {
        width: 77px;
        height: 77px;
    }
    .instant-search-item .detail {
        margin-left: 90px;
    }
}

@media all and (min-width: 1601px) {

    .search-box-select {
        width: 200px;
    }
    .store-search-box span.search-box-text.narrow {
        width: calc(100% - 247px);
        margin: 0 0 0 200px;
    }
}