/* Locale overrides are scoped to translated screens; the English design stays intact. */
.site-translated .am-title,.site-translated .am-title *,.site-translated .hero h1 {letter-spacing:-.035em!important}
.site-translated .am-nav-label {white-space:normal}
.site-translated .alp-contact-input {font-weight:500}
.site-translated .alp-copy strong,.site-translated .alp-copy>span {height:auto!important;white-space:normal!important}
.site-translated .alp-card {min-height:104px}
.site-translated .alp-action {white-space:normal;text-align:center}
.site-translated #am-calculator small,.site-translated #am-calculator summary,.site-translated #am-calculator label {overflow-wrap:break-word}
.site-translated .banking-login-shell .brand-wordmark {font-size:clamp(25px,3vw,44px);letter-spacing:-.035em}
.site-translated .banking-login-shell .telegram-auth-card .brand-wordmark {font-size:clamp(25px,3vw,34px)}
.site-translated .banking-login-shell .btn-primary,.site-translated .banking-login-shell .telegram-login-link {white-space:normal;line-height:1.25}
.site-language-control {position:absolute;inset-block-start:20px;inset-inline-end:24px;z-index:10}
.site-language-control select {font:400 13px/1.3 'DM Sans',Arial,sans-serif;color:#efe4d2;background:#0b0b08;border:1px solid #efe4d255;border-radius:20px;padding:8px 12px;max-width:160px}
.site-language-control select:focus-visible {outline:2px solid #cedd4a;outline-offset:3px}
[dir="rtl"] .am-logo,[dir="rtl"] .login-brand {direction:ltr;text-align:left}
[dir="rtl"] .am-hero-copy,[dir="rtl"] .hero-copy,[dir="rtl"] .am-faq-answer {text-align:start}
[dir="rtl"] .am-lang-dropdown {right:auto;left:0}
[dir="rtl"] .am-lang-option {text-align:start}
[dir="rtl"] #am-calculator .ac-value,[dir="rtl"] #am-calculator .ac-rate,[dir="rtl"] #am-calculator .ac-status strong {direction:ltr;unicode-bidi:isolate}
html[lang="ar"] .am-title,html[lang="ar"] .am-title *,html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3 {letter-spacing:normal!important;line-height:1.35!important}
html[lang="zh-CN"] .am-title,html[lang="zh-CN"] .am-title *,html[lang="zh-CN"] h1,html[lang="zh-CN"] h2 {letter-spacing:normal!important}
@media(max-width:700px){
 .site-translated .alp-copy strong {font-size:12px!important;line-height:1.3!important}
 .site-translated .alp-copy>span {font-size:11px!important;line-height:1.3!important}
 .site-translated .banking-login-shell .brand-wordmark {font-size:clamp(23px,6vw,34px)}
 .site-translated .banking-login-shell .telegram-login-link {font-size:14px}
 .site-language-control {inset-block-start:12px;inset-inline-end:16px}
}
.site-translated #alfred-site .am-hero-copy {min-width:0!important;width:100%!important;max-width:100%!important}
.site-translated #alfred-site .am-hero-grid {min-width:0}
.site-translated #alfred-site .am-hline-nowrap {white-space:normal!important}
.site-translated #alfred-site .am-title {overflow-wrap:normal}
.site-translated #alfred-site .am-title .am-hline:first-child {min-height:2em}
.site-translated #alfred-site .am-hero-copy>.alfred-live-presence {width:100%!important;max-width:100%!important}
.site-translated .alp-reminder-panel.is-visible {max-height:130px}
@media(min-width:901px){.site-translated #alfred-site .am-title .am-hline:first-child{min-height:1em}}
@media(max-width:700px){
 .site-translated #alfred-site .am-title {font-size:clamp(36px,10.5vw,52px)!important}
 .site-translated #alfred-site .am-title .am-hline:first-child {min-height:1em}
 .site-translated #alfred-site .am-hline-sub {font-size:.8em!important}
 .site-translated .alp-actions {grid-template-columns:minmax(0,1fr) 1px minmax(0,1fr);width:100%}
}
html[lang="ar"] body,html[lang="ar"] #alfred-site :is(h1,h2,h3,p,span,a,button,summary,input,label,small,strong),html[lang="ar"] .banking-login-shell :is(h1,p,a,input,span) {font-family:'Noto Sans Arabic','DM Sans',Arial,sans-serif!important}
html[lang="ar"] .am-logo-tagline,html[lang="ar"] .login-brand-tagline {font-family:'DM Sans',Arial,sans-serif!important}
.site-translated .am-aw,.site-translated .st-number {unicode-bidi:isolate}
@media(max-width:700px){
 .site-translated #alfred-site:not(.site-chrome) #am-navigation,.site-translated #alfred-site.site-chrome #am-navigation:not([hidden]) {display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;max-width:100%!important}
 .site-translated #alfred-site #am-navigation .am-nav-link {font-size:clamp(8px,2.3vw,11px)!important;min-width:0!important;padding-inline:0!important;white-space:normal!important;justify-content:center!important;gap:2px!important}
 .site-translated #alfred-site #am-navigation .am-nav-link[aria-current="page"] {font-size:clamp(9px,2.6vw,12px)!important}
 .site-translated #alfred-site #am-navigation .am-nav-label {overflow-wrap:anywhere;text-align:center}
 html[lang="ar"] #alfred-site .am-title {font-size:clamp(30px,9vw,43px)!important}
}
/* Language access must remain available on Home/Automate mobile as well. */
@media(max-width:900px){
 #alfred-site.site-chrome .am-header-actions {display:flex!important;align-items:center;gap:8px;margin-inline-start:auto}
 #alfred-site.site-chrome .am-header-inner {gap:12px}
 #alfred-site.site-chrome .am-login-link {font-size:11px;white-space:nowrap}
 #alfred-site.site-chrome .am-lang-summary {display:flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;cursor:pointer}
 #alfred-site.site-chrome .am-lang-dropdown {max-height:65vh;overflow:auto;z-index:60}
 #alfred-site.site-chrome .am-header-divider {display:none}
 #alfred-site.site-chrome .am-menu-toggle {flex-shrink:0}
}

/* Keep translated headlines on the same three-line rhythm as the original. */
.site-translated #alfred-site .am-hero-copy {container-type:inline-size}
.site-translated #alfred-site .am-title {font-size:clamp(28px,11.2cqi,82px)!important}
.site-translated #alfred-site .am-title .am-hline:first-child {min-height:0;white-space:nowrap!important}
.site-translated #alfred-site .am-hline-sub {white-space:nowrap!important}
html[lang="ar"] #alfred-site .am-title {font-size:clamp(28px,10cqi,70px)!important}
html[lang="ar"] #alfred-site .am-title .am-hline-sub {display:flex!important;gap:.18em;justify-content:flex-start;direction:rtl}
#alfred-site .am-title .am-rail-names {display:inline-block!important;width:auto;direction:ltr;unicode-bidi:isolate;white-space:nowrap!important}
.site-translated #alfred-site#alfred-site #am-fees .am-tag-sd {white-space:normal!important;max-width:78%;line-height:1.3!important}
#alfred-site#alfred-site #am-fees .am-tag-trust {display:flex!important;flex-direction:column;align-items:center;gap:6px;max-width:65%;transform:none!important;line-height:1.35!important;letter-spacing:normal}
#alfred-site#alfred-site #am-fees .am-tag-trust>span:not(.am-tag-flag) {max-width:100%}
#alfred-site#alfred-site #am-fees .am-tag-flag {position:static!important;inset:auto!important;margin:0!important;flex-shrink:0}
html[lang="ar"] #alfred-site#alfred-site #am-fees .am-tag-price-row {direction:ltr}
html[lang="ar"] #alfred-site#alfred-site #am-fees .am-tag-pct,
html[lang="ar"] #alfred-site .am-aw {font-family:'DM Sans',Arial,sans-serif!important}

.site-translated #alfred-site#alfred-site #am-fees .am-tag-caption {max-width:70%}
html[lang="ar"] #alfred-site#alfred-site#alfred-site#alfred-site #am-fees .am-tag-trust,
html[lang="ar"] #alfred-site#alfred-site#alfred-site#alfred-site #am-fees .am-tag-trust>span:not(.am-tag-flag),
html[lang="ar"] #alfred-site#alfred-site #am-fees .am-tag-fee,
html[lang="ar"] #alfred-site#alfred-site #am-fees .am-tag-sd,
html[lang="ar"] #alfred-site#alfred-site #am-fees .am-tag-caption {font-family:'Noto Sans Arabic','DM Sans',Arial,sans-serif!important}

html[lang="en"] #alfred-site#alfred-site #am-fees .am-tag-trust {max-width:50%}

/* Compact Spanish copy stays inside the paper label's printable area. */
html[lang="es"] #alfred-site#alfred-site #am-fees .am-tag-block {left:24%!important;right:24%!important;width:auto!important}
html[lang="es"] #alfred-site#alfred-site #am-fees .am-tag-fee {font-size:19px!important;font-weight:500!important;transform:translateY(3px)}
html[lang="es"] #alfred-site#alfred-site #am-fees .am-tag-sd {max-width:100%;font-size:16px!important;line-height:1.3!important;font-weight:600!important}
html[lang="es"] #alfred-site#alfred-site #am-fees .am-tag-footer {left:24%!important;right:24%!important;top:61%!important;bottom:11%!important;gap:10px!important}
html[lang="es"] #alfred-site#alfred-site #am-fees .am-tag-ca {width:100%;min-width:0;min-height:42px;padding:10px 16px!important;margin:0!important;font-size:15px!important;font-weight:600!important}
html[lang="es"] #alfred-site#alfred-site #am-fees .am-tag-caption {max-width:100%;font-size:12px!important;line-height:1.45!important;top:0}
html[lang="es"] #alfred-site#alfred-site #am-fees .am-tag-trust {max-width:100%;width:100%;flex-direction:row;gap:8px;align-items:center;justify-content:center;font-size:13px!important;line-height:1.3!important}
html[lang="es"] #alfred-site#alfred-site #am-fees .am-tag-trust>span:not(.am-tag-flag) {flex:0 1 160px;min-width:0}
html[lang="es"] #alfred-site#alfred-site #am-fees .am-tag-flag {align-self:flex-end;margin-bottom:2px!important}

/* Translated tablet navigation needs space for longer labels. */
@media(min-width:701px) and (max-width:1000px){
 .site-translated #alfred-site .am-header-inner {gap:16px!important}
 .site-translated #alfred-site #am-navigation {gap:12px!important}
 .site-translated #alfred-site #am-navigation .am-nav-link {font-size:11px!important;letter-spacing:.04em!important;white-space:nowrap!important;flex:0 1 auto}
}

/* Flag-only login selector, with the accessible native language menu underneath. */
.site-language-control {width:36px;height:36px;display:grid;place-items:center;border:1px solid #efe4d233;border-radius:50%;background:#ffffff05;box-sizing:border-box}
.site-language-flag {font:18px/1 'Apple Color Emoji','Segoe UI Emoji',sans-serif;pointer-events:none}
.site-language-control select {position:absolute;inset:0;width:100%;height:100%;max-width:none;opacity:0;cursor:pointer;padding:0}
.site-language-control:focus-within {outline:1px solid #efe4d280;outline-offset:3px}
