.container {
    display: flex;
    align-items: center;

    --themeColor: #0000FF;
    --background: #FFFFFF;
    --grey: #CCCCCC;
    
}

.switch {
    font-size: 16px;
    position: relative;
    display: inline-block;
    width: 35px;
    height: 21px;

    margin-right: 8px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--background);
    border: 1px solid var(--grey);
    transition: 0.4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: '';
    height: 16px;
    width: 16px;
    border-radius: 20px;
    left: 1px;
    bottom: 2px;
    background-color: var(--grey);
    transition: 0.4s;
}

input:checked + .slider {
    background-color: var(--themeColor);
    border: 1px solid var(--themeColor);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--themeColor);
}

input:checked + .slider:before {
    transform: translateX(15px);
    background-color: #fff;
}

.label {
    font-size: 16px;
}
