/* Language selector: independent of the active theme and page builder. */
.cg-language-switcher {
  min-width: 128px;
  max-width: 160px;
  height: 44px;
  padding-inline: 12px 30px;
  border: 1px solid #9eaab5 !important;
  border-radius: 3px;
  background-color: #fff !important;
  color: #17212b !important;
  font: 600 14px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  outline: none;
}

.cg-language-switcher:hover,
.cg-language-switcher:focus-visible {
  border-color: #174574 !important;
  box-shadow: 0 0 0 3px rgba(23, 69, 116, .16);
}

.cg-language-switcher.cgml-floating-selector {
  display: block !important;
  visibility: visible !important;
  position: fixed !important;
  z-index: 100000 !important;
  top: 14px !important;
  right: 180px !important;
  left: auto !important;
  margin: 0 !important;
}

/* Remove any remnants of the previous automatic translation widget. */
.goog-te-banner-frame,
.goog-te-gadget,
.gt_switcher_wrapper,
.gtranslate_wrapper {
  display: none !important;
}

body { top: 0 !important; }

/* Arabic right-to-left layout. URLs, model numbers, email and phone stay readable. */
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .cg-global-header,
html[dir="rtl"] .cg-global-footer,
html[dir="rtl"] .cg-mobile-panel,
html[dir="rtl"] main,
html[dir="rtl"] form {
  direction: rtl;
}

html[dir="rtl"] .cg-header-inner,
html[dir="rtl"] .cg-header-actions,
html[dir="rtl"] .rr-actions,
html[dir="rtl"] .pg-actions,
html[dir="rtl"] .elementor-button-content-wrapper {
  direction: rtl;
}

html[dir="rtl"] .cg-main-nav {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .cg-mobile-panel nav,
html[dir="rtl"] input:not([type="email"]):not([type="tel"]),
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  text-align: right;
}

html[dir="rtl"] .elementor-icon-list-icon,
html[dir="rtl"] .elementor-button-icon {
  margin-left: 8px;
  margin-right: 0 !important;
}

html[dir="rtl"] a[href^="mailto:"],
html[dir="rtl"] a[href^="tel:"],
html[dir="rtl"] a[href*="wa.me"],
html[dir="rtl"] a[href*="whatsapp"],
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] .cg-no-rtl {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

@media (max-width: 980px) {
  .cg-language-switcher {
    min-width: 112px;
    width: 112px;
    height: 42px;
    padding-inline: 9px 24px;
    font-size: 13px;
  }

  html[dir="rtl"] .cg-header-actions {
    margin-left: 0;
    margin-right: auto;
  }

  .cg-language-switcher.cgml-mobile-selector {
    display: block !important;
    visibility: visible !important;
    position: fixed !important;
    z-index: 100000 !important;
    top: 14px !important;
    left: 50% !important;
    right: auto !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
  }
}

@media (max-width: 420px) {
  .cg-language-switcher {
    min-width: 112px;
    width: 112px;
    padding-inline: 6px 14px;
    font-size: 11px;
  }
}
