/* Fixed Switcher Positions */
.worldtranslate-fixed-switcher {
    position: fixed;
    z-index: 9999;
}

/*
 * Some themes/homepage scripts apply positioning styles broadly or inject inline top/left values.
 * Force our fixed positions to win so the switcher stays anchored to the viewport.
 */
.worldtranslate-fixed-switcher.worldtranslate-fixed-top_left {
    top: 20px !important;
    left: 20px !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
}
.worldtranslate-fixed-switcher.worldtranslate-fixed-top_center {
    top: 20px !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
}
.worldtranslate-fixed-switcher.worldtranslate-fixed-top_right {
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
}
.worldtranslate-fixed-switcher.worldtranslate-fixed-bottom_left {
    bottom: 20px !important;
    left: 20px !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
}
.worldtranslate-fixed-switcher.worldtranslate-fixed-bottom_center {
    bottom: 20px !important;
    left: 50% !important;
    top: auto !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}
.worldtranslate-fixed-switcher.worldtranslate-fixed-bottom_right {
    bottom: 20px !important;
    right: 20px !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
}
.worldtranslate-fixed-top_left {
    top: 20px;
    left: 20px;
}
.worldtranslate-fixed-top_center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}
.worldtranslate-fixed-top_right {
    top: 20px;
    right: 20px;
}
.worldtranslate-fixed-bottom_left {
    bottom: 20px;
    left: 20px;
}
.worldtranslate-fixed-bottom_center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}
.worldtranslate-fixed-bottom_right {
    bottom: 20px;
    right: 20px;
}
/* WorldTranslate Language Switcher Styles */

.worldtranslate-switcher {
    display: inline-block;
    position: relative;
}

/* Dropdown Style */
.worldtranslate-dropdown {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    cursor: pointer;
    min-width: 150px;
}

.worldtranslate-dropdown:hover {
    border-color: #999;
}

/* List Style */
.worldtranslate-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
}

.worldtranslate-list li {
    margin: 0;
}

.worldtranslate-list a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.worldtranslate-list a:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.worldtranslate-list li.active a {
    background-color: #2271b1;
    color: #fff;
    border-color: #2271b1;
}

/* Flags Style */
.worldtranslate-flags {
    display: flex;
    gap: 8px;
    align-items: center;
}

.worldtranslate-flags .flag-link {
    text-decoration: none;
    font-size: 24px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.worldtranslate-flags .flag-link:hover {
    opacity: 0.8;
}

.worldtranslate-flags .flag-link.active {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .worldtranslate-list {
        flex-direction: column;
    }
    
    .worldtranslate-dropdown {
        width: 100%;
    }
}
