/**
 * Language Switcher CSS
 */

.zambo-language-switcher {
    display: inline-block;
    cursor: pointer;
    user-select: none;
    font-family: "TT Commons Pro Trial Variable", sans-serif;
    font-weight: bold;
}

.zambo-switch-track {
    background-color: transparent;
    border: 1px solid #0071CC;
    border-radius: 30px;
    width: 100px;
    height: 40px;
    /* 38px toggle + 2px border */
    position: relative;
    box-sizing: border-box;
    transition: background-color 0.3s ease;
    overflow: hidden;
    /* Ensure toggle doesn't overflow corners */
}

.zambo-label-left,
.zambo-label-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #0071CC;
    z-index: 1;
    width: 49px;
    /* Match toggle width */
    text-align: center;
    font-weight: bold;
    line-height: 1;
}

.zambo-label-left {
    left: 0;
}

.zambo-label-right {
    right: 0;
}

.zambo-switch-toggle {
    background-color: #0071CC;
    color: #fff;
    border-radius: 30px;
    width: 49px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    position: absolute;
    top: 0;
    transition: left 0.3s ease;
    z-index: 2;
}

/* State: Default (Left) */
.zambo-state-default .zambo-switch-toggle {
    left: 0;
}

/* State: Secondary (Right) */
.zambo-state-secondary .zambo-switch-toggle {
    left: calc(100% - 49px);
}

/* Hover effect */
.zambo-language-switcher:hover .zambo-switch-track {
    /* background-color: #e0e0e0; */
    /* Optional: disable hover bg change if not needed */
}