/**
 * Language Switcher Widget Styles
 */

.roxyrich-language-switcher-widget {
    display: inline-block;
}

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

/* Button */
.language-switcher-button {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #E91E8C;
    color: #fff;
    padding: 15px 25px;
    border: none;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 500;
    border-radius: 0;
    transition: opacity 0.3s ease;
}

.language-switcher-button:hover {
    opacity: 0.9;
}

.language-flag {
    width: 20px;
    height: auto;
    display: block;
}

.language-name {
    flex: 1;
}

/* Arrow */
.language-switcher-arrow {
    width: 10px;
    height: 10px;
    transition: transform 0.3s ease;
    fill: white;
}

.language-switcher-arrow path {
    fill: white;
}

/* Dropdown */
.language-switcher-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 100%;
}

.language-switcher-container.open .language-switcher-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Language Options */
.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: #000;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #f5f5f5;
}

/* Responsive */
@media (max-width: 768px) {
    .language-switcher-button {
        padding: 12px 20px;
        font-size: 16px;
    }

    .language-option {
        padding: 10px 16px;
        font-size: 14px;
    }

    .language-flag {
        width: 18px;
    }
}
