/* Explicit open state survives Safari's input blur during a suggestion tap. */
body .kimmie-market-search.kimmie-search-ready .kimmie-search-suggestions { display:none !important; }
body .kimmie-market-search.kimmie-search-ready.kimmie-search-open .kimmie-search-suggestions { display:block !important; }
@media (max-width: 767px) {
  /* Avoid iOS focus zoom without disabling the user's pinch-to-zoom. */
  body .kimmie-market-search input[type="search"],
  body .kimmie-shop-filters input[type="search"],
  body .kimmie-shop-filters input[type="number"] { font-size:16px !important; }
}
@media (max-width: 760px) {
  /* The child panel's z-index cannot escape the discovery section's context. */
  body .kimmie-shop-discovery.kimmie-filter-sheet-open { z-index:100010; }
  body .kimmie-filter-menu[open] > .kimmie-filter-menu__panel {
    bottom:max(12px, env(safe-area-inset-bottom));
    max-height:min(76vh, calc(100vh - 32px));
    max-height:min(76dvh, calc(100dvh - 32px - env(safe-area-inset-bottom)));
  }
  body .kimmie-filter-menu__panel > .kimmie-filter-close { flex:none; }
  body .kimmie-filter-menu__panel > .kimmie-size-filter-heading,
  body .kimmie-filter-menu__panel > .kimmie-filter-menu__footer { flex-shrink:0; }
  body .kimmie-filter-menu__panel > .kimmie-size-filter-groups { min-height:0; overflow-y:auto; overscroll-behavior:contain; }
  /* Keep the size title in the top row alongside the close button. */
  body .kimmie-filter-menu--sizes > .kimmie-filter-menu__panel { padding-top:0; }
  body .kimmie-filter-menu--sizes .kimmie-size-filter-heading { padding:16px 64px 14px 16px; }
}
