/* V12.1: Custom accessible 18-language menu. The native <select> overflow is removed. */
.ptb-language{position:relative;display:inline-flex;align-items:center;flex:0 0 auto;direction:ltr;z-index:60}
.ptb-language-button{display:flex;align-items:center;justify-content:space-between;gap:9px;height:38px;width:172px;min-width:0;padding:0 11px;border:1px solid #494265;border-radius:12px;background:#191e2d;color:#f4f1ff;box-shadow:0 1px 8px #0003;font-size:12px;font-weight:700;line-height:1.3;cursor:pointer;white-space:nowrap}
.ptb-language-button:hover{border-color:#a999ff;background:#22263a}
.ptb-language-button:focus-visible{outline:2px solid #bea9ff;outline-offset:2px}
.ptb-language-button>svg:first-child{flex-shrink:0;color:#ac9bff}
.ptb-language-current{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:start}
.ptb-language-chevron{flex-shrink:0;color:#c2b4ff;transition:transform .18s ease}
.ptb-language-button[aria-expanded="true"] .ptb-language-chevron{transform:rotate(180deg)}
.ptb-language-menu{position:absolute;top:calc(100% + 9px);right:0;width:240px;max-width:calc(100vw - 20px);max-height:min(440px,calc(100dvh - 95px));overflow-y:auto;overscroll-behavior:contain;padding:7px;background:#171c2b;color:#f0eefb;border:1px solid #514868;box-shadow:0 20px 55px #000b,0 0 0 1px #9082ff16;border-radius:13px;z-index:1000;direction:ltr;scrollbar-color:#726690 #171c2b;scrollbar-width:thin}
.ptb-language-menu[hidden]{display:none!important}
.ptb-language-option{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#d9dcec;min-height:36px;padding:8px 11px;border-radius:8px;font-size:13px;font-weight:550;line-height:1.3;text-decoration:none;transition:background .12s ease}
.ptb-language-option:hover,.ptb-language-option:focus-visible{background:#302943;color:#fff;outline:none}
.ptb-language-option.is-active{color:#cfbfff;background:#4f41774d;font-weight:800}
.ptb-language-option.is-active svg{color:#ab95ff;flex:0 0 auto}
.ptb-language-option-text{min-width:0;flex:1;text-align:start}
html[dir="rtl"] .ptb-language{direction:ltr}
html[dir="rtl"] .site-shell{text-align:start}
html[dir="rtl"] .top-inner,html[dir="rtl"] .topbar,html[dir="rtl"] .page-intro,html[dir="rtl"] .dashboard-content{text-align:start}
html[dir="rtl"] input[type=email],html[dir="rtl"] input[type=url]{direction:ltr;text-align:start}
html[dir="rtl"] .form-cols,html[dir="rtl"] .editor-layout{text-align:start}
@media(max-width:850px){.ptb-language-button{width:135px;height:35px;padding:0 8px;gap:6px}.nav-actions{gap:7px}}
@media(max-width:470px){.ptb-language-button{width:109px;font-size:11px;gap:5px}.ptb-language-button>svg:first-child{width:15px;height:15px}.ptb-language-menu{width:220px}.nav-actions{gap:5px}}
@media(max-width:340px){.ptb-language-button{width:88px}.ptb-language-button>svg:first-child{display:none}}
