/* MufengTech on-site product search — 2026-11-22 */
.mf-product-search{
  position:relative;
  flex:0 0 auto;
  z-index:80;
  min-width:0;
  font-family:inherit;
  color:var(--ink,#1f2937);
}
.mf-ps-form{
  display:flex;
  align-items:center;
  gap:0;
  margin:0;
  background:#fff;
  border:1px solid var(--line,#d0d7e2);
  border-radius:8px;
  overflow:hidden;
  min-height:38px;
}
.mf-ps-form:focus-within{
  border-color:var(--blue,#1a56db);
  box-shadow:0 0 0 3px rgba(26,86,219,.15);
}
.mf-ps-input{
  flex:1 1 auto;
  min-width:0;
  width:180px;
  max-width:240px;
  border:0;
  outline:none;
  background:transparent;
  padding:8px 10px;
  font:inherit;
  font-size:.92rem;
  color:inherit;
  -webkit-appearance:none;
  appearance:none;
}
.mf-ps-input::placeholder{color:var(--muted,#7a8494)}
.mf-ps-submit{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  border:0;
  background:transparent;
  color:var(--blue,#1a56db);
  cursor:pointer;
  padding:0;
}
.mf-ps-submit:hover{background:#eef3ff}
.mf-ps-submit svg{width:18px;height:18px;display:block;fill:currentColor}
.mf-ps-results{
  position:absolute;
  top:calc(100% + 6px);
  left:0;
  right:auto;
  width:min(420px,70vw);
  max-height:min(70vh,440px);
  overflow:auto;
  background:#fff;
  border:1px solid var(--line,#e5e7eb);
  border-radius:10px;
  box-shadow:0 10px 30px rgba(15,23,42,.14);
  z-index:90;
  padding:6px 0;
}
html[dir="rtl"] .mf-ps-results{left:auto;right:0}
.mf-ps-results[hidden]{display:none !important}
.mf-ps-hint,.mf-ps-empty{
  margin:0;
  padding:12px 14px;
  font-size:.9rem;
  color:var(--muted,#5b6474);
}
.mf-ps-item{
  display:block;
  padding:9px 14px;
  text-decoration:none;
  color:var(--ink,#1f2937);
  border:0;
  background:transparent;
  width:100%;
  text-align:inherit;
  cursor:pointer;
}
.mf-ps-item:hover,.mf-ps-item.is-active{background:#eef3ff}
.mf-ps-item-title{
  display:block;
  font-weight:650;
  font-size:.92rem;
  line-height:1.3;
  color:var(--navy,#1e3a8a);
}
.mf-ps-item-text{
  display:block;
  margin-top:2px;
  font-size:.8rem;
  line-height:1.35;
  color:var(--muted,#5b6474);
  max-height:2.7em;
  overflow:hidden;
}
.mf-ps-sr{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* Sister-site header placement */
.site-header .mf-product-search{margin-left:4px}
@media (max-width:1100px){
  .site-header .hdr{flex-wrap:wrap}
  .site-header .brand{order:1}
  .site-header .mf-product-search{
    order:2;
    flex:1 1 140px;
    margin-left:8px;
    max-width:none;
  }
  .site-header .nav-toggle{order:3;margin-left:0}
  .site-header .mf-lang-switcher{order:4}
  .site-header .hdr-cta{order:4}
  .site-header .site-nav{order:5}
  .site-header .mf-ps-input{width:100%;max-width:none}
  .site-header .mf-ps-results{width:min(420px,92vw)}
}
@media (max-width:480px){
  .site-header .mf-product-search{flex:1 1 100%;margin:6px 0 8px;order:5}
  .site-header .mf-ps-results{left:0;width:100%}
}

/* szmufeng: expand the old 30px icon slot into a visible box */
.nav-search.h_search{
  width:auto !important;
  height:auto !important;
  min-width:0 !important;
  cursor:default !important;
  position:relative;
  z-index:40;
}
.e_container-14 .cbox-14-2{
  display:block !important;
  visibility:visible !important;
  flex:0 0 auto !important;
  width:auto !important;
  min-width:200px !important;
  max-width:280px !important;
  position:relative !important;
  right:auto !important;
  z-index:40 !important;
}
.nav-search.h_search .mf-product-search{width:100%}
.nav-search.h_search .mf-ps-input{width:100%;max-width:none}
.nav-search.h_search .mf-ps-form{min-height:34px;border-radius:6px}
.nav-search.h_search .mf-ps-results{width:min(420px,86vw);right:0;left:auto}
html[dir="rtl"] .nav-search.h_search .mf-ps-results{left:0;right:auto}
@media (max-width:768px){
  .e_container-14 .cbox-14-2{
    display:block !important;
    visibility:visible !important;
    min-width:150px !important;
    max-width:200px !important;
  }
}

/* Keep results under WeChat/WhatsApp floats (szmufeng uses z-index 10000002). */
.mf-product-search,.mf-ps-results{z-index:80}
