﻿.toggleSwitch {
    appearance: none;
    position: relative;
    width: 5rem;
    height: 2.5rem;
    border-radius: 25px;
    background-color: lightgray;
    transition: background-color 0.4s;
    outline: none;
    cursor: pointer;
    display: inline-block;
    margin: 0 !important;
}

.toggleSwitch::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0.25rem;
    transform: translateY(-50%);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    background-color: white;
    transition: left 0.4s;
}

.toggleSwitch:checked {
    background-color: var(--blue);
}

.toggleSwitch:checked::after {
    left: calc(100% - 2.25rem);
}

.toggleSwitch-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.toggleSwitch-label {
    margin: 0;
    font-weight: unset;
}