/* چندزبانه مستر - استایل سوییچر زبان در فرانت */

.trl-switcher {
    margin: 0;
}

.trl-switcher__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.trl-switcher__item a {
    display: inline-block;
    padding: 4px 12px;
    font-size: 13px;
    line-height: 1.6;
    text-decoration: none;
    border: 1px solid currentColor;
    border-radius: 999px;
    opacity: 0.75;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.trl-switcher__item a:hover,
.trl-switcher__item a:focus {
    opacity: 1;
}

.trl-switcher__item.is-current a {
    opacity: 1;
    font-weight: 700;
}

.trl-switcher__title {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    opacity: 0.7;
}

/* حالت شناور */
.trl-switcher--floating {
    position: fixed;
    bottom: 18px;
    inset-inline-end: 18px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
    padding: 10px 14px;
    backdrop-filter: blur(6px);
}

.trl-switcher--floating .trl-switcher__title {
    margin-bottom: 4px;
}

.trl-switcher--floating.is-open .trl-switcher__list {
    display: flex;
}

.trl-switcher--floating .trl-switcher__list {
    display: none;
    flex-direction: column;
    gap: 4px;
}

.trl-switcher--floating:hover .trl-switcher__list,
.trl-switcher--floating:focus-within .trl-switcher__list {
    display: flex;
}

@media (max-width: 600px) {
    .trl-switcher--floating {
        bottom: 12px;
        inset-inline-end: 12px;
        max-width: 46vw;
    }
}
