ul.tg-list {
    text-align: center;
    display: flex;
    align-items: center;
    margin: 0 2em;
}
ul.tg-list .tg-list-item {
    display: flex;
}
ul.tg-list .tg-list-item .tgl.tgl-light + .tgl-btn {
    background: #715ee0;
    border-radius: 2em;
    padding: 2px;
    transition: all 0.4s ease;
}
ul.tg-list .tg-list-item .tgl.tgl-light + .tgl-btn:after {
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
}
ul.tg-list .tg-list-item .tgl.tgl-light:checked + .tgl-btn {
    background: #e98123 0% 0% no-repeat padding-box;
}
ul.tg-list, li.tg-list-item {
    list-style: none;
    margin: 1px 2px;
    padding: 0 0;
}
.tgl {
    display: none;
}
.tgl, .tgl:after, .tgl:before, .tgl *, .tgl *:after, .tgl *:before, .tgl + .tgl-btn {
    box-sizing: border-box;
}
.tgl::selection, .tgl:after::selection, .tgl:before::selection, .tgl *::selection, .tgl *:after::selection, .tgl *:before::selection, .tgl + .tgl-btn::selection {
    background: none;
}
.tgl + .tgl-btn {
    outline: 0;
    display: block;
    width: 4em;
    height: 2em;
    position: relative;
    cursor: pointer;
    user-select: none;
}
.tgl + .tgl-btn:after, .tgl + .tgl-btn:before {
    position: relative;
    display: block;
    content: "";
    width: 20px;
    height: 20px;
    top: 2px;
}
.tgl + .tgl-btn:after {
    left: 2px;
}
.tgl + .tgl-btn:before {
    display: none;
}
.tgl:checked + .tgl-btn:after {
    left: 50%;
}
 