/* v1.3.62 - Polylang dropdown shared by Login, Dashboard and Spin Wheel. */
.wq-language-dropdown,
.wq-language-dropdown * { box-sizing: border-box; }
.wq-language-dropdown {
    position: relative;
    z-index: 60;
    display: inline-block;
    flex: 0 0 auto;
    width: max-content;
    max-width: 100%;
    font-family: inherit;
    line-height: 1.3;
}
.wq-language-dropdown .wq-language-toggle {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    min-width: 158px;
    max-width: 100%;
    height: 43px;
    margin: 0;
    padding: 0 14px 0 12px;
    gap: 9px;
    border: 1px solid #e8e3ef;
    border-radius: 999px;
    color: #231a37;
    background: #fff;
    box-shadow: 0 5px 16px rgba(36, 24, 70, .07);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
    white-space: nowrap;
    text-transform: none;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.wq-language-dropdown .wq-language-toggle:hover,
.wq-language-dropdown.is-open .wq-language-toggle {
    color: #231a37;
    background: #fff;
    border-color: #f4ba9f;
    box-shadow: 0 7px 21px rgba(36, 24, 70, .10);
}
.wq-language-dropdown .wq-language-toggle:focus-visible {
    outline: 3px solid rgba(255, 104, 34, .28);
    outline-offset: 3px;
}
.wq-language-dropdown .wq-language-globe {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    color: #f56724;
}
.wq-language-dropdown .wq-language-label {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    color: inherit;
}
.wq-language-dropdown .wq-language-chevron {
    display: block;
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-right: 2px solid #746b83;
    border-bottom: 2px solid #746b83;
    transform: rotate(45deg);
    transition: transform .2s ease, margin-top .2s ease;
}
.wq-language-dropdown.is-open .wq-language-chevron {
    margin-top: 4px;
    transform: rotate(225deg);
}
.wq-language-dropdown .wq-language-menu {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    z-index: 100;
    display: block;
    min-width: max(100%, 194px);
    max-width: calc(100vw - 22px);
    margin: 0;
    padding: 7px;
    list-style: none;
    border: 1px solid #eee8f1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(30, 18, 57, .16);
    transform-origin: top right;
}
/* Until JavaScript enhances the switcher, links remain visible and usable. */
.wq-language-dropdown.is-enhanced .wq-language-menu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(.98);
    transition: visibility .2s ease, opacity .2s ease, transform .2s ease;
}
.wq-language-dropdown.is-enhanced.is-open .wq-language-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}
.wq-language-dropdown .wq-language-option {
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
}
.wq-language-dropdown .wq-language-choice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #352b4a;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    transition: color .16s ease, background-color .16s ease;
}
.wq-language-dropdown a.wq-language-choice:hover,
.wq-language-dropdown a.wq-language-choice:focus-visible {
    background: #fff2eb;
    color: #ed5a20;
    text-decoration: none;
}
.wq-language-dropdown a.wq-language-choice:focus-visible {
    outline: 2px solid rgba(255, 100, 38, .62);
    outline-offset: -2px;
}
.wq-language-dropdown .wq-language-choice.is-current {
    background: linear-gradient(100deg, #fff1e9, #f9efff);
    color: #ec5722;
    font-weight: 800;
}
.wq-language-dropdown .wq-language-choice.is-current::after {
    content: '✓';
    padding-left: 10px;
    font-size: 16px;
    line-height: 1;
}
.wq-language-dropdown .wq-language-choice.is-unavailable {
    opacity: .46;
    cursor: not-allowed;
}
/* Positioning in the three existing frontend contexts. */
.wq-login-overlay-card > .wq-language-dropdown,
.wq-login-form-shell > .wq-language-dropdown {
    display: block;
    width: max-content;
    margin: 0 0 16px auto;
}
.wq-top-nav .wq-language-dropdown { margin-right: 6px; }
@media (max-width: 600px) {
    .wq-language-dropdown .wq-language-toggle {
        min-width: 145px;
        height: 41px;
        padding: 0 12px;
        gap: 8px;
        font-size: 12px;
    }
    .wq-language-dropdown .wq-language-menu { min-width: max(100%, 180px); }
    .wq-language-dropdown .wq-language-choice { min-height: 42px; }
    .wq-top-nav .wq-language-dropdown { margin-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .wq-language-dropdown *,
    .wq-language-dropdown *::before,
    .wq-language-dropdown *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* v1.3.63 — concise Polylang labels: EN / 中文 / BM. */
.wq-language-dropdown .wq-language-toggle{
    min-width:84px;
    height:40px;
    padding:0 11px;
    gap:8px;
}
.wq-language-dropdown .wq-language-menu{min-width:max(100%,128px);}
@media (max-width:600px){
    .wq-language-dropdown .wq-language-toggle{min-width:84px;height:40px;}
    .wq-language-dropdown .wq-language-menu{min-width:max(100%,128px);}
}
