/* public/css/switch-button.css */
/* Escalado para reducir el tamaño del switch */
.toggle-button-cover {
    transform: scale(0.1);    /*Reducirtamaño*/
    transform-origin: center;
}

.toggle-button-cover {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 40px;
    box-sizing: border-box;
}

.button {
    position: relative;
    top: 50%;
    width: 80px;
    height: 36px;
    margin: -18px auto 0 auto;
    overflow: hidden;
}

.checkbox {
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 3;
}

.knobs {
    z-index: 2;
}

.knobs:before {
    content: "NO";
    position: absolute;
    top: 3px;
    left: 4px;
    width: 30px;
    height: 30px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 30px;
    background-color: #f44336;
    border-radius: 50%;
    transition: 0.3s ease all;
}

.layer {
    width: 100%;
    height: 100%;
    background-color: #ebf7fc;
    transition: 0.3s ease all;
    z-index: 1;
}

.button.r,
.button.r .layer {
    border-radius: 100px;
}

.checkbox:checked + .knobs:before {
    content: "YES";
    left: 44px;
    background-color: #03a9f4;
}

.checkbox:checked ~ .layer {
    background-color: #fcebeb;
}
