﻿/*
* 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;
}

input.search-box-text.instant-search-busy {
    background: #fff url('../../../images/ajax-loader-small.gif') no-repeat center right 60px;
}

@media (max-width: 768px) {
  input.search-box-text.instant-search-busy {
background-position-x: right 40px;
  }
}

#small-searchterms-list {
    line-height: normal !important;
}

#small-searchterms_listbox {
  padding-left: 0;
}

.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;
}

/* AUTOCOMPLETE */

.instantSearch {
  width: calc(100% - 40px) !important;
  height: auto !important;
  background: #fff;
}

@media (min-width: 769px) {
  .instantSearch {
    box-shadow: 0px 4px 4px 0px #00000040 !important;
  }
}

@media (max-width: 768px) {
  .instantSearch {
    top: 40px !important;
    width: 100% !important;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
    z-index: 1 !important;
  }
}

.instantSearch .k-list-container {
  width: 100% !important;
  height: auto !important;
  position: static !important;
}


.instantSearch .k-item {
    cursor: pointer;
}
.instantSearch .k-list {
  height: 100%;
  margin-bottom: 0;
}


.instant-search-item {
    overflow: hidden;
    padding: 7px 10px;
}

.instantSearch .k-item.k-state-hover .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: var(--bs-primary);
}
.instant-search-item .detail .price {
    color: var(--bs-primary);
    font-size: 16px;
    font-weight: 700;
}
.instant-search-item .detail .sku {
    margin: 0 0 10px;
    font-size: 14px;
    color: #8c8c8c;
}
#menu-search-form .instantSearch[style] {
  top: 53px !important;
  left: -35px !important;
  z-index: 10002 !important;
}

@media all and (max-width: 1024px) {
  .instantSearch.resize {
        top: 109px !important;
    }
    .instantSearch > div {
        max-height: calc(100vh - 160px);
        overflow: auto;
    }

    .instantSearch.resize > div {
        max-height: calc(100vh - 190px);

    }
  .instant-search-item .detail .title {
    margin: 0;
    font-size: 12px;
  }

}

@media all and (min-width: 1025px) {
  .instantSearch {
    top: 40px !important;
    border-top: unset;
    left: 0 !important;
    width: 100% !important;
  }

    .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;
    }

    .instant-search-item {
        padding: .75rem 1rem;
    }

    .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;
    }
}