.sls-language-switcher {
    display: inline-flex;
    align-items: center;
    position: relative;
    vertical-align: middle;
}

.sls-selected {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: transparent;
    border: none;
    padding: 8px 20px 8px 0;
    text-indent: 15px;
    line-height: 1.1;
    color: rgba(0, 0, 0, 0.87);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease;
    min-width: 50px;
    width: 50px;
    user-select: none;
    -webkit-user-select: none;
}

.theme-dark .sls-selected {
    color: rgba(255, 255, 255, 0.87);
    border-bottom: 1px solid rgba(255, 255, 255, 0.42);
}

.sls-selected:hover {
    border-bottom-color: rgba(0, 0, 0, 0.87);
}

.theme-dark .sls-selected:hover {
    border-bottom-color: rgba(255, 255, 255, 0.87);
}

.sls-selected.open {
    border-bottom-color: #C49F48;
    border-bottom-width: 2px;
    padding-bottom: 7px;
}

.sls-arrow {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.0;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.27);
    pointer-events: none;
    transition: transform 0.2s ease;
}

.theme-dark .sls-arrow {
    border-top: 5px solid rgba(255, 255, 255, 0.27);
}

.sls-selected.open + .sls-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.sls-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: #fff;
    border-radius: 4px;
    min-width: 60px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
    overflow: hidden;
}

.theme-dark .sls-dropdown {
    background: #333;
}

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

.sls-option {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.87);
    transition: background-color 0.15s ease;
    text-align: center;
}

.theme-dark .sls-option {
    color: rgba(255, 255, 255, 0.87);
}

.sls-option:hover {
    background-color: rgba(0, 0, 0, 0.04);
}


.theme-dark .sls-option:hover {
    background-color: rgba(0, 0, 0, 0.14);
}

.sls-option.selected {
    background-color: rgba(196, 159, 72, 0.08);
    color: #C49F48;
    font-weight: 500;
}

.sls-option.selected:hover {
    background-color: rgba(196, 159, 72, 0.12);
}

.theme-dark .sls-option.selected {
    background-color: rgba(196, 159, 72, 0.13);
}

.theme-dark .sls-option.selected:hover {
    background-color: rgba(196, 159, 72, 0.17);
}

/* Switcher stack - language + theme in column */
.sls-switcher-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

/* Capsule toggle for 2 languages */
.sls-capsule {
    display: inline-flex;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    vertical-align: middle;
}

.sls-capsule-track {
    position: relative;
    display: flex;
    align-items: center;
    width: 60px;
    height: 30px;
    background: #e5e5e5;
    border-radius: 30px;
    transition: background 0.25s;
}

.theme-dark .sls-capsule-track {
    background: #1f1f1f;
}

.sls-capsule-label {
    position: relative;
    z-index: 2;
    flex: 1;
    text-align: center;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(0, 0, 0, 0.35);
    transition: color 0.25s;
    pointer-events: none;
}

.theme-dark .sls-capsule-label {
    color: rgba(255, 255, 255, 0.3) !important;
}

.sls-capsule-label.active {
    color: rgba(0, 0, 0, 0.85) !important;
}

.theme-dark .sls-capsule-label.active {
    color: rgba(0, 0, 0, 0.85) !important;
}

.sls-capsule-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.25s;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.sls-capsule-knob.right {
    transform: translateX(30px);
}