﻿.toggle_switch {
    display: table;
    font-size: 1rem;
}

.toggle_switch > input {
    display: none;
}

.toggle_switch > label {
    display: block;
    position: relative;
    width: 2.25em;
    height: 1.25em;
    border-radius: 1.2em;
    background-color: #a8a8a8;
    cursor: pointer;
    margin-bottom: 0px;
}

.toggle_switch > input:checked + label {
    background-color: #321fdb;
}

.toggle_switch > label::before {
    position: absolute;
    top: 0.1em;
    left: 0.1em;
    width: calc(1em - 0.1em);
    height: calc(1.05em);
    border-radius: calc(1em - 0.1em);
    background-color: #fff;
    transition: 0.2s;
    content: "";
}

.toggle_switch > input:checked + label::before {
    left: calc(100% - 1em - 0.05em);
}