/* MMPRO Topbar: keep sticky (long-term stable) */
#mm-pro-topbar.mm-pro-topbar{
  position: sticky !important;
  top: 0 !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  z-index: 99999 !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

/* Align market + language selectors side-by-side */
#mm-pro-topbar .mm-pro-topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  padding: 8px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

#mm-pro-topbar .mm-pro-topbar-lang{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 8px;
  border:1px solid rgba(0,0,0,.10);
  border-radius:999px;
  background:#fff;
  box-shadow:0 1px 0 rgba(0,0,0,.03);
}



/* Theme-safe select styling (avoid full-width ugly selects) */
#mm-pro-topbar .mmpro-lang-select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  display:inline-block !important;
  width:auto !important;
  max-width:160px;
  min-width:90px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:13px;
  line-height:1.2;
  font-weight:700;
  padding:6px 28px 6px 10px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:999px;
  background:#fff;
  cursor:pointer;
  outline:none;
}

/* Custom caret */
#mm-pro-topbar .mm-pro-topbar-lang{
  position:relative;
}
#mm-pro-topbar .mm-pro-topbar-lang:after{
  content:'▾';
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-50%);
  font-size:12px;
  opacity:.55;
  pointer-events:none;
}

#mm-pro-topbar .mmpro-lang-select:focus{
  border-color:rgba(0,0,0,.25);
}

/* Hide old label (we use globe icon) */
#mm-pro-topbar .mm-pro-topbar-lang-label{ display:none !important; }
/* If any child components try to be fixed, keep them normal inside the topbar */


/* Left / Right groups */
#mm-pro-topbar .mm-pro-topbar-left,
#mm-pro-topbar .mm-pro-topbar-right{
  display:flex;
  align-items:center;
  gap:10px;
}
#mm-pro-topbar .mm-pro-topbar-left{ justify-content:flex-start; }
#mm-pro-topbar .mm-pro-topbar-right{ justify-content:flex-end; }

/* Make GTranslate dropdown look like market selector pill */
#mm-pro-topbar .mm-pro-topbar-lang .gtranslate_wrapper{
  display:inline-flex;
  align-items:center;
}
#mm-pro-topbar .mm-pro-topbar-lang select,
#mm-pro-topbar .mm-pro-topbar-lang .notranslate select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  width:auto !important;
  max-width:220px;
  min-width:130px;
  font-size:13px;
  line-height:1.2;
  font-weight:700;
  padding:6px 28px 6px 10px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:999px;
  background:#fff;
  cursor:pointer;
  outline:none;
}

@media (max-width: 480px){
  #mm-pro-topbar .mmpro-lang-select{max-width:140px;min-width:60px;}
}

/* ---------- MMPro Topbar Mobile Fix ---------- */

#mm-pro-topbar .mm-pro-topbar-inner{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    flex-wrap:nowrap !important;
}

/* Language selector left */
#mm-pro-topbar .mm-pro-topbar-left{
    display:flex !important;
    align-items:center !important;
}

/* Market selector right */
#mm-pro-topbar .mm-pro-topbar-right{
    display:flex !important;
    align-items:center !important;
    margin-left:auto !important;
}

/* Prevent selectors breaking to next line */
#mm-pro-topbar select,
#mm-pro-topbar .gtranslate_wrapper{
    white-space:nowrap !important;
}

/* Mobile spacing */
@media (max-width:768px){

#mm-pro-topbar .mm-pro-topbar-inner{
    gap:4px !important;
    padding:6px 12px !important;
}

#mm-pro-topbar select,
#mm-pro-topbar .mm-pro-topbar-lang select,
#mm-pro-topbar .mm-pro-topbar-lang .notranslate select,
#mm-pro-topbar .mmpro-lang-select {
    font-size:11px !important;
    padding:4px 20px 4px 6px !important;
    min-width:auto !important;
    height:28px !important;
    line-height:18px !important;
}

}