@media (max-width: 767px) {
    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher) {
        --azm-menu-ink: #252525;
        --azm-menu-orange: #ff542f;
        --azm-menu-cream: #f9f7ed;
    }

    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .e-con:has(> .elementor-widget-polylang-language-switcher) {
        justify-content: flex-start !important;
        align-items: flex-start !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .elementor-widget-polylang-language-switcher {
        z-index: 10002;
        align-self: flex-start !important;
        width: auto !important;
        min-width: 0 !important;
        margin-right: 0 !important;
        margin-left: 10px !important;
    }

    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .elementor-widget-polylang-language-switcher .elementor-widget-container {
        text-align: left;
    }

    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .cpel-switcher__nav {
        box-sizing: border-box;
        display: flex !important;
        align-items: center;
        width: 112px;
        padding: 4px;
        gap: 2px;
        border: 1px solid rgba(42, 38, 31, 0.06);
        border-radius: 14px;
        background: var(--azm-menu-cream);
        color: var(--azm-menu-ink);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 0.04em;
        line-height: 1;
    }

    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .cpel-switcher__toggle,
    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .cpel-switcher__list {
        flex: 0 0 50px;
    }

    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .cpel-switcher__toggle a,
    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .cpel-switcher__list a {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-height: 34px;
        padding: 0;
        border: 0;
        border-radius: 10px;
        color: var(--azm-menu-ink) !important;
        font-family: inherit !important;
        font-size: 12px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        text-align: center;
        text-decoration: none;
    }

    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .cpel-switcher__toggle a {
        background: #fff !important;
        color: var(--azm-menu-orange) !important;
        box-shadow: 0 1px 4px rgba(34, 27, 20, 0.08) !important;
    }

    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .cpel-switcher__toggle a::before,
    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .cpel-switcher__list a::before {
        display: block;
    }

    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .cpel-switcher__lang a[lang^="ru"]::before {
        content: "RU";
    }

    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .cpel-switcher__lang a[lang="uk"]::before {
        content: "UA";
    }

    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .cpel-switcher__name {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        border: 0 !important;
        margin: -1px !important;
        clip-path: inset(50%) !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }

    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .cpel-switcher__icon {
        display: none !important;
    }

    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .cpel-switcher__list {
        position: static !important;
        box-sizing: border-box;
        display: flex !important;
        width: 50px;
        min-width: 50px;
        max-height: none !important;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        opacity: 1 !important;
        overflow: visible;
        pointer-events: auto !important;
        transform: none !important;
        visibility: visible !important;
        transition: none;
    }

    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .cpel-switcher__list a {
        background: transparent !important;
    }

    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .cpel-switcher__list a:focus-visible,
    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .cpel-switcher__list a:hover {
        background: rgba(255, 255, 255, 0.72);
        color: var(--azm-menu-orange);
        outline: 2px solid var(--azm-menu-orange);
        outline-offset: 1px;
    }

    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .dialog-close-button {
        top: 36px !important;
        right: 20px !important;
        display: grid !important;
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        place-items: center;
        border: 1px solid rgba(42, 38, 31, 0.06) !important;
        border-radius: 12px !important;
        background: var(--azm-menu-cream) !important;
        color: var(--azm-menu-orange) !important;
        box-shadow: none !important;
        opacity: 1 !important;
        outline: none !important;
    }

    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .dialog-close-button svg {
        width: 17px;
        height: 17px;
        fill: currentColor;
    }

    .elementor-popup-modal:has(.elementor-widget-polylang-language-switcher)
        .dialog-close-button:focus-visible {
        outline: 2px solid rgba(255, 84, 47, 0.28) !important;
        outline-offset: 2px !important;
    }
}
