.switch-btn {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 20px;
    cursor: pointer;
}

.switch-btn input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.switch-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 18px;
    background-color: #e9e8ec;
    transition: background-color 0.4s;
}

.switch-btn::after {
    content: "";
    position: absolute;
    height: 17px;
    width: 17px;
    left: 1.5px;
    bottom: 1.5px;
    border-radius: 50%;
    background-color: white;
    transition: transform 0.4s;
    filter: drop-shadow(0 1.714px 3.429px rgba(0, 0, 0, 0.08)) drop-shadow(0 1.714px 3.429px rgba(0, 0, 0, 0.16));
}

.switch-btn:has(input:checked)::before {
    background-color: #703eff;
}

.switch-btn:has(input:checked)::after {
    transform: translateX(11.5px);
}