.vit-language {
  position: relative;
  flex: 0 0 auto;
  color: #162442;
  font: 700 .8125rem/1.25 system-ui, sans-serif;
}

.vit-language > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  min-block-size: 44px;
  min-inline-size: 44px;
  padding-inline: .5rem;
  border: 1px solid #dfe4ed;
  border-radius: .5rem;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}

.vit-language > summary::-webkit-details-marker { display: none; }
.vit-language svg { inline-size: 1.25rem; block-size: 1.25rem; }

.vit-language > ul {
  position: absolute;
  z-index: 51;
  inset-block-start: calc(100% + .5rem);
  inset-inline-end: 0;
  min-inline-size: 10rem;
  padding: .375rem;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid #dfe4ed;
  border-radius: .65rem;
  box-shadow: 0 .75rem 2rem #101e4029;
}

.vit-language a {
  display: block;
  padding: .65rem .75rem;
  color: inherit;
  border-radius: .375rem;
  text-align: start;
  text-decoration: none;
}

.vit-language a:hover,
.vit-language a:focus-visible,
.vit-language a[aria-current] { background: #eef1f7; }

html[lang="ar"] body,
html[lang="ar"] body :is(h1,h2,h3,h4,h5,p,li,label,input,select,textarea,button,summary) {
  font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: normal;
}

html[lang="zh-Hans"] body,
html[lang="zh-Hans"] body :is(h1,h2,h3,h4,h5,p,li,label,input,select,textarea,button,summary) {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-break: strict;
  word-break: normal;
  letter-spacing: normal;
}

html[lang="ru"] :is(h1,h2,h3,h4,p,a,button) { overflow-wrap: anywhere; }
html[lang="fr"] :is(h1,h2,h3,h4,p,a,button) { overflow-wrap: anywhere; }
body:has(.vit-language) .header-actions { flex-shrink: 0; }
body:has(.vit-language) .header-cta { white-space: nowrap; overflow-wrap: normal; }
body:has(.vit-language) .desktop-nav { gap: clamp(.5rem, 1vw, 1.25rem); }
body:has(.vit-language) .header-actions .phone { min-inline-size: 2.75rem; justify-content: center; }
body:has(.vit-language) .header-actions .phone > span { display: none; }
body:has(.vit-language).vit-home .header-inner { gap: clamp(.5rem, 1.35vw, 1.25rem); }
html:not([lang="en"]) .hero h1 { line-height: 1.12; }
html[lang="ar"] .hero h1 { line-height: 1.24; }
html:not([lang="en"]) .hero h1 { font-size: clamp(2.125rem, 4.4vw, 4.4rem); }
html:not([lang="en"]) :is(label, button, select) { max-inline-size: 100%; }
html[dir="rtl"] :is(input[type="tel"], input[type="email"], output) { direction: ltr; text-align: start; }
html[dir="rtl"] select {
  background-position: left .5rem center;
  padding-inline-end: 2rem;
  padding-inline-start: .75rem;
}
html[dir="rtl"] :is(.vit-home, .visa-refresh) :is(.skip-link, .country-body, .document-item, .contact-details) { text-align: start; }
html[dir="rtl"] :is(.vit-home, .visa-refresh) .skip-link { left: auto; inset-inline-start: 1rem; }
html[dir="rtl"] .visa-refresh .hero::after {
  background: linear-gradient(270deg, rgba(249,249,255,.98), rgba(249,249,255,.82) 43%, rgba(249,249,255,.35));
}
html[dir="rtl"] .vit-home .hero-shade {
  background: linear-gradient(270deg, #f7f9ffed, #f7f9ffcf 43%, #f7f9ff50);
}
html[dir="rtl"] :is(.vit-home, .visa-refresh) :is(a,button) svg:has(use[href="#arrow"]) { scale: -1 1; }
html[dir="rtl"] :is(.vit-home, .visa-refresh) .header-actions { margin-left: 0; margin-inline-start: auto; }
html[dir="rtl"] :is(a, button) .material-symbols-outlined[data-directional] { scale: -1 1; }

.visa-blog-filters,
.visa-purpose-options { flex-wrap: wrap; }

.visa-purpose-options > label {
  min-inline-size: min(8rem, 100%);
  overflow-wrap: anywhere;
}

@media (max-width: 1400px) {
  body.vit-home:has(.vit-language) .desktop-nav,
  body.visa-refresh:has(.vit-language) .desktop-nav { display: none; }
  body.vit-home:has(.vit-language) .menu-toggle,
  body.visa-refresh:has(.vit-language) .menu-toggle { display: flex; }
  body.vit-home:has(.vit-language) .menu-toggle {
    flex-direction: column;
    gap: 7px;
    inline-size: 22px;
    padding: 8px 0;
    border: 0;
    background: transparent;
  }
  body.vit-home:has(.vit-language) .menu-toggle span {
    inline-size: 100%;
    block-size: 1.5px;
    background: var(--ink);
  }
}

@media (max-width: 760px) {
  body.vit-home:has(.vit-language) .header-cta,
  body.visa-refresh:has(.vit-language) .header-cta { display: none; }
  html:not([lang="en"]) .hero h1 { font-size: clamp(2rem, 7.8vw, 3.5rem); }
  body.vit-home:has(.vit-language) .header-actions { gap: .5rem; }
}

@media (max-width: 390px) {
  .vit-language > summary span { display: none; }
  html:not([lang="en"]) .visa-refresh .contact-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  html:not([lang="en"]) .visa-refresh .contact-details :is(div, a, span) {
    min-inline-size: 0;
    overflow-wrap: anywhere;
  }
}
