.switch {
    position: relative;
    display: inline-block;
    width: 2.5lh;
    height: 1lh;
    /* box-sizing: content-box; */
}

.switch input {
    display: none !important;
}

.switch .toggle {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-shade);
    transition: .4s;
    border-radius: 2lh;
    display:flex;
    align-items: center;
    justify-content: center;
    /* box-sizing: content-box; */
    border: 1px solid;
    border-color: silver;
}

.switch .toggle:before {
    position: absolute;
    display:block;
    content: "";
    width: auto;
    height: 100%;
    left: 0pt;
    /* top: calc(50% - 0.5lh + 2pt); */
    background-color: white;
    transition: left 0.4s;
    border-radius: 50%;
    aspect-ratio: 1/1;
}

.switch input:checked + .toggle {
    background-color: var(--dominant-color);
    background-color: var(--primary-shade);
}
.switch:has( input[disabled]:checked) {
    border-color: var(--main-background) !important;
}
.switch:has( input[disabled]:checked) .toggle::before{
    background-color: var(--primary-shade);
}

.switch input:checked + .toggle:before {
    left: calc(1.5lh + 1pt);
}
.switch  span::after{
    font-size:1rem;
    display:inline-block;
    position:absolute;
}
.switch:has(input:checked) span::after{
    content:'on';
    color: var(--dominant-contrast);
    left:2ch;
    color: white;
}
.switch:has(input:not(:checked)) span::after{
    content:'off';
    color: var(--dominant-contrast);
    right:2ch;
    color: black;
}


.toggleText{
    left: 60px;
    color: #FFF;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    position: relative;
    transition: .4s;
}

