/* WPML legacy dropdown — style bazowe (jeśli shortcode nie jest używany) */
a.wpml-ls-item-toggle {
    background-color: transparent;
    border: none;
    color: #fff !important;
    text-transform: capitalize;
}

.wpml-ls-legacy-dropdown .wpml-ls-current-language:hover>a,
.wpml-ls-legacy-dropdown a:focus,
.wpml-ls-legacy-dropdown a:hover {
    background-color: transparent;
    color: #fff;
}

#wpml-ls-submenu-default {
    left: -32px;
    border: none;
    width: 108px;
    background-color: #090909;
    top: calc(100% - 8px) !important;
    padding-top: 8px;
}

.wpml-ls-legacy-dropdown .wpml-ls-current-language:hover > .wpml-ls-sub-menu {
    display: block !important;
    visibility: visible !important;
}

#wpml-ls-submenu-default a.wpml-ls-link {
    width: 108px;
    background-color: #090909;
    border: none;
    color: #fff !important;
    text-transform: capitalize;
    text-align: center;
    font-size: 13px;
}

#wpml-ls-submenu-default a.wpml-ls-link .wpml-ls-native {
    display: block;
}

.wpml-ls-sub-menu .wpml-ls-link {
    display: block !important;
    padding: 20px 0 !important;
    width: 100%;
}

/* ==========================================================================
   Własny shortcode [language_switcher] — czysty CSS hover
   ========================================================================== */

.custom-lang-switcher {
    position: relative;
    display: inline-block;
    cursor: default;
}

.custom-lang-current {
    color: #fff;
    font-size: 13px;
    text-transform: capitalize;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    cursor: default;
    user-select: none;
}

.custom-lang-current.no-arrow::after {
    display: none;
}

.custom-lang-current::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #fff;
    margin-left: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}

.custom-lang-dropdown {
    display: none;
    position: fixed;
    background-color: #090909;
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 80px;
    z-index: 999999;
    pointer-events: auto !important;
}

.custom-lang-switcher.open .custom-lang-dropdown {
    display: block;
}

.custom-lang-dropdown li {
    margin: 0;
    padding: 0;
}

.custom-lang-dropdown a {
    display: block;
    padding: 12px 16px;
    color: #fff !important;
    text-decoration: none;
    font-size: 13px;
    text-align: center;
    text-transform: capitalize;
    transition: background-color 0.2s ease;
    pointer-events: auto !important;
    position: relative;
    z-index: 999999;
}

.custom-lang-dropdown a:hover {
    background-color: #2a2a2a !important;
    color: #fff !important;
}
