/* ==========================================================================
   Dorlet WPML Language Switcher – Styles
   ========================================================================== */

.dwls-switcher {
    position: relative;
    display: inline-block;
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
}

/* ---- Botón actual ---- */
.dwls-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 2px solid #85A488;
    border-radius: 25px;
    background-color: transparent;
    color: #fff;
    font-family: inherit;
    font-size: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    user-select: none;
}
.dwls-current:active,
.dwls-current:focus,
.dwls-current:hover,
.dwls-current:focus-visible {
    background-color: #85A488;
    outline: none;
}

/* Sin dropdown: quitar cursor pointer */
.dwls-switcher:not(.dwls-has-dropdown) .dwls-current {
    cursor: default;
    pointer-events: none;
}

/* ---- Flecha ---- */
.dwls-arrow {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.dwls-switcher.dwls-open .dwls-arrow {
    transform: rotate(180deg);
}

/* ---- Dropdown ---- */
.dwls-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 2px solid #85A488;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 9999;
}

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

.dwls-dropdown li {
    margin: 0;
    padding: 0;
}

.dwls-dropdown a {
    display: block;
    padding: 6px 12px;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.dwls-dropdown a:hover,
.dwls-dropdown a:focus-visible {
    background-color: rgba(93, 133, 97, 0.1);
    outline: none;
}
