﻿:root {
    --rosa: #f7505a;
    --rosa-osc: #dc3545;
}

.p-justify {
    text-align: justify;
}

.toggle {
    position: relative;
    display: block;
    width: 50px;
    height: 45px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transform: translate3d(0, 0, 0);
    margin-right: 8px;
}

.toggle:before {
    content: "";
    position: relative;
    top: 3px;
    left: 3px;
    width: 42px;
    height: 20px;
    display: block;
    background: rgb(206, 206, 206);
    border-radius: 11px;
    border: 1px solid;
    transition: background 0.2s ease;
}

.toggle span {
    position: absolute;
    top: 2px;
    left: 0;
    width: 23px;
    height: 22px;
    display: block;
    background: white;
    border-radius: 11px;
    border: 1px solid;
    /* box-shadow: 0 3px 8px rgba(154, 153, 153, 0.5); */
    transition: all 0.2s ease;
}

.toggle span:before {
    content: "";
    position: absolute;
    display: block;
    margin: -18px;
    width: 56px;
    height: 56px;
    background: rgba(79, 46, 220, 0.5);
    border-radius: 50%;
    transform: scale(0);
    opacity: 1;
    pointer-events: none;
}

#cbx_aceptoreq:checked+.toggle:before {
    background: #0d6efd;
}

#cbx_aceptoreq:checked+.toggle span {
    background: white;
    transform: translateX(25px);
    transition: all 0.2s cubic-bezier(0.8, 0.4, 0.3, 1.25), background 0.15s ease;
    box-shadow: 0 3px 8px rgba(79, 46, 220, 0.2);
}

#cbx_aceptoreq+.toggle span:before {
    transform: scale(1);
    opacity: 0;
    transition: all 0.4s ease;
}

.legen {
    background-color: gold;    
}