/* ===== Inline Language Flag Switcher ===== */

/* Hide the TranslatePress floating/fixed switcher site-wide — replaced by inline flags */
.trp-language-switcher.trp-floating-switcher {
    display: none !important;
}

li.trp-inline-flags-menu-item {
    display: flex !important;
    align-items: center !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    background: none !important;
    list-style: none !important;
}

.trp-inline-flags {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
}

.trp-flag-link {
    display: flex;
    align-items: center;
    opacity: 0.45;
    transition: opacity 0.2s ease;
    line-height: 1;
    padding: 0 !important;
}

/* Active language */
.trp-flag-link.trp-flag-current {
    opacity: 1;
    pointer-events: none;
}

.trp-flag-link:hover {
    opacity: 0.85;
    color: inherit;
}

.trp-flag-link img {
    display: block !important;
    width: 22px !important;
    height: auto !important;
    margin-bottom: 0 !important;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    position: static !important;
    top: auto !important;
}

/* Desktop: hide flags from the sf-menu on mobile (they live in the off-canvas menu instead) */
@media only screen and (max-width: 999px) {
    #top .sf-menu li.trp-inline-flags-menu-item {
        display: none !important;
    }
}

/* Mobile off-canvas & classic dropdown menu */
@media only screen and (max-width: 999px) {
    #slide-out-widget-area li.trp-inline-flags-menu-item,
    #mobile-menu li.trp-inline-flags-menu-item {
        justify-content: center !important;
        padding: 12px 0 !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        width: 100%;
    }

    #slide-out-widget-area .trp-inline-flags,
    #mobile-menu .trp-inline-flags {
        gap: 14px;
        padding: 4px 0;
    }

    #slide-out-widget-area .trp-flag-link img,
    #mobile-menu .trp-flag-link img {
        width: 30px !important;
    }
}
