/* MISTER FAST MINI V63.4.6.2 — Tiny Screen Search Button Hotfix
   Scope: LiveMap / Driver Discovery only. Chat UI and engines are untouched. */

/* The button is attached to the map pane and positioned from the usable viewport bottom.
   This avoids compact WebView title bars covering a top-positioned action. */
.mf63462-mobile-search{
  display:none;
  position:fixed;
  right:max(12px, env(safe-area-inset-right));
  bottom:max(76px, calc(env(safe-area-inset-bottom) + 68px));
  z-index:2147482500;
  min-width:132px;
  height:48px;
  padding:0 16px;
  border:2px solid #fff;
  border-radius:999px;
  background:#003DA5;
  color:#fff;
  align-items:center;
  justify-content:center;
  gap:8px;
  font:800 14px/1 Kanit,Prompt,sans-serif;
  box-shadow:0 12px 32px rgba(0,61,165,.42);
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  -webkit-tap-highlight-color:transparent;
  transform:translateZ(0);
}
.mf63462-mobile-search__icon{
  display:grid;
  place-items:center;
  width:27px;
  height:27px;
  flex:0 0 27px;
  border-radius:50%;
  background:#FFC400;
  color:#003DA5;
  font-size:16px;
  line-height:1;
}

/* JS applies this class using the actual map-pane width, not only media queries. */
body.mf63-show-map.mf63462-tiny-map .mf63462-mobile-search{
  display:flex !important;
}
body.mf6346-discovery-open .mf63462-mobile-search{
  opacity:0 !important;
  visibility:hidden !important;
  pointer-events:none !important;
}

/* Hide previous floating variants so only one reliable button is shown. */
body.mf63462-tiny-map .mf6346-mobile-search,
body.mf63462-tiny-map .mf63461-mobile-search{
  display:none !important;
}

@media (max-height:620px){
  .mf63462-mobile-search{
    bottom:max(62px, calc(env(safe-area-inset-bottom) + 54px));
    height:44px;
    min-width:122px;
    padding:0 13px;
    font-size:13px;
  }
}

@media (max-width:430px){
  .mf63462-mobile-search{
    right:max(9px, env(safe-area-inset-right));
    bottom:max(72px, calc(env(safe-area-inset-bottom) + 64px));
    min-width:120px;
    height:44px;
    padding:0 12px;
    font-size:13px;
  }
}
