/* ── Auto Translator Pro — Front-end switcher styles ── */

/* Container */
.at-switcher {
    display: inline-block;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
}

/* ── Dropdown style ── */
.at-style-dropdown .at-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 32px 6px 10px;
    font-size: 14px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 8px;
    min-width: 140px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.at-style-dropdown .at-select:hover,
.at-style-dropdown .at-select:focus {
    border-color: #4f8ef7;
    box-shadow: 0 0 0 2px rgba(79,142,247,.15);
    outline: none;
}

/* ── List / buttons style ── */
.at-style-list ul,
.at-style-buttons ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.at-style-list li a,
.at-style-buttons li a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #333;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #e0e0e0;
    background: #fafafa;
    font-size: 13px;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.at-style-list li a:hover,
.at-style-buttons li a:hover {
    background: #4f8ef7;
    border-color: #4f8ef7;
    color: #fff;
}
.at-style-list li.at-active a,
.at-style-buttons li.at-active a {
    background: #4f8ef7;
    border-color: #4f8ef7;
    color: #fff;
    font-weight: 600;
}

/* ── Flags ── */
.at-flag {
    font-size: 1.2em;
    line-height: 1;
}

/* ── RTL support ── */
[dir="rtl"] .at-switcher {
    direction: rtl;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .at-style-list ul,
    .at-style-buttons ul {
        gap: 4px;
    }
    .at-style-list li a,
    .at-style-buttons li a {
        font-size: 12px;
        padding: 3px 8px;
    }
}
