/* R5 candidate only: consume measured visual viewport on the phone drawer.
   The existing footer is fixed, so adjusting drawer height alone is insufficient. */
body#category.sc-category-filter-bridge-ready.show-filter #amazzing_filter[data-sc-category-viewport="1"] {
  top:var(--sc-category-filter-vtop)!important;
  bottom:auto!important;
  height:var(--sc-category-filter-vh)!important;
  max-height:var(--sc-category-filter-vh)!important;
}
html body#category.sc-category-filter-bridge-ready.show-filter #amazzing_filter[data-sc-category-viewport="1"] .btn-holder {
  top:var(--sc-category-filter-footer-top)!important;
  bottom:auto!important;
}
html body#category.sc-category-filter-bridge-ready.show-filter #amazzing_filter[data-sc-category-viewport="1"] #sc-category-filter-close {
  top:calc(var(--sc-category-filter-vtop) + 8px + env(safe-area-inset-top))!important;
}

/* R6 candidate only. A stale count must not look like a successful update. */
body#category #amazzing_filter[data-sc-category-count-error="1"] .viewFilteredProducts .af-total-count {
  display:none!important;
}
body#category #amazzing_filter .sc-category-filter-error {
  margin:10px;
  padding:12px;
  border:1px solid #cf292e;
  border-radius:10px;
  background:#fff3f3;
  color:#333;
  font-size:14px;
  line-height:1.4;
}
