/* Serbia-only interface-language picker. Loaded after the legacy module so
   desktop and mobile share one accessible dialog without exposing roadmap UI. */
/* These sections are dialog content, not the theme's floated page sections. */
.hua-language-layer .hua-language-dialog{float:none;clear:none;margin:0;padding:0;box-sizing:border-box}
.hua-language-dialog .hua-language-group{float:none;clear:none;width:auto;margin:0;padding:0;box-sizing:border-box}
.hua-language-dialog .hua-language-group+.hua-language-group{margin-top:20px}
.hua-language-dialog .hua-language-more>.hua-language-group{padding-top:4px}
.hua-language-menu{display:flex;height:40px;padding:0 10px;align-items:center;gap:5px;border:1px solid var(--hua-border);border-radius:12px;background:#fff;color:#3f4650;font:750 12px/1 inherit;cursor:pointer}.hua-language-menu>.hua-icon:first-child{width:17px;height:17px}.hua-language-menu>.hua-icon:last-child{width:14px;height:14px}
.hua-language-layer{position:fixed;inset:0;z-index:1800;display:grid;padding:24px;place-items:center}
.hua-language-layer[hidden]{display:none!important}
.hua-language-backdrop{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:rgba(10,25,47,.52);cursor:pointer}
.hua-language-dialog{position:relative;display:flex;width:min(760px,calc(100vw - 48px));max-height:calc(100dvh - 48px);flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,255,.78);border-radius:22px;background:#fff;box-shadow:0 28px 90px rgba(10,25,47,.28)}
.hua-language-dialog>header{position:static!important;inset:auto!important;z-index:auto!important;float:none!important;clear:none!important;display:flex!important;width:auto!important;height:auto!important;min-height:78px!important;margin:0!important;padding:16px 20px!important;align-items:center!important;justify-content:space-between!important;border:0!important;border-bottom:1px solid #edf0f4!important;background:linear-gradient(135deg,#fff8f8 0%,#f5f8ff 100%)!important;box-shadow:none!important;transform:none!important}
.hua-language-dialog>header>div{display:flex;min-width:0;align-items:center;gap:12px}
.hua-language-dialog>header>div>span{display:grid;width:42px;height:42px;flex:0 0 42px;border-radius:13px;background:linear-gradient(145deg,var(--hua-red),var(--hua-blue));color:#fff;place-items:center}
.hua-language-dialog>header>div>span>.hua-icon{width:21px;height:21px}.hua-language-dialog>header h2{margin:0;color:#172033;font-size:22px;line-height:1.25}
.hua-language-dialog>header>button{display:grid;width:48px;height:48px;flex:0 0 48px;padding:0;border:1px solid #dfe4ea;border-radius:13px;background:#fff;color:#172033;place-items:center;cursor:pointer}
.hua-language-dialog>header>button>.hua-icon{width:20px;height:20px}
.hua-language-dialog-body{min-height:0;flex:1;padding:18px 20px 24px;overflow:auto;overscroll-behavior:contain}
.hua-language-group+.hua-language-group{margin-top:20px}.hua-language-group h3{margin:0 0 10px;color:#596579;font-size:13px;font-weight:800;line-height:1.4}
.hua-language-group>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.hua-language-option{display:flex;min-width:0;min-height:52px;padding:10px 12px;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e1e6ed;border-radius:12px;background:#fff;color:#263244;line-height:1.3;text-decoration:none}
.hua-language-option>span:first-child{min-width:0;overflow-wrap:anywhere;font-size:14px;font-weight:720}.hua-language-option-meta{display:flex;flex:0 0 auto;align-items:center;gap:7px}
.hua-language-option-meta small{color:#8792a2;font-size:10px;font-weight:850}.hua-language-option-meta b{display:grid;width:22px;height:22px;border-radius:50%;background:var(--hua-red);color:#fff;font-size:13px;place-items:center}
.hua-language-option:hover{border-color:rgba(31,91,166,.38);background:#f8fbff}.hua-language-option:focus-visible,.hua-language-dialog>header>button:focus-visible,.hua-language-more>summary:focus-visible{outline:3px solid rgba(31,91,166,.22);outline-offset:2px}
.hua-language-option.is-active{border-color:rgba(231,36,42,.42);background:var(--hua-red-soft);color:var(--hua-red);box-shadow:inset 3px 0 0 var(--hua-red)}
.hua-language-more{margin-top:20px;padding-top:4px;border-top:1px solid #edf0f4}.hua-language-more>summary{display:flex;min-height:52px;padding:0 4px;align-items:center;justify-content:space-between;gap:10px;color:#263244;font-size:14px;font-weight:800;cursor:pointer;list-style:none}
.hua-language-more>summary::-webkit-details-marker{display:none}.hua-language-more>summary>span{flex:1}.hua-language-more>summary .is-open{display:none}.hua-language-more[open]>summary .is-closed{display:none}.hua-language-more[open]>summary .is-open{display:block}
.hua-language-more:not([open])>.hua-language-group{display:none}.hua-language-more>summary i{width:9px;height:9px;margin-right:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .18s ease}.hua-language-more[open]>summary i{transform:rotate(225deg) translate(-2px,-2px)}
.hua-language-more>.hua-language-group{padding-top:4px}.hua-language-open{overflow:hidden}
@media(max-width:930px){.hua-language-layer{display:block;padding:0}.hua-language-dialog{position:absolute;right:0;bottom:0;left:0;width:100%;height:min(760px,calc(100dvh - max(12px,env(safe-area-inset-top))));max-height:calc(100dvh - max(12px,env(safe-area-inset-top)));border-radius:24px 24px 0 0;box-shadow:0 -22px 60px rgba(10,25,47,.2)}.hua-language-dialog-body{padding-bottom:calc(24px + env(safe-area-inset-bottom))}}
@media(max-width:680px){.hua-language-menu{display:none}.hua-language-dialog>header{min-height:74px!important;padding:13px 14px!important}.hua-language-dialog>header h2{font-size:20px}.hua-language-dialog-body{padding:15px 14px calc(22px + env(safe-area-inset-bottom))}.hua-language-group>div{grid-template-columns:minmax(0,1fr);gap:8px}.hua-language-option{min-height:52px;padding:10px 12px}.hua-language-option>span:first-child{font-size:15px}}
@media(max-width:350px){.hua-language-dialog>header{padding-right:10px!important;padding-left:10px!important}.hua-language-dialog-body{padding-right:10px;padding-left:10px}.hua-language-dialog>header h2{font-size:18px}}
@media(prefers-reduced-motion:reduce){.hua-language-more>summary i{transition:none}}
