/** custom autocomplete for smile/elasticsuite **/

.header .block-search .block-content form .field.search label {
  display:none;
}

.header .block-search .block-content form.minisearch .actions {
    right: 0;
}

.search-autocomplete {
	background: #fff;
	color: #333;
	border-radius: 5px;
	box-shadow: 0 3px 3px #0005;
}

.search-autocomplete a {
  color:#333;
}

#search_autocomplete {
  display: block !important;
  left: -999em;
  width: 50vw;
  transition:left 0s 0.3s, opacity 0.3s 0s;
  opacity:0;
}

/*#search_desktop:hover + #search_autocomplete.has-content, #search_autocomplete.has-content:hover, #search_desktop:focus + #search_autocomplete.has-content {
  left:0px;
  transition:left 0s 0s, opacity 0.3s 0s;
  opacity:1;
} */

#search_desktop:focus + #search_autocomplete.has-content,
#search_autocomplete.has-content:hover {
	left: 0;
	opacity: 1;
  transition:left 0s 0s, opacity 0.3s 0s;
}

#search_autocomplete .wrap {
    max-height: 60vh;
    overflow-y: hidden;
    border: 1px solid #ccc;
    overflow-x: hidden;
}

#search_autocomplete_mobile {
    left: -999em;
    width: 100vw;
    transition:left 0s 0.3s, opacity 0.3s 0s;
    opacity:0;
}
#search_mobile:focus + #search_autocomplete_mobile.has-content, #search_desktop:hover + #search_autocomplete_mobile.has-content, #search_autocomplete_mobile.has-content:hover {
	left: 50%;
	transition: left 0s 0s , opacity 0.3s 0s;
	opacity: 1;
	margin-left: -50vw;
}
#search_autocomplete_mobile .wrap {
    max-height: 60vh;
    overflow-y: auto;
    border: 1px solid #ccc;
    overflow-x: hidden;
}

#search_autocomplete_mobile .column_sidebar {
	max-width: 100%;
	flex: 100%;
  order:2;
}

.smile-elasticsuite-autocomplete-result {
	max-height: 70vh;
	overflow: auto;
}

.search-autocomplete {
  background:#fff;
}

.autocomplete-list-title {
	font-weight: bold;
	background: #eee;
	padding: 0 10px;
  color:#575757;
}

.list_term .option {
	display: inline-block;
	padding-right: 1em;
	cursor: pointer;
	white-space: nowrap;
}

.autocomplete-list .product_result {
	overflow: hidden;
	padding:5px 0px 15px 0px;
	margin-bottom: 15px;
	border-bottom: 1px solid #eee;
}
.autocomplete-list .product-name, .autocomplete-list .sku, #search_autocomplete .autocomplete-list a {
  color:#006e7f;
  text-decoration:none;
}

.autocomplete-list .sku {
  font-size:0.8em;
}

.autocomplete-list .amount {
	font-size: 0.6em;
	vertical-align: middle;
	color: #0004;
}

.smile-elasticsuite-autocomplete-result .sidebar {
	border-right: 1px solid #ccc;
}

.smile-elasticsuite-autocomplete-result .product-attribute-label {
	text-transform: uppercase;
	vertical-align: super;
	font-size: 10px;
	color: #777;
  display:none;
}

.smile-elasticsuite-autocomplete-result .category-mini-crumb {
	font-style: italic;
	display: block;
	margin-bottom: 2px;
	font-size: 10px;
	color: #929292;
}

.list_category .qs-option-name {
  cursor:pointer;
}


.column_suggest {
    font-size: 0.9em;
    border-bottom: 1px solid #eee;
    background: #3e6756;
    color: #fff;
}

.column_suggest .title {
    display: inline-block;
    padding: 5px;
    font-size: 0.7em;
    font-style: italic;
}

.column_suggest .term {
    display: inline-block;
    padding: 5px;
    cursor: pointer;
}
.column_suggest .term:hover {
  text-decoration:underline;
}

.column_suggest .term .number {
    opacity:0.9;
    font-size: 0.9em;
    padding-left: 0.4em;
    display:none;
}
.column_suggest .term .number:after {
    content: ")";
}
.column_suggest .term .number:before {
    content: "(";
}

.column_result .content, .column_sidebar .content {
    max-height: calc(60vh - 6em);
    overflow-y: auto;
}
.column_sidebar .title, .column_result .title {
    font-weight: bold;
    background: #eee;
    justify-content: space-between;
}

.column_result .title span.view_all {
    align-self: center;
    margin: 0;
    font-weight: 400;
    font-size: 0.9em;
    cursor:pointer;
}

.column_sidebar {
    background: #fefefe;
    border-right: 1px solid #ccc;
}

.column_sidebar .category {
  padding:5px 0;
}

.column_result .item .item_title {
    font-size: 1em;
    line-height: 1.4em;
}
.column_result .item {
    text-align: center;
}

.column_result .item .item_price .price-box .price {
    font-size: 1.3em;
    line-height: 1.4em;
}
.column_result .item .item_price .price-box .old-price {
    float: none;
    display: inline-block;
    vertical-align: middle;
    font-size: 0.8em;
    font-weight: 400;
}

.column_result .item img {
}

.minisearch .field.search .control {
  background-color: var(--dt-accent-color);
  transition:all 0.2s;
  background-position: center;
  background-size: 40px auto;
  background-repeat: no-repeat;
}

.searching .field.search .control, .minisearch.processing .field.search .control {
	background-image: url(../images/loader.svg);
  opacity:0.8;
	border-radius: 5px;
}

input#search_desktop {
  background: transparent;
  color:#fff;
  border-radius:5px;
  border-color:#fff2;
}



.searching .search-autocomplete {
  opacity:0.8;
}

.smile-elasticsuite-autocomplete-result .product_result .labels {
  position:relative;
}

.smile-elasticsuite-autocomplete-result .product_result .product-labels {
    top:0;
}

.smile-elasticsuite-autocomplete-result .product_result .labels .product-label {
	right: 1em;
	left: auto;
	line-height: 2em;
	height: 3em;
	width: 3em;
    font-size:1em;
}

.smile-elasticsuite-autocomplete-result .product_result .spinner {
  display:none;
}

.smile-elasticsuite-autocomplete-result .product_result form button.tocart {
  transition:all 0.2s;
}

.smile-elasticsuite-autocomplete-result .product_result form.loading .spinner {
  display:inline-block;
}

.smile-elasticsuite-autocomplete-result .product_result form.loading button.tocart {
  opacity:0.5;
}

/** layered **/


