/* Shared language controls and localized layouts. */
.mitso-language-suggestion { position: fixed; z-index: 90; width: 280px; max-width: calc(100vw - 32px); padding: 20px; border: 1px solid #cfdaea; border-radius: 15px; background: #fff; color: #032244; box-shadow: 0 0 0 3px rgba(220,230,243,.25), 0 16px 48px -12px rgba(3,34,68,.24); text-align: start; animation: mitso-language-reveal .2s ease-out; }
.mitso-language-suggestion[lang="ar"] { font-family: "Noto Sans Arabic", Tahoma, sans-serif; }
.mitso-language-suggestion[lang="ja"] { font-family: "Noto Sans JP", sans-serif; }
.mitso-suggestion-title { padding-inline-end: 24px; margin-bottom: 14px; color: #032244; font-size: 21px; font-weight: 700; line-height: 1.6; }
.mitso-suggestion-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: #64748b; cursor: pointer; }
.mitso-suggestion-close svg { width: 18px; height: 18px; }
.mitso-suggestion-close:hover { background: #f0f4f8; color: #032244; }
.mitso-suggestion-accept { min-height: 44px; padding: 10px 16px; border: 0; border-radius: 7px; background: #2468ff; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.mitso-suggestion-accept:hover { background: #1858df; }
.mitso-language-suggestion button:focus-visible { outline: 2px solid #2468ff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .mitso-language-suggestion { animation: none; } }
.mitso-language { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; color: #032244; }
.mitso-language button { font: inherit; color: inherit; cursor: pointer; }
.mitso-language-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 8px 11px; border: 0; border-radius: 4px; background: transparent; box-shadow: none; transition: color .16s ease; }
.mitso-language-trigger:hover, .mitso-language-trigger[aria-expanded="true"] { color: #1858df; background: transparent; box-shadow: none; }
.mitso-language-globe { width: 19px; height: 19px; }
.mitso-language-current { font-family: "Satoshi", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .035em; }
.mitso-language-chevron { width: 13px; height: 13px; color: #6d7d90; transition: transform .16s ease; }
.mitso-language-trigger[aria-expanded="true"] .mitso-language-chevron { transform: rotate(180deg); }
.mitso-language-menu { position: absolute; top: calc(100% + 12px); inset-inline-end: 0; z-index: 80; width: 570px; max-width: calc(100vw - 32px); display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; padding: 11px; border: 1px solid #cfdaea; border-radius: 15px; background: #fff; box-shadow: 0 0 0 3px rgba(220,230,243,.32), 0 18px 50px -10px rgba(3,34,68,.22), 0 4px 12px rgba(3,34,68,.06); animation: mitso-language-reveal .14s ease-out; }
.mitso-language-menu[hidden] { display: none; }
.mitso-language-menu button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 56px; padding: 10px; border: 1px solid #edf0f5; border-radius: 8px; background: transparent; text-align: start; transition: background .14s ease, border-color .14s ease; }
.mitso-language-menu button:hover { background: #f4f6f9; }
.mitso-language-menu button[aria-checked="true"] { background: #edf3fc; border-color: #c6d8f4; color: #164b97; }
.mitso-language-code { width: 23px; flex-shrink: 0; font: 600 10px "Satoshi", sans-serif; letter-spacing: .04em; color: #8390a2; }
.mitso-language-name { flex: 1; text-align: start; font-size: 14px; font-weight: 500; }
.mitso-language-name[lang="ar"] { font-family: "Noto Sans Arabic", Tahoma, sans-serif; }
.mitso-language-name[lang="ja"] { font-family: "Noto Sans JP", sans-serif; }
.mitso-language-menu button svg { width: 17px; height: 17px; opacity: 0; }
.mitso-language-menu button[aria-checked="true"] svg { opacity: 1; }
.mitso-language button:focus-visible { outline: 2px solid #2468ff; outline-offset: 2px; }
@keyframes mitso-language-reveal { from { opacity: 0; translate: 0 -4px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .mitso-language-menu { animation: none; } .mitso-language-chevron { transition: none; } }
html[lang="ar"] body, html[lang="ar"] :is(h1,h2,h3,h4,h5,h6) { font-family: "Noto Sans Arabic", Tahoma, sans-serif; }
html[lang="ja"] body, html[lang="ja"] :is(h1,h2,h3,h4,h5,h6) { font-family: "Noto Sans JP", sans-serif; }
html[lang="ar"] :is(h1,h2,h3,h4,h5,h6), html[lang="ja"] :is(h1,h2,h3,h4,h5,h6) { letter-spacing: normal; }
html[lang="ar"] .mitso-hero-title { line-height: 1.5; }
html[lang="ja"] .mitso-hero-title { line-height: 1.4; font-size: clamp(2.1rem, 4.4vw, 4.4rem); }
html[lang="ar"] :is(p,.mitso-bubble,.mitso-composer-text) { line-height: 1.9; }
html[lang="ja"] :is(p,.mitso-bubble,.mitso-composer-text) { line-height: 1.85; overflow-wrap: anywhere; }
html[lang="ar"] :is(.mitso-type-heading,#portal-overview h3,.mitso-crm-copy h2,.mitso-widget-copy h2) { line-height: 1.5; }
html[lang="ja"] :is(.mitso-type-heading,#portal-overview h3) { line-height: 1.45; }
html[dir="rtl"] .text-left { text-align: right; }
html[dir="rtl"] :is(.mitso-chat-mock,.mitso-composer-text,.site-footer-column,.site-footer-brand) { text-align: start; }
html[dir="rtl"] .mitso-msg-in { align-self: flex-start; }
html[dir="rtl"] .mitso-msg-out { align-self: flex-end; }
html[dir="rtl"] .mitso-msg-in .mitso-msg-name { left: auto; right: 4px; }
html[dir="rtl"] .mitso-msg-out .mitso-msg-name { right: auto; left: 4px; }
html[dir="rtl"] .mitso-bubble-in { border-bottom-left-radius: 14px; border-bottom-right-radius: 4px; }
html[dir="rtl"] .mitso-bubble-out { border-bottom-right-radius: 14px; border-bottom-left-radius: 4px; }
html[dir="rtl"] .mitso-msg-time { direction: rtl; margin-left: 0; margin-right: 8px; }
html[dir="rtl"] .site-footer-email { direction: ltr; align-self: flex-start; }
html[dir="rtl"] .mitso-value-marquee { direction: ltr; }
html[dir="rtl"] .mitso-value-marquee-item { direction: rtl; }
html[dir="rtl"] .tabler--arrow-narrow-right { rotate: 180deg; }
html[dir="rtl"] .mitso-mobile-menu { right: auto; left: -100%; transition: left .3s ease; }
html[dir="rtl"] .mitso-mobile-menu.open { left: 0; }
html[lang="ar"] :is(.mitso-step-title,.integration-group-heading h2,.hs-accordion h6) { line-height: 1.6; }
html[lang="ja"] :is(.mitso-step-title,.integration-group-heading h2,.hs-accordion h6) { line-height: 1.5; }
html[dir="rtl"] :is(.mitso-reason-card,.mitso-option,.mitso-custom-select-trigger,.mitso-custom-select-menu button) { text-align: start; }
html[dir="rtl"] .mitso-suboptions { margin: 2px 20px 2px 0; padding-left: 0; padding-right: 16px; border-left: 0; border-right: 1px solid #e5e7eb; }
html[dir="rtl"] .mitso-wizard-nav [data-back] svg { rotate: 180deg; }
html[dir="rtl"] .integration-capabilities article + article { border-left: 0; border-right: 1px solid #dbe2ee; }
html[dir="rtl"] .mitso-team-size-option span { direction: ltr; }
@media (min-width: 768px) and (max-width: 1023px) {
  html[dir="rtl"] .integration-capabilities article:nth-child(odd), html[dir="rtl"] .integration-capabilities-three article + article { border-right: 0; }
}
@media (max-width: 559px) {
  .mitso-language-menu { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1100px) and (min-width: 1024px) {
  .mitso-site-header #navbar li { margin-inline: 8px; }
  .mitso-site-header > .container > div > div:last-child { gap: 12px; }
}
@media (max-width: 767px) {
  .mitso-language-menu { position: fixed; top: 76px; inset-inline: 16px; width: auto; max-width: none; }
  html[dir="rtl"] .integration-capabilities article + article { border-right: 0; }
  .mitso-language-trigger { padding-inline: 7px; min-width: 74px; min-height: 44px; }
  html[lang="ja"] .mitso-hero-title { font-size: clamp(1.7rem,7vw,2.5rem); }
  html[lang="ar"] .mitso-hero-title { font-size: clamp(1.85rem,8vw,2.55rem); }
  html:not([lang="en"]) .mitso-ai-tab-btn { flex: 1 1 0; white-space: normal; overflow-wrap: anywhere; padding: 9px 6px; font-size: 12px; line-height: 1.65; }
}
