/* Hyva preview only, phones: in the AjaxSearch dropdown, a result row with a quick-add button is a wrapper
   div (flex, no wrap) holding the result link plus an "Add to cart" button with min-width and margins,
   which overflows the panel. Wrap the row: link on the first line, button full width beneath it.
   Row styles are inline from JS, hence !important. */
@media (max-width: 600px) {
  div:has(> a[id^="ppt-ajax-hyva-option-"] + button) { flex-wrap: wrap !important; }
  div:has(> a[id^="ppt-ajax-hyva-option-"] + button) > a { flex: 1 1 100% !important; min-width: 0 !important; }
  div:has(> a[id^="ppt-ajax-hyva-option-"] + button) > button {
    flex: 1 1 100% !important;
    min-width: 0 !important;
    margin: 0 11px 11px !important;
    max-width: calc(100% - 22px) !important;
    box-sizing: border-box;
  }
  div:has(> div > a[id^="ppt-ajax-hyva-option-"]) { overflow-x: hidden; }
}
