/* ===== TranslatePress Floating Switcher - Pro Mobile Friendly ===== */

/* خلي السويتشر تحت - بشكل كبسولة */
.trp-floating-switcher.trp-switcher-position-top{
  top: auto !important;
  left: auto !important;
  right: 16px !important;
  bottom: 110px !important;   /* فوق sticky add to cart / شريط الموبايل */
  z-index: 999999 !important;

  background: transparent !important;
  border: 0 !important;
}

/* على RTL لو تحب يكون يسار بدل يمين، علّق السطرين دول وشغّل دول:
html[dir="rtl"] .trp-floating-switcher.trp-switcher-position-top{
  right:auto !important;
  left: 16px !important;
}
*/

/* شكل زر اللغة نفسه */
.trp-floating-switcher .trp-language-switcher-inner > a.trp-language-item{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  min-width: 54px !important;
  height: 44px !important;
  padding: 0 14px !important;

  border-radius: 999px !important;
  border: 1px solid rgba(0,0,0,.10) !important;
  background: rgba(0,0,0,.78) !important;
  color: #fff !important;

  font-weight: 800 !important;
  letter-spacing: .3px !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.18) !important;
  backdrop-filter: blur(8px) !important;
}

/* Hover لطيف */
.trp-floating-switcher .trp-language-switcher-inner > a.trp-language-item:hover{
  background: rgba(0,0,0,.90) !important;
}

/* إخفاء أي عناصر داخلية غير لازمة */
.trp-floating-switcher .trp-language-item-flag{
  display:none !important;
}

/* قائمة اللغات (الدروب داون) */
.trp-floating-switcher .trp-switcher-dropdown-list{
  position: absolute !important;
  right: 0 !important;
  bottom: calc(100% + 10px) !important;
  top: auto !important;

  background: #fff !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.14) !important;
  overflow: hidden !important;
  min-width: 160px !important;
}

/* عناصر القائمة */
.trp-floating-switcher .trp-switcher-dropdown-list a{
  display:block !important;
  padding: 12px 14px !important;
  color: #111 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}
.trp-floating-switcher .trp-switcher-dropdown-list a:hover{
  background: rgba(0,0,0,.04) !important;
}

/* ===== سلوك الظهور عند السكروول (هنضيف class بالـ JS) ===== */
.trp-floating-switcher.trp-smart-hide{
  opacity: 0 !important;
  transform: translateY(10px) !important;
  pointer-events: none !important;
  transition: .25s ease !important;
}
.trp-floating-switcher.trp-smart-show{
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
  transition: .25s ease !important;
}

/* موبايل: نزوده لفوق شوية لو عندك sticky add-to-cart */
@media (max-width: 767px){
  .trp-floating-switcher.trp-switcher-position-top{
    bottom: 140px !important;
    right: 12px !important;
  }
}
