@value colors: '../../common-ui/colors.css';
@value color4, color11, color2 from colors;

.switch {
    cursor: pointer;
    text-indent: -9999px;
    width: 60px;
    height: 20px;
    background: grey;
    display: inline-block;
    border-radius: 100px;
    position: relative;
    margin-top: 0px;
    margin-left: 10px;

    &::after {
        content: '';
        position: absolute;
        top: 4px;
        left: 5px;
        width: 12px;
        height: 12px;
        background: #fff;
        border-radius: 90px;
        transition: 0.3s;
    }
}

.activeSwitch {
    &::after {
        left: calc(100% - 5px);
        transform: translateX(-100%);
    }
    background: color2;
}

.input {
    height: 0;
    width: 0;
    visibility: hidden;
}

.text {
    cursor: pointer;
    z-index: 10;
    color: white;
    font-size: 0.8em;
    position: absolute;
    margin-left: -35px;
    margin-top: 2px;
}

.activeText {
    color: #fff;
    margin-left: -44px;
}

.subTitle {
    margin-left: 10px;
    margin-top: auto;
    font-size: 10px;
    text-align: center;
    margin-bottom: 0px;
    color: #3a2f45;
    font-weight: 400;
}
