/*** Header tpl Algolia autocomple custom css ***/
.info .tooltiptext {
	visibility: hidden;
	width: 174px;
	font-weight: 500;
	background-color: white;
	color: black;
	font-size:12px;
	text-align: center;
	border-radius: 6px;
	padding: 8px;
	position: absolute;
	z-index: 1;
	border: 1px solid rgb(224, 221, 221);
	box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
	font-family: Roboto,sans-serif;
	line-height: 16px;
	 top: 212px;
}
.aa-Panel .info .tooltiptext {
	visibility: hidden;
	width: 174px;
	font-weight: 500;
	background-color: white;
	color: black;
	font-size:12px;
	text-align: center;
	border-radius: 6px;
	padding: 8px;
	position: absolute;
	z-index: 1;
	border: 1px solid rgb(224, 221, 221);
	box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
	font-family: Roboto,sans-serif;
	line-height: 16px;
	
}
.ais-Hits .info .tooltiptext {
	visibility: hidden;
	width: 174px;
	font-weight: 500;
	background-color: white;
	color: black;
	font-size:12px;
	text-align: center;
	border-radius: 6px;
	padding: 8px;
	position: absolute;
	z-index: 1;
	border: 1px solid rgb(224, 221, 221);
	box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
	font-family: Roboto,sans-serif;
	line-height: 16px;
	top: unset;
}
.product-item .info .tooltiptext {
	top: -91px;
	right: 43px;
}
.top-selling-products .info .tooltiptext {
    top: 208px;
    right: 15px;
}
.info:hover .tooltiptext {
  visibility: visible;
}

.ais-Highlight-nonHighlighted{
	font-size: 12px;
}

	#hrefitemnotfound{
		position:relative;
		top:-9px;
	}
	#dispaysuggestionnoresult{
		font-size:14px;
		position: relative;
		left: -11px;
	}
	
.aa-DetachedOverlay,
.aa-Panel{
	z-index: 1000;
}
.aa-PanelSection--left .aa-Item{
  font-size: 14px;
  margin: -2px 0;
}

.aa-PanelSection--right li.aa-Item[aria-selected="true"],.aa-PanelSection--left li.aa-Item[aria-selected="true"] {
	background-color:white;
  }

/*botttom*/
#bottom_autocomplete{
	display: flex;
  justify-content: space-between;
   border-top: 1px solid lightgray;
}
#bottom_autocomplete a{
 margin-top: 17px;
  margin-right: 16px;
  color: #999;
  font-size: 14px;
  text-decoration: underline;
  
}
#results_hits{
  padding: 15px;
  font-size: 14px;
  font-style: normal;
  color: #999;
  font-weight: 400;
  letter-spacing: 1px;
}
/* Left section */

.aa-SourceHeaderTitle{
	padding-left: 7px;
	font-family: "museo-sans";
	font-size: 17px;
	font-weight:200;
	color:rgb(12, 98, 151);
}
.current_price{
	font-size: 21px;
}
#searchbox .ais-SearchBox-input{
	padding: 0 57px;
} 
#autocomplete  .aa-Form{
	border-radius: 35px !important;
	height: 2.5rem;
	z-index: 100;
}
#autocomplete-0-input{
	padding:0 12px;
	font-size: 14px;
}
.ais-SearchBox-form{
	background-color:initial;
}
.aa-Source[data-autocomplete-source-id='products'] li {
	position: relative;
    border-radius: 15px;
	margin: 11px;
	padding-top: 10px;
}
.aa-Source[data-autocomplete-source-id='products'] li:hover {
	box-shadow: 0 4px 16px 0 rgba(0,0,0,.25);
}

.aa-PanelSections {
  column-gap: var(--aa-spacing);
  display: flex;
}

.aa-PanelSection {
  display: flex;
  flex-direction: column;
}

.aa-PanelSection--left {
  width: 44%;
  height: 400px;
  overflow-y: scroll;
  padding-right: 5px;
  scrollbar-width: thin;
}

/* Right section */
.aa-PanelSection--right {
  width: 54%;
  overflow-y: scroll;
  padding-right: 5px;
  scrollbar-width: thin;
}
.aa-Panel--scrollable{
  margin: 0;
  padding: 0;
  max-height: 650px;
  max-height: var(--aa-panel-max-height);
  overflow-x: hidden;
  overflow-y: auto;
}

.aa-ItemContentTitleWrapper .badge{
	position:relative;
	top:2px;
	width: 93px;
}
.aa-ItemContentTitleWrapper .badge.sale{
	height:24px;
} 
.aa-ItemContentTitleWrapper .badge2{
	position: absolute;
  	left: auto;
   right:0;
  	top: 11px;
}

.add-btn-hp, .add-btn-hp-lease, .notify-btn-hp{
	background: #fff;
  color: #333;
  box-shadow: 0 4px 16px 0 rgba(0,0,0,.15);
  border-radius: 15px;
  padding: 2px 8px;
  font-size: 13px;
  height: 40px;
  width: 89px;
  text-align: center;
  line-height: 35px;
  position: absolute;
  right: 12px;
  bottom: 13px;
}
.add-btn-hp:hover, .add-btn-hp-lease:hover{
 box-shadow: 0 6px 8px -4px #ccc;
  transform: scale(1.02) translate(0,-2px);
}

.aa-ItemPicture {
  width:83px;
  height: 100%;
  border-radius: 3px;
  overflow: hidden;
}

.aa-ItemPicture img {
  object-fit: cover;
  width: 100%;
  height: auto;
  opacity: 1;
  transition: opacity 0.2s ease-out;
}

.aa-ItemPicture--loaded img {
  opacity: 1;
}

/* --- Title */
.aa-Source[data-autocomplete-source-id='products'] {
  height: calc(var(--aa-spacing) * 2.5);
}

.aa-Source[data-autocomplete-source-id='products'] .aa-ItemContentTitle {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
  font-size: 13px;
  font-weight: lighter;
  max-width: 90%;
  margin-top: 4px;
}
.aa-ItemContentTitle{
	white-space: initial;
	&:hover{
	text-decoration: underline;
  }
}
#fieldresult:hover{
	text-decoration: underline;
}

/* --- Price */

.aa-ItemContent .old_price{
  font-size: 13px;
  font-weight: lighter;
  padding-left: 6px;
  text-decoration: none;
  position: relative;
}
.aa-ItemContent .old_price::before{
  content: '';
  width: 100%;
  position: absolute;
  right: -5px;
  top: 50%;
  border-bottom: 1px solid #807777;
}
.aa-Source[data-autocomplete-source-id='products'] .aa-ItemContentPrice {
  display: flex;
  column-gap: var(--aa-spacing-half);
  margin-top: 7px;
  justify-content: space-between;
  margin-bottom: 13px;
}

.aa-Source[data-autocomplete-source-id='products'] .aa-ItemContentPriceCurrent {
  font-weight: bold;
  margin-top: 12px;
  font-size: 24px;
}

.aa-Source[data-autocomplete-source-id='products'] .aa-ItemContentPriceCurrent .map_price {
    font-size: 0.9em;
    text-decoration: line-through;
	font-weight: lighter;
}

.aa-Source[data-autocomplete-source-id='products'] .aa-ItemContentPriceDiscounted {
  font-size: 0.9em;
  text-decoration: line-through;
  color: rgb(var(--aa-muted-color-rgb));
}

.aa-Source[data-autocomplete-source-id='products']
  .aa-ItemContentRatingReviews {
  font-size: 0.7em;
  color: #908eae;
} 
.aa-ItemIcon.aa-ItemIcon--noBorder svg {
  display: none;
}
.aa-PanelSection--left .aa-ItemContent{
	position: relative;
	left: -23px;
}
.aa-SourceNoResults {
		padding-top: 15px !important;
		padding-left: 15px! important;
		padding-bottom: 0 !important;
}
.aa-PanelSection--left{
		width: 44%;
	}
	.aa-PanelSection--right{
		display:initial;
	}
	.add-btn-hp,.add-btn-hp-lease,.notify-btn-hp{
      position: absolute !important;
  }
  .right_product .aa-ItemContentPrice .add-btn-hp, .right_product .aa-ItemContentPrice .add-btn-hp-lease, .right_product .aa-ItemContentPrice .notify-btn-hp {
	  display: block !important;
  }
	.addplus{
      position: absolute !important;
    }
	.aa-ItemContentTitleWrapper .badge2{
		position: static !important;
		margin-top: 0;
	}  
   .aa-ItemContentTitleWrapper .badge + .badge2{
      position: absolute !important;
   }

/* Media queries */
@media screen and (max-width: 1247px) {
	.old_price{
		display: block;
 		text-align: center;
	}
}
@media screen and (max-width: 1167px) {
	.aa-Panel{
	position: fixed;
	left: 50% !important;
	transform: translateX(-50%)!important;
	min-width: 754px !important;
	}

	.old_price{
		display: initial;
	}
  .ais-Hits-item {
    width:31.7%;
    }
    #hits img {
      width:171px;
    }
    .aa-ItemContentPrice{
      display: block !important;
    }
    .addplus{
      position: initial ;
      margin-top: 10px ;
    }
    .add-btn-hp,.add-btn-hp-lease,.notify-btn-hp{
      position: initial;
	  margin-top: 6px;
  }
  .aa-ItemContentTitleWrapper .badge2{
		position: initial;
		margin-top: 5px;
	}      
}
@media screen and (max-width: 807px) {
  .ais-Hits-item {
    width: 31%;
    }
}
@media screen and (max-width: 768px) {
	.old_price{
		display: initial;
	}
	.aa-Panel{
	left: 0 !important;
  	right: 0 !important;
	/* top: 120px !important; */
	transform: initial !important;
	min-width: initial !important;
	}

	#background_nav {
    display: none;
    }
    .notify-ofc-btn, .ofc-btn {
      line-height: 16px;
      font-size: initial;
    }
    #refinementBlock{
      height: initial;
      margin: 7px 0;
      margin-bottom: 5%;
    }
    .ais-Hits-item {
      width: 48%;
    }
      #refinementsDesktop{
        display: none;
    }
    .ais-CurrentRefinements-list {
      flex-wrap: wrap; 
    }
    
}
	
@media screen and (max-width: 680px) {
  .aa-PanelSections {
    row-gap: var(--aa-spacing);
  }
  #autocomplete-0-input{
		padding:0 0px;
	}
	#autocomplete-mobile .aa-Form{
		border-radius: 35px;
	}
}
@media screen and (max-width: 670px) {


}

@media screen and (max-width: 768px) {
  .aa-PanelSections {
    row-gap: var(--aa-spacing);
  }
  #autocomplete-0-input{
		padding:0 0px;
		font-size:16px;
	}
	#autocomplete-mobile .aa-Form{
		border-radius: 35px;
	}
 	.aa-PanelSection--right{
    display: none !important;
  } 
  .aa-PanelSection--left {
    width: 96% !important;
	
  } 
}
body.noscroll{
	height:initial;
	max-height: none;
}
.header .category-drop .inner {
	background-color: #002772 !important;
}



/***  Others Custom CSS ***/

#background_nav [id^="alg_filter_"] {
  display: none !important;
}

.aa-PanelLayout.aa-Panel--scrollable{
   padding: 0;
}

.home-contents .home_top_selling_products_wrap .product-slider .product-slider-products .product-grid-item .product .badge{
   border: 0;
}

.home-contents .home_top_selling_products_wrap .product-slider .product-slider-products .product-grid-item .product .badge.badge2 {
	top:160px;
}

.theme-dropdown-container .theme-mega-menu h4.theme-mega-menu-title:hover {
  color: #0053e2;
}