/* MRS-EAT PL190-192: Mobile search presentation only. No global overflow rules. */
#pt-sticky-topbar .search-section .search { position: relative; }
#pt-sticky-topbar .search-section .search #search_text {
  box-sizing: border-box;
  min-width: 0;
  padding-right: 49px;
}
#pt-sticky-topbar .search-section .search #clear_search {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #252525;
  color: #fff;
  font: 22px/1 Arial, sans-serif;
  cursor: pointer;
  z-index: 2;
}
#pt-sticky-topbar .search-section .search #clear_search.d-none { display: none !important; }
#pt-sticky-topbar .search-section .search #clear_search:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}
#menuListing .pt-search-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  max-width: 100%;
  margin-bottom: 18px;
}
#menuListing .pt-search-results-heading > span {
  flex: 1 1 180px;
  min-width: 0;
  overflow-wrap: anywhere;
}
#menuListing .pt-search-results-heading #pt_search_reset_btn {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 14px;
  line-height: 1.3;
  white-space: normal;
  max-width: 100%;
}
@media (max-width: 767px) {
  #pt-sticky-topbar .search-section .search #search_text { font-size: 16px !important; }
  #menuListing .pt-search-results-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  #menuListing .pt-search-results-heading > span { flex: 0 1 auto; }
  #menuListing .pt-search-results-heading #pt_search_reset_btn { align-self: flex-start; }
}

/* PL300 TEST: Search is an independent visual mode on mobile.
   Only hide the category strip while query results are shown. */
@media (max-width: 767.98px) {
  body.pt-menu-search-active #pt-sticky-topbar .pt-cat-bar-wrapper {
    display: none !important;
  }
  #pt-sticky-topbar .search-section .search #search_text {
    font-size: 16px !important;
  }
}

/* PL315 Bollywood TEST: Mobile search keeps a single clear control.
   The existing X inside #search_text remains the only reset action.
   Desktop and AJAX/search logic are intentionally untouched. */
@media (max-width: 767.98px) {
  body.pt-menu-search-active #menuListing .pt-search-results-heading {
    display: none !important;
  }
  /* Keep results accessible; no viewport locking or fixed heights. */
  body.pt-menu-search-active #pt-sticky-topbar .pt-cat-bar-wrapper {
    display: none !important;
  }
}
