/* Keep language selection separate from Support while matching the header control. */
.site-footer .footer-language-bar {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
  padding: 0 0 24px;
  border-top: 1px solid rgb(255 255 255 / 16%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.site-footer .footer-language-bar .language-switcher {
  position: relative;
  width: auto;
  flex: 0 0 auto;
  margin-top: 18px;
}

.site-footer .footer-language-bar .global-link {
  display: inline-flex;
  width: auto;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgb(255 255 255 / 44%);
  border-radius: 999px;
  color: #fff;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

/* Keep the Firewoof lockup readable when the Arabic page is right-to-left. */
html[lang="ar"] .brand-link,
html[lang="ar"] .footer-brand-logo--en,
html[lang="ar"] .brand-link-text,
html[lang="ar"] .footer-brand-logo--en .brand-type {
  direction: ltr;
  text-align: left;
}

html[lang="ar"] .brand-link-text small,
html[lang="ar"] .footer-brand-logo--en .brand-type small {
  font-size: 0;
}

html[lang="ar"] .brand-link-text small {
  display: none;
}

html[lang="ar"] .brand-link-text small::after,
html[lang="ar"] .footer-brand-logo--en .brand-type small::after {
  content: "AI fire and smoke guard";
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.site-footer .footer-language-bar .global-link svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.site-footer .footer-language-bar .language-chevron {
  margin-left: 0;
  transition: transform 160ms ease;
}

.site-footer .footer-language-bar .language-switcher[open] .language-chevron {
  transform: rotate(180deg);
}

.site-footer .footer-language-bar .language-menu {
  position: absolute;
  z-index: 20;
  top: auto;
  right: auto;
  bottom: calc(100% + 10px);
  left: 0;
  display: grid;
  width: 230px;
  margin: 0;
  padding: 8px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: 18px;
  background: #111;
  box-shadow: 0 18px 48px rgb(0 0 0 / 28%);
}

.site-footer .footer-language-bar .language-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
}

.site-footer .footer-language-bar .language-menu a:hover,
.site-footer .footer-language-bar .language-menu a:focus-visible,
.site-footer .footer-language-bar .language-menu a[aria-current="page"] {
  background: rgb(255 255 255 / 10%);
}

.site-footer .footer-language-bar .language-menu small {
  color: #aaa49c;
  font-size: 0.7rem;
  font-weight: 500;
}

html[dir="rtl"] .site-footer .footer-language-bar {
  justify-content: flex-end;
}

html[dir="rtl"] .site-footer .footer-language-bar .language-menu {
  right: 0;
  left: auto;
}

@media (max-width: 809.98px) {
  .site-footer .footer-language-bar {
    width: min(calc(100% - 40px), 540px);
    justify-content: center;
  }

  .site-footer .footer-language-bar .language-switcher {
    width: auto;
  }

  .site-footer .footer-language-bar .language-menu {
    position: absolute;
    width: 230px;
    margin: 0;
    box-shadow: 0 18px 48px rgb(0 0 0 / 28%);
  }
}

/* Keep official store badges and the English lockup inside the fixed footer column. */
.site-footer .footer-grid--version-a .footer-downloads .store-badges img {
  flex: 0 0 auto;
  width: auto !important;
  max-width: none !important;
  height: 38px !important;
  object-fit: contain !important;
}

.site-footer .footer-grid--version-a .footer-brand-logo--en {
  box-sizing: border-box;
  width: min(100%, 270px);
  max-width: 100%;
  min-width: 0;
  padding: 8px 12px;
  gap: 10px;
  overflow: hidden;
}

.site-footer .footer-grid--version-a .footer-brand-logo--en .brand-mark {
  width: 56px !important;
  height: 56px !important;
  flex: 0 0 56px;
}

.site-footer .footer-grid--version-a .footer-brand-logo--en .brand-type {
  min-width: 0;
  overflow: hidden;
  direction: ltr;
  text-align: left;
}

.site-footer .footer-grid--version-a .footer-brand-logo--en .brand-type strong {
  display: block;
  overflow: hidden;
  color: #24211e !important;
  font-size: clamp(1.4rem, 2.1vw, 2rem) !important;
  line-height: 1.1;
  white-space: nowrap;
  text-overflow: clip;
}

.site-footer .footer-grid--version-a .footer-brand-logo--en .brand-type small {
  display: block;
  overflow: hidden;
  color: #716b63 !important;
  font-size: .66rem !important;
  line-height: 1.3;
  white-space: nowrap;
}

@media (max-width: 809.98px) {
  .site-footer .footer-grid--version-a .footer-downloads .store-badges img {
    height: 36px !important;
  }
}
