/* SearchPRO presentation only. Load after the theme and homepage styles. */
.sf-search-field {
  width:100%;
  max-width:100%;
  min-width:0;
}
.sf-search-field .searchpro__field-container {
  min-height:48px;
  border-radius:8px;
}
.sf-search-field .searchpro__field-input-container {
  flex:1 1 0;
  min-width:0;
}
.sf-search-field .searchpro__field-input-container .searchpro__field-input {
  min-width:0;
  font-size:16px;
  line-height:1.4;
  padding-right:48px;
}
.sf-search-field .searchpro__field-input-container .searchpro__field-input::placeholder {
  color:#646080;
  opacity:1;
}
/* Keep the existing SearchPRO clear control as the single clear action. */
.sf-search-field .searchpro__field-input::-webkit-search-cancel-button {
  -webkit-appearance:none;
}
.sf-search-field .searchpro__field-container:focus-within,
.sf-search-field .searchpro__field-container.js-searchpro__field-container--focus {
  border-color:#9005b4;
  box-shadow:0 0 0 3px rgb(144 5 180 / 15%);
}
.sf-search-field .searchpro__field-container .searchpro__field-clear-button {
  appearance:none;
  border:0;
  border-radius:6px;
  padding:0;
  width:44px;
  min-width:44px;
  min-height:44px;
  background-color:transparent;
  box-shadow:none;
  touch-action:manipulation;
}
.sf-search-field .searchpro__field-clear-button:focus-visible,
.sf-search-field .searchpro__field-button:focus-visible {
  outline:3px solid #9005b4;
  outline-offset:-3px;
}
.sf-search-field .searchpro__field-button-container {
  flex-shrink:0;
}
.sf-search-field .searchpro__field-button {
  min-width:44px;
  min-height:44px;
  touch-action:manipulation;
}

/* SearchPRO positions its own lists; keep their horizontal bounds with the field. */
.sf-unified :is(.top__search,.fixed__search,.sfh-search-host) .js-searchpro__field {
  position:relative;
  min-width:0;
  max-width:100%;
}
.sf-unified :is(.top__search,.fixed__search,.sfh-search-host) :is(.js-searchpro__dropdown,.js-searchpro__helper) {
  left:0!important;
  width:100%!important;
  max-width:100%;
  box-sizing:border-box;
}
.sf-unified :is(.top__search,.fixed__search,.sfh-search-host) .js-searchpro__dropdown-extend-container {
  width:100%!important;
  max-width:100%;
  min-width:0;
  box-sizing:border-box;
}
.sf-unified :is(.top__search,.fixed__search,.sfh-search-host) .js-searchpro__dropdown-extend-container-inner {
  margin-left:0!important;
  min-width:0;
  max-width:100%;
}
.sf-unified :is(.top__search,.fixed__search,.sfh-search-host) :is(.searchpro__dropdown,.searchpro__dropdown-extend,.sarafanovo-smart-search-suggestions) {
  max-height:min(600px,60vh);
  max-height:min(600px,60dvh);
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
}
.sf-unified :is(.top__search,.fixed__search,.sfh-search-host) .searchpro__dropdown-extend-container {
  width:100%;
  min-width:0;
  box-sizing:border-box;
  flex-direction:column;
  gap:20px;
  padding:20px 16px;
}
.sf-unified :is(.top__search,.fixed__search,.sfh-search-host) :is(.searchpro__dropdown-extend-groups,.searchpro__dropdown-extend-groups_left,.searchpro__dropdown-extend-groups_middle,.searchpro__dropdown-extend-groups_right,.searchpro__dropdown-extend-group-products) {
  width:100%;
  min-width:0;
  margin-left:0;
  padding:0;
}
.sf-unified :is(.top__search,.fixed__search,.sfh-search-host) .searchpro__dropdown-extend-entity-content {
  min-width:0;
  overflow-wrap:anywhere;
}
.sf-unified :is(.top__search,.fixed__search,.sfh-search-host) .searchpro__dropdown-entity_name {
  white-space:normal;
  overflow-wrap:anywhere;
}
@media (max-width:767px) {
  .sf-search-field .searchpro__field-input-container .searchpro__field-input {
    padding-left:10px;
  }
}
