/**
 * Divi Translator — Frontend Styles
 * Language switcher widget
 */

/* Switcher widget */
.dvtr-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
}

.dvtr-switcher__current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    transition: all 0.2s;
    font-family: inherit;
}

.dvtr-switcher__current:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-color: #d1d5db;
}

.dvtr-switcher__arrow {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.dvtr-switcher--open .dvtr-switcher__arrow {
    transform: rotate(180deg);
}

.dvtr-switcher__dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s;
}

.dvtr-switcher--open .dvtr-switcher__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dvtr-switcher__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s;
    font-size: 14px;
}

.dvtr-switcher__item:hover {
    background: #f3f0ff;
    color: #7c3aed;
}

.dvtr-switcher__item + .dvtr-switcher__item {
    border-top: 1px solid #f3f4f6;
}
