/* Alfa Food B2B V4.7.9 | Catalogue-first compact filters & iOS safe inputs */
.af-catalog-page .af-filter-panel.af479-ready {
  padding:clamp(12px,2vw,18px)!important;
  border:1px solid #d8e6db;
  box-shadow:0 8px 28px rgba(17,68,46,.055);
  border-radius:18px;
  overflow:visible;
}
.af-catalog-page .af479-search-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:end;
  min-width:0;
}
.af-catalog-page .af479-search-row > .field {min-width:0;margin:0}
.af-catalog-page .af479-search-row .af479-search-control {min-width:0}
.af-catalog-page .af479-search-row .input[name="q"] {
  width:100%;max-width:100%;min-width:0;
  height:48px;min-height:48px;font-size:16px!important;
  border-radius:12px;-webkit-appearance:none;appearance:none;
}
.af-catalog-page .af479-search-row button[type="submit"] {
  display:inline-flex;align-items:center;justify-content:center;
  min-height:48px;max-width:100%;padding:0 20px!important;
  border-radius:12px;font-size:14px;white-space:nowrap;
}
.af-catalog-page .af479-advanced {
  border-top:1px solid #e3eee7;
  margin-top:13px;padding-top:0;
  min-width:0;
}
.af-catalog-page .af479-advanced > summary {
  cursor:pointer;display:flex;align-items:center;gap:9px;
  list-style:none;user-select:none;min-height:45px;
  font-weight:800;font-size:14px;color:#18553e;
  padding:9px 4px;touch-action:manipulation;
}
.af-catalog-page .af479-advanced > summary::-webkit-details-marker {display:none}
.af-catalog-page .af479-filter-glyph {font-size:18px;line-height:1;flex:0 0 auto}
.af-catalog-page .af479-filter-count {
  background:#e9f5ed;color:#165539;border:1px solid #b9ddc9;
  padding:2px 8px;border-radius:999px;font-size:11px;margin-left:1px;
}
.af-catalog-page .af479-chevron {
  margin-left:auto;width:11px;height:11px;flex:0 0 11px;
  border-right:2px solid #477c61;border-bottom:2px solid #477c61;
  transform:rotate(45deg) translate(-2px,-2px);transition:transform .18s ease;
}
.af-catalog-page .af479-advanced[open] .af479-chevron {transform:rotate(225deg) translate(-2px,-2px)}
.af-catalog-page .af479-filter-content {padding:10px 0 4px;min-width:0}
.af-catalog-page .af479-filter-content .af-filter-fields {
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px;
  width:100%;min-width:0;
}
.af-catalog-page .af479-filter-content .af-filter-fields > .field{min-width:0}
.af-catalog-page .af479-filter-content .af-filter-fields :is(select,input) {
  max-width:100%;width:100%;min-width:0;
}
.af-catalog-page .af479-filter-content .af-filter-chips,
.af-catalog-page .af479-filter-content .af-subcategory-filter,
.af-catalog-page .af479-filter-content .af-repeat-filter {margin-top:12px;min-width:0}
.af-catalog-page .af479-advanced :focus-visible, .af-catalog-page .af479-search-row :focus-visible {
  outline:3px solid #e4b354;outline-offset:2px;
}
/* Prevent two-column saved-list action from exceeding its card, at any zoom level. */
.af-catalog-page .af-products-grid .af-save-form,
.af-catalog-page .af-products-grid .af-save-row {
  min-width:0!important;max-width:100%!important;width:100%!important;
  box-sizing:border-box!important;
}
.af-catalog-page .af-products-grid .af-save-row {
  display:flex!important;flex-direction:column;align-items:stretch;
  gap:6px;overflow-wrap:anywhere;
}
.af-catalog-page .af-products-grid .af-save-row :is(select,.af-save-btn){
  box-sizing:border-box!important;min-width:0!important;max-width:100%!important;width:100%!important;
  flex:0 1 auto;
}
.af-catalog-page .af-products-grid .af-save-btn {
  display:flex!important;align-items:center;justify-content:center;
  padding:9px 5px!important;min-height:44px!important;
  border-radius:11px!important;white-space:normal!important;
  overflow-wrap:anywhere!important;word-break:normal!important;
  font-size:clamp(11px,2.9vw,13px)!important;line-height:1.25!important;
  text-align:center!important;
}
@media (max-width:767px) {
  .af-catalog-page .af-filter-panel.af479-ready {padding:11px!important;margin-bottom:11px}
  .af-catalog-page .af479-search-row {gap:7px;grid-template-columns:minmax(0,1fr) auto}
  .af-catalog-page .af479-search-row .field > label {font-size:12px!important}
  .af-catalog-page .af479-search-row button[type="submit"] {padding:0 12px!important;min-width:94px}
  .af-catalog-page .af479-filter-content .af-filter-fields {grid-template-columns:minmax(0,1fr);gap:10px}
  /* iOS Safari zooms focused form controls with small computed font-size (<16px). */
  /* Global site search appears on dashboard and other pages too. */
  #siteProductSearch,
  .utility-form input[type="search"],
  .af-catalog-page .af-filter-panel input,
  .af-catalog-page .af-filter-panel select,
  .af-catalog-page .af-filter-panel textarea,
  .af-catalog-page .af-filter-panel input:focus {font-size:16px!important;}
  .af-catalog-page .af-filter-panel input[type="search"] {-webkit-text-size-adjust:100%;}
  .af-catalog-page .af-products-grid .af-save-row select {font-size:16px!important;}
  .af-catalog-page .af-products-grid .af-save-btn {font-size:12px!important;}
}
@media (max-width:355px) {
  .af-catalog-page .af479-search-row button[type="submit"] {min-width:82px;padding:0 8px!important}
  .af-catalog-page .af-filter-panel.af479-ready {padding:9px!important}
}
@media (prefers-reduced-motion:reduce) {
  .af-catalog-page .af479-chevron {transition:none}
}
