/* Product search (food.add, variants А and Б): the helpers button — photo, voice, barcode, repeat (owner 28.09).
   Its own file so s-food.css stays untouched while another round edits it. Builds on the kit's .fab.float. */
#ph.xfd>.fab.float.fd-hfab{width:auto;min-width:56px;height:56px;border-radius:18px;padding:0 18px 0 16px;display:flex;align-items:center;justify-content:center;gap:8px;font:600 16px/1 var(--font);bottom:24px;
  transition:opacity .16s var(--ease),transform .16s var(--ease),visibility 0s linear 0s}
#ph.xfd>.fab.float.fd-hfab svg{width:22px;height:22px}
/* the list scrolled: icon only, it covers less of the rows under it */
#ph.xfd>.fab.float.fd-hfab.min{padding:0}
#ph.xfd>.fab.float.fd-hfab.min span{display:none}
/* above a bottom bar with «Сохранить»: lifted, and paper instead of accent, so the save stays the one primary */
#ph.xfd>.fab.float.fd-hfab.lift{bottom:88px;background:var(--surface-1);color:var(--ink)}
/* the keyboard is up while the search has focus: the button steps aside */
#ph.xfd:has(#fdQ:focus,#fdbQ:focus)>.fab.float.fd-hfab{opacity:0;transform:translateY(12px);pointer-events:none;visibility:hidden;
  transition:opacity .16s var(--ease),transform .16s var(--ease),visibility 0s linear .16s}
#ph.xfd>.fab.float.fd-hfab:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
/* the undo toast sits above the button, full width, not squeezed beside it */
#ph.xfd:has(>.fab.float.fd-hfab) .ptoast{right:16px;bottom:96px}
#ph.xfd:has(>.fab.float.fd-hfab.lift) .ptoast{right:16px;bottom:160px}
@media (prefers-reduced-motion:reduce){#ph.xfd>.fab.float.fd-hfab{transition:none!important}}
@media (max-width:520px){
  #ph.xfd>.fab.float.fd-hfab{bottom:calc(24px + env(safe-area-inset-bottom,0px))}
  #ph.xfd>.fab.float.fd-hfab.lift{bottom:calc(88px + env(safe-area-inset-bottom,0px))}
  #ph.xfd:has(>.fab.float.fd-hfab) .ptoast{bottom:calc(96px + env(safe-area-inset-bottom,0px))}
  #ph.xfd:has(>.fab.float.fd-hfab.lift) .ptoast{bottom:calc(160px + env(safe-area-inset-bottom,0px))}
}
