/**
 * Shared site shell refinements.
 * Keep the WPML switcher visually separate from the primary mobile navigation.
 */
@media (max-width: 959px) {
    #masthead .main-menu-container .menu-primary-inner > li.wpml-ls-current-language {
        box-sizing: border-box;
        width: min(260px, calc(100% - 48px));
        margin: 24px auto 0 !important;
        padding-top: 17px;
        border-top: 1px solid rgba(38, 63, 51, 0.15);
        text-align: center;
    }

    #masthead .main-menu-container .menu-primary-inner > li.wpml-ls-current-language::before {
        display: block;
        margin-bottom: 9px;
        color: rgba(38, 63, 51, 0.62);
        font-size: 11px;
        font-weight: 700;
        line-height: 1.2;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    html[lang^="ru"] #masthead .main-menu-container .menu-primary-inner > li.wpml-ls-current-language::before {
        content: "Язык:";
    }

    html[lang^="et"] #masthead .main-menu-container .menu-primary-inner > li.wpml-ls-current-language::before {
        content: "Keel:";
    }

    #masthead .main-menu-container .menu-primary-inner > li.wpml-ls-current-language > a {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 142px;
        min-height: 42px;
        box-sizing: border-box;
        padding: 9px 18px !important;
        border: 1px solid rgba(38, 63, 51, 0.16);
        border-radius: 999px;
        background: rgba(38, 63, 51, 0.055);
        color: #263f33 !important;
        font-size: 16px !important;
        font-weight: 650 !important;
        line-height: 1.25 !important;
    }

    #masthead .main-menu-container .menu-primary-inner > li.wpml-ls-current-language > a .fa-dropdown {
        display: none !important;
    }

    #masthead .main-menu-container .menu-primary-inner > li.wpml-ls-current-language > a::after {
        content: "";
        width: 6px;
        height: 6px;
        margin: -3px 0 0 10px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg);
        transition: transform 180ms ease, margin 180ms ease;
    }

    #masthead .main-menu-container .menu-primary-inner > li.wpml-ls-current-language > a[aria-expanded="true"]::after {
        margin-top: 3px;
        transform: rotate(225deg);
    }

    #masthead .main-menu-container .menu-primary-inner > li.wpml-ls-current-language > .drop-menu {
        padding: 6px 0 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    #masthead .main-menu-container .menu-primary-inner > li.wpml-ls-current-language > .drop-menu > li > a {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 142px;
        min-height: 38px;
        box-sizing: border-box;
        padding: 8px 16px !important;
        border: 1px solid rgba(38, 63, 51, 0.12);
        border-radius: 999px;
        background: #fff;
        color: rgba(38, 63, 51, 0.76) !important;
        font-size: 15px !important;
        font-weight: 600 !important;
        line-height: 1.25 !important;
    }

    #masthead .main-menu-container .menu-primary-inner > li.wpml-ls-current-language > .drop-menu .wpml-ls-display,
    #masthead .main-menu-container .menu-primary-inner > li.wpml-ls-current-language > .drop-menu .fa-dropdown {
        display: none !important;
    }
}
