/**
 * Language Switcher CSS for WP Testimonials
 * 
 * This file provides styling for the language switcher
 * to allow users to switch between English and Arabic testimonials.
 */

/* Language switcher container */
.testimonial-language-switcher {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

/* Language switcher buttons */
.testimonial-language-switcher .language-switch {
    display: inline-block;
    padding: 5px 10px;
    margin-left: 5px;
    text-decoration: none;
    color: #666;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.testimonial-language-switcher .language-switch:hover {
    background-color: #f5f5f5;
    color: #333;
}

.testimonial-language-switcher .language-switch.active {
    background-color: #0073aa;
    color: #fff;
}

/* RTL support for language switcher */
html[lang="ar"] .testimonial-language-switcher,
.rtl .testimonial-language-switcher {
    justify-content: flex-start;
}

html[lang="ar"] .testimonial-language-switcher .language-switch,
.rtl .testimonial-language-switcher .language-switch {
    margin-left: 0;
    margin-right: 5px;
}

/* Loading state */
.testimonial-widget.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive styles */
@media screen and (max-width: 480px) {
    .testimonial-language-switcher {
        justify-content: center;
    }
}
