/*
 * csoft_customeripaddress Module for Prestashop 1.6. Support contact : sysadmin@comonsoft.com.
 *
 * NOTICE OF LICENSE
 *
 * This source file is the property of Com'onSoft
 * that is bundled with this package.
 * It is also available through the world-wide-web at this URL:
 * https://boutique.comonsoft.com/
 *
 * @category  backoffice
 * @package   Csoft_CustomerIpAddress
 * @author    Com'onSoft (http://www.comonsoft.com/)
 * @copyright 2017-2018 Com'onSoft
 * @version   1.2.0 (revision $Rev$)
 *
 */

.search-widget {
/*	display:none;*/
}
.searchicon {
	padding:30px 0;
}
#header.smaller .searchicon {
  padding: 16px;
}
.csoft_advance_search_container {
  width: 100%;
  height: 100%;
}

.csoft_advance_search_container .modal-backdrop {
  opacity: 0.5;
}

.csoft_advance_search_container .modal-backdrop {
  z-index: 1000;
}

.search-widget form i, .search-widget {
  z-index: 1001;
}
.search-widget {
	position:relative;
	width:90%;
}
.csoft_advance_search {
  position: absolute;
  opacity: 1;
  background-color: white;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 300px;
  z-index: 1000;
  padding-top: 55px;
  padding-left: 90px;
  padding-right: 90px;
  padding-bottom: 30px;
  overflow-y: scroll;
  height: 100%;
}

.advance-search-viewed-products {
  padding: 0 15px 0 0;
}

.advance-search-viewed-products img, .csoft_advance_search .search_result img {
  max-width:100%;
  height:auto;
}

.advance-search-viewed-products .col-lg-2 {
  padding: 15px;
}

.advance_search_title, .delete-history {
  font-size: 18px;
  line-height: 48px;
  color: rgb(98, 98, 98);
  font-weight: bold;
  margin-bottom: 0;
}

.history {
  display: flex;
}

.delete-history {
  color: #195c79;
  margin-left: 24px;
  cursor: pointer;
}

.search_categories a, .search_history a, .search_keyword a, .keyword_product a {
  font-size: 16px;
  color: black;
  overflow-wrap: anywhere;
}

.search_categories a:hover, .search_history a:hover, .search_keyword a:hover, .keyword_product a:hover, .search_result a:hover {
/*  color: #f8ad19;*/
}

.search_history i {
  font-size: 18px;
  line-height: 19px;
  height: 19px;
  margin-top: 2px;
}

.search_categories a:hover, .search_history a:hover {
  color: #f8ad19;
}

.search_keyword a span, .search_categories a span {
  font-weight: bold;
}

.search_result a {
  color:#000;
}
.search_result .row {
  margin-bottom: 32px;
}
.csoft_advance_search .search_result .col-3 {
  padding-left: 0 !important;
}
.csoft_advance_search .search_result .col-9 {
  padding-left: 0 !important;
}

.search_result .media-body {
  font-weight: bold;
  font-size: 14px;
  color: black;
  line-height: 18px;
  color:#222222;
}

.search_result span {
  color: #232323;
  font-size: 13px;
  line-height: 18px;
}

.close-advance-search {
  position: absolute;
  top: 60px;
  left: 28px;
  width: 34px;
  height: 34px;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
}

.close-advance-search:active, .close-advance-search:focus, .close-advance-search:active:focus {
  border: none;
  outline: none;
}

.close-advance-search span {
  font-size: 34px;
  font-weight: bold;
}

.autocomplete-suggestions {
  text-align: left;
  cursor: default;
  border: 1px solid rgba(160, 160, 160, 0.25);
  border-top: 0;
  background: #fff;
  box-shadow: -1px 1px 3px rgba(0, 0, 0, .1);

  /* core styles should not be changed */
  position: absolute;
  display: none;
  z-index: 9999;
  max-height: 254px;
  overflow: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}
.autocomplete-suggestion {

  text-overflow: ellipsis;
  font-size: small;
  border-top: 1px solid rgba(160, 160, 160, 0.25);
  cursor: pointer;

}
.autocomplete-suggestion img{

  max-width: 50px;
  max-height: 50px;

}
.autocomplete-suggestion:first-child {
  border-top: none;
}
.autocomplete-suggestion.selected {
  background: rgba(160, 160, 160, 0.25);
}

@media(max-width: 767px) {
  .csoft_advance_search {
    padding-top: 84px;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 30px;
  }
	.search-widget {
	  width: 100%;
	}
  .close-advance-search {
    top: 25px;
  }

  .search_result a {
    padding-left: 15px;
    margin-bottom: 0;
  }

  .advance_search_title {
    line-height: 43px;
  }
  
  .csoft_advance_search .search_categories, .csoft_advance_search .search_keyword {
	  display:none;
  }
}

@media(min-width: 768px) and (max-width: 1199px) {
  .close-advance-search {
    top: 25px;
  }
}

.keyword_product .product-link {
  margin-top: 24px;
  font-weight: bold;
}

.keyword_product img {
  max-width: 100px;
  max-height: 100px;
}

.csoft_advance_search li {
  line-height: 36px;
}

.csoft_advance_search li a span{
  display: inline;
}

.csoft_advance_search li i {
  vertical-align: middle;
  display: inline;
}