/* MESCURA Language menu v1.2.1: one managed header on desktop and mobile. */
body.mescura-builder-page #mescura-site .mescura-header-inner {position:relative;}
body.mescura-builder-page #mescura-site .ms-fle-language-switcher {
  flex:0 0 auto; position:relative; isolation:isolate;
  font-family:Manrope,'Noto Sans Arabic',system-ui,sans-serif!important;
  margin-inline-start:clamp(5px,.7vw,12px);z-index:10002;
}
body.mescura-builder-page #mescura-site .ms-fle-language-button {
  appearance:none;display:flex;align-items:center;justify-content:center;
  gap:7px;min-width:72px;min-height:40px;
  border:1px solid #b5d1df;border-radius:12px;
  background:#fff;color:#173c51!important;padding:8px 10px;
  font-size:12px!important;line-height:1.2;font-weight:800!important;
  cursor:pointer;white-space:nowrap;box-shadow:0 5px 12px rgba(12,41,55,.05);
}
body.mescura-builder-page #mescura-site .ms-fle-language-globe {font-size:19px;font-weight:700;line-height:1;}
body.mescura-builder-page #mescura-site .ms-fle-language-button:hover,
body.mescura-builder-page #mescura-site .ms-fle-language-button:focus-visible {border-color:#287eab;background:#edf8fe;}
body.mescura-builder-page #mescura-site .ms-fle-language-button:focus-visible,
body.mescura-builder-page #mescura-site .ms-fle-language-option:focus-visible{outline:2px solid #176b99;outline-offset:3px;}
body.mescura-builder-page #mescura-site .ms-fle-language-menu{
  position:absolute!important;top:calc(100% + 8px);inset-inline-end:0;
  min-width:188px;max-width:min(250px,90vw);
  background:#fff!important;border:1px solid #bfd6e2;border-radius:12px;
  padding:7px;box-shadow:0 18px 40px rgba(12,41,55,.16);z-index:10003;
}
body.mescura-builder-page #mescura-site .ms-fle-language-menu[hidden]{display:none!important;}
body.mescura-builder-page #mescura-site .ms-fle-language-option {
  display:block!important;padding:11px 12px!important;margin:0!important;
  font:700 13px/1.3 Manrope,'Noto Sans Arabic',system-ui,sans-serif!important;
  text-align:start;text-decoration:none!important;color:#203e4b!important;
  background:#fff!important;border-radius:8px;white-space:normal;
}
body.mescura-builder-page #mescura-site .ms-fle-language-option:hover,
body.mescura-builder-page #mescura-site .ms-fle-language-option[aria-current="true"] {background:#e9f6fc!important;color:#0d5684!important;}
@media(max-width:1100px){
 body.mescura-builder-page #mescura-site .ms-fle-language-switcher {order:1;margin-inline-start:auto;margin-inline-end:8px;}
 body.mescura-builder-page #mescura-site .mescura-menu-toggle {order:2;}
 body.mescura-builder-page #mescura-site .ms-fle-language-button {min-width:60px;min-height:38px;padding:6px 8px;}
}
@media(max-width:380px){
 body.mescura-builder-page #mescura-site .ms-fle-language-button{min-width:52px;gap:4px;padding:5px 6px;font-size:11px!important;}
 body.mescura-builder-page #mescura-site .ms-fle-language-globe {font-size:16px;}
 body.mescura-builder-page #mescura-site .ms-fle-language-switcher{margin-inline-end:4px;}
}

/* v1.2.1: Brand left / menu in the middle / language at the FAR RIGHT.
   Keep the actual textual direction inside Arabic links and drop-downs. */
body.mescura-builder-page #mescura-site .mescura-header-inner {
  direction:ltr!important;
  display:flex!important;align-items:center!important;
}
body.mescura-builder-page #mescura-site .mescura-header-inner > .mescura-brand {order:0;flex:0 0 auto;}
body.mescura-builder-page #mescura-site .mescura-header-inner > .mescura-main-nav {
  order:1;margin-left:auto!important;margin-right:0!important;min-width:0;
}
body.mescura-builder-page #mescura-site .mescura-header-inner > .ms-fle-language-switcher {
  order:3!important; margin-left:clamp(9px,1.1vw,18px)!important;
  margin-right:0!important; flex-shrink:0;z-index:10010;
}
html[dir="rtl"] body.mescura-builder-page #mescura-site .mescura-main-nav {direction:rtl;text-align:right;}
html[dir="rtl"] body.mescura-builder-page #mescura-site .mescura-brand-copy {direction:rtl;text-align:right;}
body.mescura-builder-page #mescura-site .ms-fle-language-menu {left:auto!important;right:0!important;inset-inline-start:auto!important;inset-inline-end:auto!important;}
@media(max-width:1100px){
 body.mescura-builder-page #mescura-site .mescura-header-inner > .mescura-main-nav {order:4!important;}
 body.mescura-builder-page #mescura-site .mescura-header-inner > .mescura-menu-toggle {order:1!important;margin-left:auto!important;margin-right:0!important;flex-shrink:0;}
 body.mescura-builder-page #mescura-site .mescura-header-inner > .ms-fle-language-switcher {order:2!important;margin-left:10px!important;margin-right:0!important;}
}
@media(max-width:390px){
 body.mescura-builder-page #mescura-site .mescura-header-inner > .ms-fle-language-switcher {margin-left:5px!important;}
}
/* Mobile uses a compact, non-overflowing brand so the LAST control is fully visible. */
@media(max-width:520px){
 body.mescura-builder-page #mescura-site .mescura-header-inner>.mescura-brand{
   flex:0 1 auto!important;max-width:calc(100vw - 162px)!important;
   min-width:0!important;justify-content:flex-start!important;
   gap:6px!important;overflow:hidden;
 }
 body.mescura-builder-page #mescura-site .mescura-header-inner .mescura-brand-mark{
   width:32px!important;height:32px!important;min-width:32px!important;flex:0 0 32px!important;
 }
 body.mescura-builder-page #mescura-site .mescura-header-inner .mescura-brand-copy{
   min-width:0!important;max-width:100%!important;overflow:hidden!important;
 }
 body.mescura-builder-page #mescura-site .mescura-header-inner .mescura-brand-copy strong{
   font-size:clamp(11px,3.2vw,14px)!important;line-height:1.2!important;
   white-space:nowrap!important;letter-spacing:.05em!important;
 }
 body.mescura-builder-page #mescura-site .mescura-header-inner .mescura-brand-copy small {display:none!important;}
 body.mescura-builder-page #mescura-site .mescura-header-inner>.mescura-menu-toggle{
   min-width:40px!important;width:40px!important;max-width:40px!important;
   min-height:40px!important;height:40px!important;margin-left:auto!important;padding:6px!important;
 }
 body.mescura-builder-page #mescura-site .mescura-header-inner>.mescura-menu-toggle b{display:none!important;}
 body.mescura-builder-page #mescura-site .mescura-header-inner>.ms-fle-language-switcher{margin-left:6px!important;}
 body.mescura-builder-page #mescura-site .ms-fle-language-button{min-height:38px!important;min-width:54px!important;padding:6px 8px!important;gap:4px!important;}
}

/* v1.2.2 | MESCURA approved concept #8: brand-colored flag dropdown.
 * Scope only the MESCURA language widget. Does not alter other header dropdowns.
 */
body.mescura-builder-page #mescura-site .mescura-header-inner > .ms-fle-language-switcher {
  direction:ltr!important;
  flex:0 0 auto!important;
}
body.mescura-builder-page #mescura-site .ms-fle-language-button {
  min-height:42px!important;
  min-width:95px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  padding:8px 11px!important;
  border-radius:12px!important;
  border:1px solid #07507a!important;
  background:linear-gradient(150deg,#125f90 0%,#074570 85%)!important;
  color:#fff!important;
  font-family:Manrope,'Noto Sans Arabic',system-ui,sans-serif!important;
  font-weight:800!important;
  font-size:12px!important;
  box-shadow:0 5px 14px rgba(8,60,94,.16)!important;
  transition:background .18s ease,box-shadow .18s ease,transform .18s ease;
}
body.mescura-builder-page #mescura-site .ms-fle-language-button:hover,
body.mescura-builder-page #mescura-site .ms-fle-language-button[aria-expanded="true"] {
  background:linear-gradient(150deg,#1975a8,#073a62)!important;
  border-color:#073a62!important;
  color:#fff!important;
  box-shadow:0 8px 20px rgba(8,60,94,.21)!important;
}
body.mescura-builder-page #mescura-site .ms-fle-language-button:focus-visible {
  outline:3px solid #56b4d8!important;
  outline-offset:3px!important;
}
body.mescura-builder-page #mescura-site .ms-fle-language-globe {
  display:inline-flex!important;align-items:center;justify-content:center;
  flex:0 0 16px!important;color:#fff!important;line-height:0!important;
}
body.mescura-builder-page #mescura-site .ms-fle-language-globe svg {display:block!important;width:16px!important;height:16px!important;}
body.mescura-builder-page #mescura-site .ms-fle-flag {
  display:inline-flex!important;flex:0 0 21px!important;
  width:21px!important;height:15px!important;align-items:center;justify-content:center;
  border-radius:2px;overflow:hidden;line-height:0!important;
  border:1px solid rgba(9,42,59,.11);background:#fff;
}
body.mescura-builder-page #mescura-site .ms-fle-flag svg {
  width:100%!important;height:100%!important;display:block!important;
}
body.mescura-builder-page #mescura-site .ms-fle-language-button .ms-fle-flag {
  border-color:rgba(255,255,255,.65);
}
body.mescura-builder-page #mescura-site .ms-fle-language-code,
body.mescura-builder-page #mescura-site .ms-fle-language-caret {
  color:#fff!important;line-height:1!important;white-space:nowrap!important;
}
body.mescura-builder-page #mescura-site .ms-fle-language-caret {
  font-size:11px!important;opacity:.9;
  transition:transform .18s ease;
}
body.mescura-builder-page #mescura-site .ms-fle-language-button[aria-expanded="true"] .ms-fle-language-caret{transform:rotate(180deg);}
body.mescura-builder-page #mescura-site .ms-fle-language-menu {
  position:absolute!important;top:calc(100% + 9px)!important;
  left:auto!important;right:0!important;
  width:208px!important;min-width:208px!important;
  max-width:min(208px,calc(100vw - 20px))!important;
  padding:7px!important;
  border-radius:14px!important;
  border:1px solid #b5d4e4!important;
  background:#fff!important;
  box-shadow:0 17px 38px rgba(8,45,68,.20)!important;
  z-index:10006!important;
  overflow:hidden;
  direction:ltr!important;
}
body.mescura-builder-page #mescura-site .ms-fle-language-option {
  display:flex!important;align-items:center!important;justify-content:flex-start!important;
  gap:11px!important;width:100%!important;min-height:42px!important;
  box-sizing:border-box!important;margin:0!important;padding:10px 11px!important;
  border-radius:8px!important;
  background:#fff!important;color:#193c4f!important;
  font-family:Manrope,'Noto Sans Arabic',system-ui,sans-serif!important;
  font-size:13px!important;font-weight:700!important;line-height:1.3!important;
  text-decoration:none!important;text-align:left!important;
  transition:background .15s ease,color .15s ease;
}
body.mescura-builder-page #mescura-site .ms-fle-language-option .ms-fle-language-label{
  color:inherit!important;white-space:nowrap!important;flex:1 1 auto;
}
body.mescura-builder-page #mescura-site .ms-fle-language-option[lang="ar"] .ms-fle-language-label{
  direction:rtl!important;text-align:left!important;font-family:'Noto Sans Arabic',Manrope,Tahoma,sans-serif!important;
}
body.mescura-builder-page #mescura-site .ms-fle-language-option[aria-current="true"] {
  background:linear-gradient(120deg,#13658e,#07466e)!important;
  color:#fff!important;
}
body.mescura-builder-page #mescura-site .ms-fle-language-option:not([aria-current="true"]):hover,
body.mescura-builder-page #mescura-site .ms-fle-language-option:not([aria-current="true"]):focus-visible {
  background:#eaf7fc!important;color:#0b4c71!important;
}
body.mescura-builder-page #mescura-site .ms-fle-language-option:focus-visible {
  outline:2px solid #2495be!important;outline-offset:-2px!important;
}
body.mescura-builder-page #mescura-site .ms-fle-language-check{font-size:15px!important;font-weight:800!important;color:inherit!important;}
@media(max-width:1100px){
 body.mescura-builder-page #mescura-site .ms-fle-language-button {min-height:39px!important;min-width:84px!important;gap:5px!important;padding:7px 9px!important;}
 body.mescura-builder-page #mescura-site .ms-fle-language-globe{display:none!important;}
}
@media(max-width:520px){
 body.mescura-builder-page #mescura-site .ms-fle-language-button{
   min-width:72px!important;min-height:38px!important;
   gap:5px!important;padding:6px 8px!important;
 }
 body.mescura-builder-page #mescura-site .ms-fle-flag{flex-basis:19px!important;width:19px!important;height:14px!important;}
 body.mescura-builder-page #mescura-site .ms-fle-language-menu{width:200px!important;min-width:200px!important;}
}
