.cn2g-lang-root {
  font-family: Arial, "Microsoft YaHei", sans-serif;
  color: #10202e;
}

.cn2g-lang-root.is-floating {
  position: fixed;
  right: 18px;
  top: 16px;
  z-index: 10020;
}

.cn2g-lang-root * {
  box-sizing: border-box;
}

html.cn2g-i18n-active,
html.cn2g-i18n-active body {
  overflow-x: clip;
}

html.cn2g-i18n-active body :where(main, section, article, aside, div, form, nav, header, footer) {
  min-width: 0;
}

html.cn2g-i18n-active main :where(h1, h2, h3, h4, p, li, label, span, strong, small, em, button, a) {
  overflow-wrap: break-word;
  word-break: normal;
}

html.cn2g-i18n-active main :where(h1, h2, h3, h4, strong, b) {
  word-break: keep-all;
}

html.cn2g-i18n-active .site-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

html.cn2g-i18n-active .brand {
  min-width: 0;
}

html.cn2g-i18n-active .brand span {
  min-width: 0;
}

html.cn2g-i18n-active .brand small {
  max-width: 142px;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.cn2g-i18n-active .nav {
  min-width: 0;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

html.cn2g-i18n-active .nav::-webkit-scrollbar {
  display: none;
}

html.cn2g-i18n-active .nav a {
  flex: 0 0 auto;
  max-width: 152px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.cn2g-i18n-active .header-actions {
  min-width: 0;
  flex: 0 1 auto;
}

html.cn2g-i18n-active .header-actions .ghost-button,
html.cn2g-i18n-active .header-actions .header-cta,
html.cn2g-i18n-active .header-actions .member-chip {
  flex: 0 1 auto;
  max-width: 112px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.cn2g-i18n-active main :where(.primary-button, .secondary-button, .ghost-button, .header-cta) {
  max-width: 100%;
  white-space: normal;
  line-height: 1.22;
}

html.cn2g-i18n-active :where(.hero-actions, .support-contact-actions, .recharge-actions, .purchase-send-actions, .admin-editor-actions) {
  flex-wrap: wrap;
}

html.cn2g-i18n-active :where(.card-grid, .stats-grid, .membership-grid, .support-grid, .process-grid, .case-grid, .language-grid, .help-category-grid, .trust-document-grid, .insurance-grid) {
  min-width: 0;
}

html.cn2g-i18n-active .calculator-page-steps span {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
}

html.cn2g-i18n-active .calculator-page-steps strong {
  min-width: 0;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.cn2g-lang-native-trigger {
  cursor: pointer;
  min-width: 146px;
  user-select: none;
}

.header-actions .cn2g-lang-native-trigger {
  display: inline-grid !important;
  grid-template-columns: 30px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 7px;
  min-width: 118px;
  max-width: 146px;
  min-height: 42px;
  overflow: hidden;
}

.header-actions .cn2g-lang-native-trigger small {
  display: none;
}

.cn2g-lang-native-trigger > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.cn2g-lang-native-trigger strong {
  min-width: 0;
  overflow: hidden;
  color: #10202e;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.05;
}

.cn2g-lang-native-trigger small {
  min-width: 0;
  overflow: hidden;
  color: #60717e;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.05;
}

.cn2g-lang-native-trigger b {
  color: #60717e;
  font-size: 15px;
  line-height: 1;
}

.cn2g-lang-trigger {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 9px;
  min-width: 158px;
  min-height: 42px;
  border: 1px solid rgba(16, 32, 46, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(16, 32, 46, 0.12);
  padding: 6px 9px;
  color: #10202e;
  cursor: pointer;
  text-align: left;
}

.cn2g-lang-trigger strong,
.cn2g-lang-option strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.1;
}

.cn2g-lang-trigger em,
.cn2g-lang-option em {
  display: block;
  margin-top: 3px;
  color: #60717e;
  font-size: 11px;
  font-style: normal;
  line-height: 1.1;
}

.cn2g-lang-trigger b {
  color: #60717e;
  font-size: 15px;
  line-height: 1;
}

.cn2g-lang-native-trigger .cn2g-lang-flag {
  flex: 0 0 auto;
}

.cn2g-lang-flag {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 22px;
  overflow: hidden;
  border: 1px solid #d7e0e5;
  border-radius: 3px;
  background: #f4f7f8;
  color: #52616d;
  font-size: 9px;
  font-weight: 900;
}

.cn2g-lang-flag img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cn2g-lang-scrim {
  position: fixed;
  inset: 0;
  z-index: 10021;
  background: rgba(9, 21, 32, 0.36);
}

.cn2g-lang-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10022;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(390px, 100vw);
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid #dce5e8;
  box-shadow: -24px 0 80px rgba(16, 32, 46, 0.22);
}

.cn2g-lang-panel[hidden],
.cn2g-lang-scrim[hidden] {
  display: none !important;
}

.cn2g-lang-panel header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 22px 22px 16px;
  border-bottom: 1px solid #edf2f4;
}

.cn2g-lang-panel header p {
  margin: 0 0 6px;
  color: #087f7a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cn2g-lang-panel header h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
  color: #10202e;
}

.cn2g-lang-panel header button {
  width: 36px;
  height: 36px;
  border: 1px solid #d8e1e6;
  border-radius: 6px;
  background: #fff;
  color: #10202e;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.cn2g-lang-filter {
  padding: 14px 22px;
  border-bottom: 1px solid #edf2f4;
}

.cn2g-lang-filter input {
  width: 100%;
  height: 44px;
  border: 1px solid #cfdbe0;
  border-radius: 6px;
  background: #fff;
  color: #10202e;
  padding: 0 12px;
  font: inherit;
  outline: none;
}

.cn2g-lang-filter input:focus {
  border-color: #087f7a;
  box-shadow: 0 0 0 3px rgba(8, 127, 122, 0.14);
}

.cn2g-lang-list {
  overflow: auto;
  padding: 8px 12px 14px;
}

.cn2g-lang-option {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #fff;
  padding: 8px 10px;
  color: #10202e;
  cursor: pointer;
  text-align: left;
}

.cn2g-lang-option:hover,
.cn2g-lang-option:focus {
  outline: none;
  background: #f5f8f8;
  border-color: #d8e5e7;
}

.cn2g-lang-option.is-active {
  background: #e7f5f1;
  border-color: #89cabd;
}

.cn2g-lang-panel footer {
  min-height: 42px;
  border-top: 1px solid #edf2f4;
  color: #60717e;
  font-size: 12px;
  line-height: 1.5;
  padding: 12px 22px;
}

@media (max-width: 720px) {
  html.cn2g-i18n-active .site-header {
    grid-template-columns: auto auto;
  }

  html.cn2g-i18n-active .header-actions {
    justify-content: flex-end;
  }

  html.cn2g-i18n-active .header-actions .ghost-button,
  html.cn2g-i18n-active .header-actions .header-cta {
    max-width: 86px;
  }

  .header-actions .cn2g-lang-native-trigger {
    min-width: 78px;
    max-width: 108px;
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .header-actions .cn2g-lang-native-trigger b {
    display: none;
  }

  html.cn2g-i18n-active .calculator-page-steps span {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .cn2g-lang-root.is-floating {
    top: 10px;
    right: 10px;
  }

  .cn2g-lang-native-trigger {
    min-width: 0;
  }

  .cn2g-lang-native-trigger small,
  .cn2g-lang-native-trigger b {
    display: none;
  }

  .cn2g-lang-trigger {
    min-width: 126px;
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .cn2g-lang-trigger b,
  .cn2g-lang-trigger em {
    display: none;
  }
}
