﻿/*
* Copyright 2014 Seven Spikes Ltd. All rights reserved. (http://www.nop-templates.com)
* http://www.nop-templates.com/t/licensinginfo
*/

.search-box {
    position: relative;
}

input.search-box-text:focus {
    outline: -webkit-focus-ring-color auto 0;
}
span.search-box-text {
    margin: 0 -1px 0 0;
}

input.search-box-text.narrow {
	width: calc(100% - 115px) !important;
    vertical-align: top;
}
.instant-search-busy {
    background: #fff url('../../../images/ajax-loader-small.gif') no-repeat 98% !important;
}

/* AUTOCOMPLETE */

.instantSearch {
    height: auto !important;
	margin-top: -1px;
    border: 1px solid #999;
    background: #f3f3f3;
    overflow: hidden;
    box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.1);
    padding: 4px !important;
    top: 32px !important;
    /*left: auto !important;*/
    width: 308px !important;
}

.instantSearch.resize {
    width: 308px !important;
}
.instantSearch .k-list-container {
    position: static !important;
    width: auto !important;
}
.instantSearch .k-list {
    height: 100%;
}
.instantSearch .k-item {
    overflow: hidden;
    display: block;
}
.instant-search-item {
	margin-top: 1px;
    overflow: hidden;
    padding: 6px 5px;
    cursor: pointer;
}
.instantSearch .k-item.k-state-hover .instant-search-item, 
.instantSearch .k-item.k-state-focused .instant-search-item{
    background: rgb(238,238,238);
    background: -moz-linear-gradient(top, rgba(238,238,238,1) 0%, rgba(211,211,211,1) 100%);
    background: -webkit-linear-gradient(top, rgba(238,238,238,1) 0%,rgba(211,211,211,1) 100%);
    background: linear-gradient(to bottom, rgba(238,238,238,1) 0%,rgba(211,211,211,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#d3d3d3',GradientType=0 );
}
.instant-search-item .img-block {
	position: relative;
    width: 60px;
    height: 60px;
    float: left;
	/*border: 1px solid #ccc;*/
    overflow: hidden;
	background: #fff;
}
.instant-search-item .img-block img {
	position: absolute;
    right: 0;
    top: 0;
	bottom: 0;
    left: 0;
    max-height: 100%;
    max-width: 100%;
	margin: auto;
}
.instant-search-item .detail {
	min-height: 60px;
	margin-left: 70px;
    line-height: 17px;
    font-size: 12px;
}
.instant-search-item .detail .title {
    text-align: left;
    padding-bottom: 0.25em;
    color: black;
}
.instant-search-item .detail .price {
    color: #666;
    text-align: left;
}

.search-box-select {
	width: 85px;
    height: 32px;
    margin: 0 0 0 -1px;
	border: 1px solid #999;
    padding: 3px;
}

/*=====================================================
    
    TABLETS LANDSCAPE & NETBOOKS

=====================================================*/

@media all and (max-width: 1001px) and (min-width: 769px) {

    .search-box {
        text-align: center;
    }

    input.search-box-text {
        margin: 0 0 0 31px;
    }

	.search-box-select {
		width: 120px;
		height: 32px;
		padding: 6px;
	}
    .instantSearch {
        width: 261px !important;
        left: 32px !important;
    }
    .instantSearch.resize {
        left: 32px !important;
    }
	.instantSearch {
        width: 358px !important;
    }
    .instantSearch .k-list-container {
        max-width: 100% !important;
    }

    input.search-box-text.narrow {
        width: calc(100% - 182px) !important;
    }
	
}


/*=====================================================
    
    TABLETS PORTRAIT & SMARTPHONES LANDSCAPE

=====================================================*/

@media all and (max-width: 768px) and (min-width: 481px) {
    
    .search-box {
        text-align: center;
    }

	input.search-box-text.narrow {
        width: calc(100% - 182px) !important;
        margin: 0 0 0 32px;
    }

	.search-box-select {
		width: 120px;
		padding: 6px;
	}
	.instantSearch {
       width: 300px !important;
       margin-left: 32px !important;

    }
	.instantSearch.resize {
        width: 308px !important;
    }
    .instantSearch .k-list-container {
        max-width: 100% !important;
    }

}


/*=====================================================
    
    SMALLER MOBILE DEVICES

=====================================================*/

@media all and (max-width: 480px) {

    /*input.search-box-text {
        width: 223px !important;
        height: 32px;
    }*/

    input.search-box-text.narrow {
        margin-left: 0;
    }
	.instantSearch {
        width: calc(100% - 64px) !important;
        margin-left: 32px !important;
    }

    .instantSearch.resize {
        width: calc(100% - 32px) !important;
        margin-left: 0 !important;
    }
    .instantSearch .k-list-container {
        width: 100% !important;
    }
    .instant-search-item .img-block {
        display: none;
    }
    .instant-search-item .detail {
		margin-left: 0;
    }

}

@media screen and (-webkit-min-device-pixel-ratio:0) {
    .search-box-select{
        height: 32px;
    }
}