/* ===== Language dropdown  ===== */
.langSwitch{
  position: relative;
  display: inline-block;
  z-index: 9999;
}

.langBtn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font: 600 12px/1 sans-serif;
  color: #222;
}

.langBtn__flag{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.langBtn__code{
  letter-spacing: .5px;
}

.langBtn__caret{
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #666;
  margin-left: 2px;
}

.langMenu{
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(0,0,0,.20);
  padding: 8px 0;
  overflow: hidden;
}

.langItem{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: #222;
  font: 500 14px/1.2 sans-serif;
}

.langItem__flag{
  width: 20px;
  height: 20px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}

.langItem:hover{
  background: #f2f6ff;
}

.langItem.is-active{
  background: #2f6fb6;
  color: #fff;
}

.langItem.is-active:hover{
  background: #2f6fb6;
}

/* если арабский — чуть ровнее визуально */
.langName[dir="rtl"]{
  margin-left: auto;
  text-align: right;
}

#bar .right { float:right; }
#bar .right .lang { display:inline-block; }
/* ---- Placement inside your top bar ---- */
#bar .right { float: right; }
#bar .langSwitchWrap { display: inline-block; }

/* ---- Button like globalfranchiseworld ---- */
.langSwitchWrap .langBtn{
  background:#f3f5f7;
  border:1px solid #e3e6ea;
}



.langBtn__label{
  font-weight: 600;
  color: #222;
  white-space: nowrap;
}

/* Active item must be visible */
.langSwitchWrap .langItem{ 
  background: transparent; 
  color: #222; 
}

.langSwitchWrap .langItem.is-active{
  background: #2f6fb6 !important;
  color: #fff !important;
}

.langSwitchWrap .langItem.is-active .langName{
  color: #fff !important;
}
