/* Language switcher: English, Japanese, Korean, Vietnamese */

.ac-esl-lang-switcher {
    font-size: 14px;
}

/* Floating dropdown only (no full-width bar) - left side */
.ac-esl-floating-lang {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99998;
}

.ac-esl-floating-lang .ac-esl-lang-switcher-dropdown .ac-esl-lang-dropdown {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 10px;
    left: 0;
    right: auto;
    min-width: 180px;
    transform: translateY(6px);
}

.ac-esl-floating-lang .ac-esl-lang-switcher-dropdown.open .ac-esl-lang-dropdown {
    transform: translateY(0);
}

.ac-esl-floating-lang .ac-esl-lang-switcher-dropdown .ac-esl-lang-toggle {
    padding: 10px 18px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.08);
    font-weight: 500;
}

.ac-esl-floating-lang .ac-esl-lang-switcher-dropdown .ac-esl-lang-toggle:hover {
    background: #f8fafc;
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ac-esl-floating-lang .ac-esl-lang-switcher-dropdown .ac-esl-lang-toggle:focus {
    box-shadow: 0 0 0 2px rgba(11, 91, 211, 0.4), 0 4px 16px rgba(0, 0, 0, 0.12);
}

button.ac-esl-lang-toggle.sc_button_hover_slide_left {
    background: #16a34a !important;
    color: white !important;
}

span.ac-esl-lang-toggle-label {
    color: white;
}

.ac-esl-floating-lang .ac-esl-lang-switcher-dropdown .ac-esl-lang-dropdown {
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ac-esl-floating-lang .ac-esl-lang-switcher-dropdown .ac-esl-lang-list a {
    padding: 11px 18px;
}

/* Inline style (e.g. in header menu) */
.ac-esl-lang-switcher-inline {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 6px;
}

.ac-esl-lang-switcher-inline .ac-esl-lang-link {
    color: inherit;
    text-decoration: none;
    opacity: 0.85;
}

.ac-esl-lang-switcher-inline .ac-esl-lang-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.ac-esl-lang-switcher-inline .ac-esl-lang-link.ac-esl-lang-current {
    font-weight: 600;
    opacity: 1;
}

.ac-esl-lang-sep {
    opacity: 0.5;
    user-select: none;
}

/* Menu item that wraps the switcher */
.ac-esl-lang-switcher-menu-item {
    display: inline-flex;
    align-items: center;
}

/* Dropdown style */
.ac-esl-lang-switcher-dropdown {
    position: relative;
    display: inline-block;
}

.ac-esl-lang-switcher-dropdown .ac-esl-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: transparent;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: inherit;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.ac-esl-lang-switcher-dropdown .ac-esl-lang-toggle:hover {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.2);
}

.ac-esl-lang-switcher-dropdown .ac-esl-lang-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(11, 91, 211, 0.35);
}

.ac-esl-lang-switcher-dropdown .ac-esl-lang-globe {
    font-size: 15px;
    opacity: 0.85;
}

.ac-esl-lang-switcher-dropdown .ac-esl-lang-toggle-label {
    min-width: 4em;
    text-align: left;
}

.ac-esl-lang-switcher-dropdown .ac-esl-lang-chevron {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.25s ease;
}

.ac-esl-lang-switcher-dropdown.open .ac-esl-lang-chevron {
    transform: rotate(180deg);
}

.ac-esl-lang-switcher-dropdown .ac-esl-lang-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 6px;
    min-width: 160px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, visibility 0.2s, transform 0.2s ease;
    overflow: hidden;
}

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

.ac-esl-lang-switcher-dropdown .ac-esl-lang-list {
    list-style: none;
    margin: 0;
    padding: 6px 0;
}

.ac-esl-lang-switcher-dropdown .ac-esl-lang-list li {
    margin: 0;
}

.ac-esl-lang-switcher-dropdown .ac-esl-lang-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.ac-esl-lang-switcher-dropdown .ac-esl-lang-list a:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.ac-esl-lang-switcher-dropdown .ac-esl-lang-list a.ac-esl-lang-current {
    font-weight: 600;
    background: linear-gradient(90deg, rgba(11, 91, 211, 0.1) 0%, rgba(11, 91, 211, 0.05) 100%);
    color: #0b5bd3;
}

.ac-esl-lang-switcher-dropdown .ac-esl-lang-list a.ac-esl-lang-current:hover {
    background: linear-gradient(90deg, rgba(11, 91, 211, 0.14) 0%, rgba(11, 91, 211, 0.08) 100%);
}

.ac-esl-lang-switcher-dropdown .ac-esl-lang-check {
    font-size: 12px;
    color: #0b5bd3;
    flex-shrink: 0;
}
