/* CL4 Translator - Language Switcher */
.cl4-floating-switcher { position: fixed; z-index: 99999; }
.cl4-position-bottom-right { bottom: 20px; right: 20px; }
.cl4-position-bottom-left { bottom: 20px; left: 20px; }
.cl4-position-top-right { top: 20px; right: 20px; }
.cl4-position-top-left { top: 20px; left: 20px; }

/* Dropdown */
.cl4-floating-switcher .cl4-switcher-dropdown { position: relative; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

.cl4-floating-switcher .cl4-dropdown-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
    transition: all 0.2s;
    line-height: 1.4 !important;
    text-decoration: none !important;
}
.cl4-floating-switcher .cl4-dropdown-toggle:hover {
    border-color: #999 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.18) !important;
}
.cl4-floating-switcher .cl4-arrow { font-size: 10px; margin-left: 4px; transition: transform 0.2s; }
.cl4-floating-switcher .cl4-dropdown-toggle[aria-expanded="true"] .cl4-arrow { transform: rotate(180deg); }

.cl4-floating-switcher .cl4-dropdown-menu {
    display: none;
    position: absolute !important;
    bottom: 100% !important;
    left: 0 !important;
    margin-bottom: 4px !important;
    background: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.15) !important;
    list-style: none !important;
    padding: 4px 0 !important;
    margin-top: 0 !important;
    min-width: 200px !important;
    max-height: 400px;
    overflow-y: auto;
}
.cl4-floating-switcher .cl4-dropdown-menu.cl4-open { display: block !important; }

.cl4-position-top-right .cl4-dropdown-menu,
.cl4-position-top-left .cl4-dropdown-menu { bottom: auto !important; top: 100% !important; margin-top: 4px !important; margin-bottom: 0 !important; }

.cl4-floating-switcher .cl4-dropdown-menu li {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    background: none !important;
    border: none !important;
}

.cl4-floating-switcher .cl4-dropdown-menu li a,
.cl4-floating-switcher .cl4-dropdown-menu li a:link,
.cl4-floating-switcher .cl4-dropdown-menu li a:visited,
.cl4-floating-switcher .cl4-dropdown-menu li a:active {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 14px !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    background: transparent !important;
    transition: background 0.15s;
    border: none !important;
    box-shadow: none !important;
}
.cl4-floating-switcher .cl4-dropdown-menu li a:hover {
    background: #f0f6fc !important;
    color: #1a1a1a !important;
}

/* Flags style */
.cl4-floating-switcher .cl4-switcher-flags { display: flex; gap: 6px; }
.cl4-floating-switcher .cl4-flag,
.cl4-floating-switcher .cl4-flag:link,
.cl4-floating-switcher .cl4-flag:visited {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    background: #fff !important;
    border: 2px solid transparent !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    text-decoration: none !important;
    font-size: 18px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.1) !important;
    transition: all 0.2s;
    color: initial !important;
}
.cl4-floating-switcher .cl4-flag:hover { border-color: #2271b1 !important; transform: scale(1.1); }
.cl4-floating-switcher .cl4-flag.cl4-active { border-color: #2271b1 !important; box-shadow: 0 0 0 3px rgba(34,113,177,.2) !important; }

/* Inline style */
.cl4-floating-switcher .cl4-switcher-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff !important;
    padding: 6px 12px !important;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    font-size: 13px;
}
.cl4-floating-switcher .cl4-lang-link,
.cl4-floating-switcher .cl4-lang-link:link,
.cl4-floating-switcher .cl4-lang-link:visited {
    color: #666 !important;
    text-decoration: none !important;
    font-weight: 500;
    padding: 2px 4px;
}
.cl4-floating-switcher .cl4-lang-link:hover { color: #2271b1 !important; }
.cl4-floating-switcher .cl4-lang-link.cl4-active { color: #2271b1 !important; font-weight: 700; }
.cl4-floating-switcher .cl4-separator { color: #ccc; }

.cl4-floating-switcher .cl4-flag-emoji { font-size: 1.2em; line-height: 1; }
.cl4-floating-switcher .cl4-flag-code {
    display: inline-block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #666 !important;
    background: #f0f0f0 !important;
    border-radius: 3px !important;
    padding: 1px 4px !important;
    margin-left: 2px !important;
    vertical-align: middle !important;
    line-height: 1.3 !important;
    letter-spacing: 0.5px !important;
}
.cl4-floating-switcher .cl4-lang-name { font-weight: 500; }
