.ucl-language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  width: 62px;
  height: 34px;
  margin: 0;
  align-items: center;
  align-self: center;
  justify-content: center;
  line-height: 1;
}

#pxl-header-elementor .ucl-language-anchor {
  position: relative !important;
  overflow: visible !important;
}

#pxl-header-elementor .ucl-language-anchor > .ucl-language-switcher {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
}

#pxl-header-elementor .ucl-language-anchor--social > .ucl-language-switcher {
  right: calc(100% + 28px);
}

#pxl-header-elementor .ucl-language-anchor--plan > .ucl-language-switcher {
  right: calc(100% + 28px);
}

.ucl-language-switcher__button {
  display: inline-flex !important;
  width: 62px !important;
  min-width: 62px !important;
  max-width: 62px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  color: #273653 !important;
  cursor: pointer;
  appearance: none;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  font-family: Arial, "Helvetica Neue", sans-serif;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 18px !important;
  letter-spacing: .02em;
  text-transform: none !important;
  transform: none !important;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.ucl-language-switcher__button:hover,
.ucl-language-switcher__button:focus-visible {
  border-color: transparent !important;
  background: transparent !important;
  color: #f37f30 !important;
  outline: none;
}

.ucl-language-switcher__button:focus-visible {
  box-shadow: none !important;
  outline: 1px dashed currentColor;
  outline-offset: 3px;
}

.ucl-language-switcher__icon {
  display: inline-flex !important;
  flex: 0 0 18px !important;
  width: 18px;
  height: 18px;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  transform: none !important;
  align-items: center !important;
  align-self: center !important;
  justify-content: center !important;
  vertical-align: middle !important;
}

.ucl-language-switcher__icon svg {
  display: block;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.ucl-language-switcher__label {
  display: inline-flex !important;
  flex: 0 0 22px !important;
  width: 22px;
  min-width: 22px;
  height: 18px;
  margin: 0 !important;
  padding: 0 !important;
  position: static !important;
  transform: none !important;
  align-items: center !important;
  align-self: center !important;
  justify-content: center !important;
  line-height: 18px !important;
  text-align: center;
  vertical-align: middle !important;
}

@media (max-width: 1024px) {
  .ucl-language-switcher { width: 58px; height: 32px; margin-inline: 0; }
  .ucl-language-switcher__button {
    gap: 11px !important;
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    font-size: 12px !important;
  }

  .ucl-language-switcher__icon {
    flex-basis: 17px !important;
    width: 17px;
    height: 17px;
  }

  .ucl-language-switcher__icon svg {
    width: 16px;
    height: 16px;
  }

  .ucl-language-switcher__label {
    flex-basis: 20px !important;
    width: 20px;
    min-width: 20px;
  }
}

@media (max-width: 767px) {
  #pxl-header-elementor .ucl-language-anchor > .ucl-language-switcher {
    right: calc(100% + 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ucl-language-switcher__button { transition: none; }
}

/* English text is materially longer than the Chinese source. These rules
 * preserve the approved compositions while allowing translated copy to wrap
 * without escaping fixed-height cards or pushing Header controls to a new row. */
html[lang="en"] .ucl-home h1,
html[lang="en"] .ucl-home h2,
html[lang="en"] .ucl-home h3,
html[lang="en"] .ucl-home p,
html[lang="en"] .ucl-home a,
html[lang="en"] .ucl-home li,
html[lang="en"] #pxl-footer-elementor,
html[lang="en"] #pxl-footer-elementor * {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

@media (min-width: 1200px) {
  html[lang="en"] #pxl-header-elementor .pxl-nav-menu > li > a {
    padding-inline: 11px !important;
    white-space: nowrap;
    font-size: 13px !important;
  }

  html[lang="en"] #pxl-header-elementor .ucl-language-anchor > .ucl-language-switcher {
    right: calc(100% + 28px);
  }
}

html[lang="en"] .ucl-contract-services__rail,
html[lang="en"] .ucl-service-detail--us_company .ucl-contract-services__rail {
  height: auto !important;
  min-height: 0 !important;
}

html[lang="en"] .ucl-contract-services__rail article,
html[lang="en"] .ucl-service-detail--us_company .ucl-contract-services__rail article {
  height: auto !important;
  min-height: 240px !important;
}

html[lang="en"] .ucl-contract-services__rail article {
  padding: 24px 18px 22px !important;
  gap: 8px !important;
}

html[lang="en"] .ucl-contract-services__rail h3,
html[lang="en"] .ucl-native .ucl-contract-services__rail h3 {
  max-width: 100% !important;
  font-size: 19px !important;
  line-height: 1.22 !important;
}

html[lang="en"] .ucl-contract-services__rail p {
  margin-top: 11px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

html[lang="en"] .ucl-contract-services__rail img {
  max-width: 34px !important;
  max-height: 34px !important;
}

html[lang="en"] .ucl-contract-customers,
html[lang="en"] .ucl-contract-customers__grid {
  min-height: 730px !important;
}

html[lang="en"] .ucl-contract-customers__intro {
  padding-left: 190px !important;
}

html[lang="en"] .ucl-contract-customers__intro h2,
html[lang="en"] .ucl-native .ucl-contract-customers__intro h2 {
  font-size: 48px !important;
  line-height: 1.08 !important;
}

html[lang="en"] .ucl-contract-testimonials article {
  min-height: 390px !important;
  padding: 44px 42px 36px !important;
}

html[lang="en"] .ucl-contract-testimonials article > p {
  line-height: 1.75 !important;
}

html[lang="en"] .ucl-contract-testimonials strong {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

html[lang="en"] .ucl-contract-advantages__grid article {
  height: auto !important;
  min-height: 590px !important;
  padding: 58px 42px 46px !important;
}

html[lang="en"] .ucl-contract-advantages__grid .ucl-state-icon,
html[lang="en"] .ucl-contract-advantages__grid .ucl-state-icon img,
html[lang="en"] .ucl-native .ucl-contract-advantages__grid .ucl-state-icon > .elementor-widget-image,
html[lang="en"] .ucl-native .ucl-contract-advantages__grid .ucl-state-icon > .elementor-widget-image img {
  width: 130px !important;
  height: 130px !important;
}

html[lang="en"] .ucl-contract-advantages__grid h3,
html[lang="en"] .ucl-native .ucl-contract-advantages__grid h3 {
  margin-top: 38px !important;
  font-size: 21px !important;
  line-height: 1.35 !important;
}

html[lang="en"] .ucl-contract-advantages__grid p {
  margin-top: 22px !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}

html[lang="en"] :is(
  .ucl-service-card,
  .ucl-intel-card,
  .ucl-process__grid article,
  .ucl-lh-advantages__cards article,
  .ucl-service-audience-card,
  .ucl-resource-card
) {
  height: auto !important;
  overflow: visible;
}

html[lang="en"] #pxl-footer-elementor .pxl-link--text,
html[lang="en"] #pxl-footer-elementor a,
html[lang="en"] #pxl-footer-elementor p,
html[lang="en"] #pxl-footer-elementor li {
  white-space: normal !important;
  line-height: 1.55 !important;
}

@media (max-width: 1199px) {
  html[lang="en"] .ucl-contract-services__rail {
    height: auto !important;
    min-height: 0 !important;
  }

  html[lang="en"] .ucl-contract-services__rail article {
    height: auto !important;
    min-height: 220px !important;
  }

  html[lang="en"] .ucl-contract-advantages__grid article {
    min-height: 560px !important;
    padding-inline: 28px !important;
  }
}

@media (max-width: 767px) {
  html[lang="en"] .ucl-contract-services {
    min-height: 0 !important;
  }

  html[lang="en"] .ucl-contract-services__rail {
    min-height: 0 !important;
  }

  html[lang="en"] .ucl-contract-services__rail article {
    min-height: 190px !important;
  }

  html[lang="en"] .ucl-contract-services__rail h3,
  html[lang="en"] .ucl-native .ucl-contract-services__rail h3 {
    font-size: 15px !important;
  }

  html[lang="en"] .ucl-contract-customers,
  html[lang="en"] .ucl-contract-customers__grid {
    min-height: 0 !important;
  }

  html[lang="en"] .ucl-contract-customers__intro {
    padding-left: 0 !important;
  }

  html[lang="en"] .ucl-contract-testimonials article {
    min-height: 0 !important;
  }

  html[lang="en"] .ucl-contract-advantages__grid article {
    min-height: 540px !important;
  }

  html[lang="en"] .ucl-service-detail--compact .ucl-contract-services {
    min-height: 0 !important;
  }
}
