/* Prevent iSearch from detaching the focused mobile search from the header. */
@media only screen and (max-width: 600px) {
  .mobile-header-active .header-search.focused {
    position: relative !important;
    left: auto !important;
  }

  .mobile-header-active .mobile-header .mobile-top-bar {
    z-index: 1;
  }

  .mobile-search-has-value.mobile-header-active .mobile-header .mini-search #search > .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .mobile-search-has-value.mobile-header-active .mobile-header .header-search {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 50px !important;
    z-index: 1000000 !important;
    background: #fff;
    box-sizing: border-box;
  }

  /* iSearch appends its results directly to body with inline dimensions. */
  body > .isearch-container {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
    overflow-x: hidden !important;
  }

  .mobile-search-has-value body > .isearch-container {
    position: fixed !important;
    top: 50px !important;
    bottom: 0 !important;
    max-height: calc(100vh - 50px) !important;
    max-height: calc(100dvh - 50px) !important;
    overflow-y: auto !important;
    z-index: 999999 !important;
    -webkit-overflow-scrolling: touch;
  }

  body > .isearch-container .isearch-product-info,
  body > .isearch-container .isearch-product-info > div {
    min-width: 0;
  }

  body > .isearch-container .isearch-heading-product,
  body > .isearch-container .isearch-model {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
