
.select-arrow {
  display: none;
}
/*
#searchbox > select {
  background-color: transparent;
  border: 1px solid #e7e7e7;
  border-bottom-left-radius: 5px;
  border-top-left-radius: 5px;
  color: #888888;
  float: left;
  height: 40px;
  margin-right: -1px;
  padding: 10px 10px 10px 2px;
  position: absolute;
  right: 100%;
  width: 45%;
}*/
#search_query_top:active, #search_query_top:focus {
  color: #929292;
}
input#search_query_top:active::-moz-placeholder{
  color: #929292;
}
input#search_query_top:active::-webkit-placeholder{
  color: #929292;
}
.ac_results .product-list-review:not([data-grade]) {
  display: none;
}
#search_block_top .btn.button-search span {
  background: transparent!important;
}
.searched_categories ~ .table-cell input#search_query_top {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.nice-select.searched_category:focus,
.nice-select.searched_category:active{
    outline: none!important;
    -webkit-outline: none!important;
    box-shadow: none!important;
    
}
#search_block_top #searchbox {
  float: left;
  position: relative;
  width: 100%;
}
.has-categories-dropdown .table {
  display: table;
  margin: 0;
  width: 100%;
}
#search_block_left {
  background: #fff none repeat scroll 0 0;
  box-shadow: 2px 2px 8px 0 rgba(0, 0, 0, 0.2);
  margin-bottom: 1.563rem;
  padding: 1.563rem 1.25rem;
}
#search_block_left .table-cell:last-child {
    width: 90%;
}
.has-categories-dropdown .table-cell {
    display: table-cell;
    vertical-align: top;
    position: relative;
}
#search_block_top .btn.button-search {
  background: #000000 none repeat scroll 0 0;
  border: medium none;
  color: #c6c6c6;
  display: inline-flex;
  float: left;
  height: 40px;
  min-width: 40px;
  padding: 10px 0;
  position: absolute;
  right: 0;
  text-align: center;
  transition: all 0.4s ease 0s;
  -webkit-transition: all 0.4s ease 0s;
  -moz-transition: all 0.4s ease 0s;
  -o-transition: all 0.4s ease 0s;
  width: 40px;
  border-bottom-right-radius: 3px;
  border-top-right-radius: 3px;
  outline: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
@-moz-document url-prefix() {
  .searched_category {
    padding-top: 8px !important;
  }
  .searched_category {
    background-color: #fffffe !important;
  }
}
#search_block_top .btn.button-search:focus {
  outline: none;
}
#search_query_top:focus{
    border-color: #ccc;
    box-shadow: none;
}
#search_block_top .btn.button-search:hover{
    background: #fc5656;
}

#search_block_top .btn.button-search:hover {
  color: #727473;
}
#search_block_top.has-categories-dropdown #search_query_top {
  background-color: #fff;
  outline: medium none;
  -webkit-outline: medium none;
  border: 1px solid #bbcdd2;
}
#search_query_top {
  background-color: #fff;
  float: left;
  font-size: 13px;
  height: 40px;
  padding: 5px 50px 5px 10px;
  width: 100%;
}
.ac_results {
  background: none repeat scroll 0 0 #FFFFFF;
  border: 1px solid #D6D4D4;
  left: 0 !important;
  margin-top: -1px;
  overflow: hidden;
  position: absolute !important;
  top: 100% !important;
  width: 100% !important;
  z-index: 9999;
  border-bottom: 0;
}
.ac_results > ul {
  margin-bottom: -1px;
}
.ac_results li {
  border-bottom: 1px solid #F7F7F7;
  color: #686666;
  cursor: pointer;
  font-size: 12px;
  font-weight: normal;
  line-height: 22px;
  overflow: hidden;
  padding: 2px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ac_results li.ac_odd {
  background: #fff; 
}
.ac_results li:hover, .ac_results li.ac_over {
  background: #F6F6F6; 
}

form#searchbox {
  position: relative; 
}
form#searchbox label {
    color: #333; 
}
form#searchbox input#search_query_block {
  background-color: #fff;
  display: inline-block;
  float: left;
  height: 40px;
  font-size: 14px;
  margin-bottom: 10px;
  margin-right: 0px;
  padding: 0 50px 0 10px;
}
form#searchbox .button.button-small {
  background-color: #000;
  color: #fff;
  float: left;
  height: 40px;
  max-height: 100%;
  padding: 0;
  position: absolute;
  right: 0;
  text-align: center;
  width: 40px;
}
form#searchbox .button.button-small i {
    margin-right: 0; 
}
#searchbox > select {
  background-color: transparent;
  border: 1px solid #E7E7E7;
  border-bottom-left-radius: 5px;
  border-top-left-radius: 5px;
  color: #888888;
  float: left;
  height: 40px;
  margin-right: -1px;
  padding: 10px 10px 10px 2px;
  position: absolute;
  right: 100%;
  width: 45%;
}
.select-arrow {
  background-color: white;
  border-bottom: 1px solid #e7e7e7;
  border-top: 1px solid #e7e7e7;
  height: 40px;
  position: absolute;
  right: 100%;
  width: 30px;
  z-index: 11;
  pointer-events: none;
}
.select-arrow:before {
  content: "\f0d7";
  font-family: FontAwesome;
  line-height: 40px;
  text-align: left;
  padding-left: 3px;
  width: 100%;
  color: #ccc;
  font-size: 16px;
  float: left;
}

@media (max-width:767px)
{
    #search_block_top {
      margin-top: 24px;
      margin-left: 0;
      margin-right: 0;
      margin-bottom: 10px;
    }
}
.sbc_input-query {
  margin-top: 10px;
}
#search_query_block:focus {
  outline: none;
}
.searched_category {
  cursor: pointer;
  min-height: 40px;
  padding-top: 0px;
  border: 1px solid #bbcdd2;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position-x: 100%;
  background-position-y: 6px;
  border-radius: 2px;
  padding-left: 5px;
  padding-right: 20px;
  border-right: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.searched_category:focus-visible {
  outline: none;
}
.searched_category,option.selected {
  width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.searched_categories {
  display: flex;
  flex-direction: column;
}
.sbc_show_more {
  text-align: center;
  background-color: #2fb5d2;
  color: white !important;
  font-size: 14px !important;
}
.sbc_show_more:hover {
  background-color: #2592a9 !important;
}
.ac_results ul li.hide {
  display: none !important;
}
li.ac_even img, li.ac_odd img {
  margin-right: 10px;
}
svg {
  width: 19px;
  height: 19px;
}
.button-search svg {
  width: 19px;
  height: 19px;
  fill: white !important;
}
#search_block_top {
  float: right;
  width: auto;
  order: 2;
  margin-top: 14px;
}
#search_block_top .results_select {
  display: none;
}
#search_query_top {
  outline: none;
}
.sbc-item-wrapper {
  display: flex;
  width: 100%;
  white-space: normal;
}
.sbc-item-wrapper .product-list-reviews {
  position: relative!important;
  background-color: transparent;
  top: 0!important;
  justify-content: flex-start;
  -webkit-justify-content: flex-start;
}
#search_widget {
  display: none;
}
select.searched_category option:hover {
  background-color: white !important;
}
@media (min-width: 768px) {
  #search_query_top {
    min-width: 250px;
  }

}
/* =========================================================
   MEJORAS v1.1.0 — Marco de búsqueda + lupa centrada
   (Compatible PrestaShop 9. Respeta el color configurable
    del botón: ETS_BLOCKSEARCH_BUTTON_COLOR)
   ========================================================= */

/* --- Lupa perfectamente centrada dentro del botón --- */
#search_block_top .btn.button-search,
form#searchbox .button.button-small {
  display: -webkit-inline-flex !important;
  display: inline-flex !important;
  -webkit-align-items: center !important;
  align-items: center !important;
  -webkit-justify-content: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 0 !important;
}
#search_block_top .btn.button-search span,
form#searchbox .button.button-small span {
  display: -webkit-inline-flex !important;
  display: inline-flex !important;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: transparent !important;
}
#search_block_top .btn.button-search svg,
form#searchbox .button.button-small svg,
.button-search svg {
  display: block;
  margin: 0 !important;
}

/* --- Marco: input + botón + selector como una sola pieza --- */
#search_block_top #searchbox,
form#searchbox {
  border-radius: 10px;
}

#search_query_top,
form#searchbox input#search_query_block {
  height: 46px !important;
  padding: 6px 56px 6px 16px !important;
  font-size: 14px;
  border: 1px solid #d7e0e5 !important;
  border-radius: 10px 0 0 10px !important;
  background-color: #fff;
  box-shadow: inset 0 1px 2px rgba(16, 42, 67, 0.05);
  -webkit-transition: border-color .18s ease, box-shadow .18s ease;
  transition: border-color .18s ease, box-shadow .18s ease;
}
/* Cuando NO hay selector de categorías, el input redondea los 4 lados izquierdos */
.no-categories-dropdown #search_query_top {
  border-radius: 10px 0 0 10px !important;
}
#search_query_top:focus,
form#searchbox input#search_query_block:focus {
  border-color: #2fb5d2 !important;
  box-shadow: 0 0 0 3px rgba(47, 181, 210, 0.18), inset 0 1px 2px rgba(16, 42, 67, 0.04) !important;
  outline: none !important;
}

/* Botón de búsqueda: mismo alto que el input, esquina derecha redondeada */
#search_block_top .btn.button-search,
form#searchbox .button.button-small {
  height: 46px !important;
  width: 48px !important;
  min-width: 48px !important;
  border-radius: 0 10px 10px 0 !important;
  cursor: pointer;
  -webkit-transition: background-color .2s ease, -webkit-transform .1s ease;
  transition: background-color .2s ease, transform .1s ease, filter .2s ease;
}
#search_block_top .btn.button-search:hover,
form#searchbox .button.button-small:hover {
  -webkit-filter: brightness(1.06);
  filter: brightness(1.06);
}
#search_block_top .btn.button-search:active,
form#searchbox .button.button-small:active {
  -webkit-transform: translateY(1px);
  transform: translateY(1px);
}
#search_block_top .btn.button-search:focus-visible,
form#searchbox .button.button-small:focus-visible {
  outline: 2px solid rgba(47, 181, 210, 0.55);
  outline-offset: 2px;
}

/* Selector de categorías alineado con el nuevo alto y esquina izquierda redondeada */
.searched_category {
  min-height: 46px !important;
  height: 46px !important;
  border: 1px solid #d7e0e5 !important;
  border-right: none !important;
  border-radius: 10px 0 0 10px !important;
  background-position-y: 10px;
  padding-top: 0 !important;
  line-height: 44px;
}
.searched_categories ~ .table-cell input#search_query_top {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-left: none !important;
}

/* --- Dropdown de sugerencias: elevado, redondeado y más legible --- */
.ac_results {
  border: 1px solid #e2e8ec !important;
  border-top: none !important;
  border-radius: 0 0 10px 10px !important;
  margin-top: 2px;
  box-shadow: 0 12px 28px -8px rgba(16, 42, 67, 0.22), 0 4px 10px -6px rgba(16, 42, 67, 0.12);
  overflow-x: hidden !important;
  overflow-y: auto !important;
  max-height: 60vh;              /* tope en desktop: no pasa del 60% de la pantalla */
  -webkit-overflow-scrolling: touch;  /* scroll con inercia en iOS */
  overscroll-behavior: contain;  /* evita arrastrar la página al llegar al final */
  scrollbar-width: thin;         /* Firefox */
  scrollbar-color: #c7d3da transparent;
}
/* Scrollbar discreta (WebKit / Chrome / Safari) */
.ac_results::-webkit-scrollbar {
  width: 8px;
}
.ac_results::-webkit-scrollbar-track {
  background: transparent;
}
.ac_results::-webkit-scrollbar-thumb {
  background: #c7d3da;
  border-radius: 8px;
  border: 2px solid #fff;
}
.ac_results::-webkit-scrollbar-thumb:hover {
  background: #a9b9c2;
}
.ac_results li {
  padding: 9px 14px !important;
  line-height: 1.35 !important;
  border-bottom: 1px solid #f1f4f6 !important;
  -webkit-transition: background-color .12s ease;
  transition: background-color .12s ease;
}
.ac_results li:last-child {
  border-bottom: none !important;
}
.ac_results li:hover,
.ac_results li.ac_over {
  background: #f2fafc !important;
}
li.ac_even img, li.ac_odd img {
  border-radius: 6px;
  border: 1px solid #eef2f4;
  margin-right: 12px;
}
.sbc_show_more {
  padding: 10px !important;
  font-weight: 600;
  border-bottom: none !important;
}

/* --- Tope de altura del dropdown en móvil --- */
@media (max-width: 767px) {
  .ac_results {
    max-height: 55vh;   /* en pantallas chicas, deja ver el teclado y algo de fondo */
  }
  /* En móvil dejamos que el nombre largo baje de línea en vez de cortarse */
  .ac_results li {
    white-space: normal !important;
    line-height: 1.3 !important;
  }
  .ac_results::-webkit-scrollbar {
    width: 5px;
  }
}
