/**** filter switch ***/
.switch-label,
.switch-label::before,
.switch-label::after {
    transition: 400ms all ease-in-out 50ms;
    box-sizing: border-box;
    backface-visibility: hidden;
}

/* Estilos base para el switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 34px;
}

/* Estilos del input checkbox oculto */
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Estilos del fondo del switch */
.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 34px;
}

/* Estilos del indicador del switch */
.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

/* Cambia el fondo del switch cuando está activado */
.toggle-switch input:checked + .slider {
    background-color: rgba(73,168,68,1);
}

/* Mueve el indicador del switch cuando está activado */
.toggle-switch input:checked + .slider:before {
    -webkit-transform: translateX(46px);
    -ms-transform: translateX(46px);
    transform: translateX(46px);
}

/***** start radio input in activity form *****/
.rating-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    width: 100%;
}

.rating-text p {
    color: rgba(0, 0, 16, 0.8);
    font-size: 1.3rem;
    padding: 0.3rem;
}

.rating {
    background-color: rgba(0, 0, 16, 0.8);
    border-radius: 2.2rem;
}

.gender-label {
    margin: 2px;
}

#radios label {
    position: relative;
}

.activity-gender {
    position: absolute;
    opacity: 0;
}

.radio-image {
    width: 35px;
}

.activity-gender + img {
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
    cursor: pointer;
}
/***** end radio button in activity form ******/

/***** start activity progress bar ******/
.progress-title{
    font-size: 18px;
    font-weight: 700;
    color: #000;
    margin: 0 0 10px;
}
.progress-outer{
    width: 80%;
    padding: 5px 70px 5px 5px;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    margin: auto;
}
.progress{
    background: #bebfbf;
    border-radius: 20px;
    margin: 0;
}
.progress .progress-bar{
    border-radius: 20px;
    box-shadow: none;
    animation: animate-positive 2s;
}
.progress .progress-value{
    font-size: 15px;
    font-weight: 700;
    color: #6b7880;
    position: absolute;
    top: 2px;
    right: 10px;
}
@keyframes animate-positive{
    0%{
        width: 0;
    }
}
/***** end activity progress bar ******/

/***** checkbox for days in week of an activity *****/
.weekDays-selector input {
    display: none!important;
}

.weekDays-selector input[type=checkbox] + label {
    display: inline-block;
    border-radius: 6px;
    background: #dddddd;
    height: 40px;
    width: 40px;
    margin-right: 3px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
}

.weekDays-selector.services input[type=checkbox] + label {
    display: inline-block;
    border-radius: 6px;
    background: #dddddd;
    height: 30px;
    width: 30px;
    margin-right: 3px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
}

.weekDays-selector input[type=checkbox]:checked + label {
    background: #28a745;
    color: #ffffff;
}
/***** end checkbox for days in week of an activity *****/

.switch_box{
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.input_wrapper{
    width: 80px;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
}

.input_wrapper input[type="checkbox"]{
    width: 60px;
    height: 30px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: #315e7f;
    border-radius: 2px;
    position: relative;
    outline: 0;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.input_wrapper input[type="checkbox"]:disabled{
    opacity: 0.5;
}

.input_wrapper input[type="checkbox"]:after{
    position: absolute;
    content: "";
    top: 3px;
    left: 3px;
    width: 26px;
    height: 23px;
    background: #dfeaec;
    z-index: 2;
    border-radius: 2px;
    -webkit-transition: all .35s;
    transition: all .35s;
}

.input_wrapper svg{
    position: absolute;
    top: 36%;
    -webkit-transform-origin: 50% 50%;
    transform-origin: 50% 50%;
    fill: #fff;
    -webkit-transition: all .35s;
    transition: all .35s;
    z-index: 1;
}

.input_wrapper .is_checked{
    width: 11px;
    left: 11%;
    -webkit-transform: translateX(190%) translateY(-30%) scale(0);
    transform: translateX(190%) translateY(-30%) scale(0);
}

.input_wrapper .is_unchecked{
    width: 11px;
    right: 37%;
    -webkit-transform: translateX(0) translateY(-30%) scale(1);
    transform: translateX(0) translateY(-30%) scale(1);
}

/* Checked State */
.input_wrapper input[type="checkbox"]:checked{
    background: #23da87;
}

.input_wrapper input[type="checkbox"]:checked:after{
    left: calc(100% - 31px);
}

.input_wrapper input[type="checkbox"]:checked + .is_checked{
    -webkit-transform: translateX(0) translateY(-30%) scale(1);
    transform: translateX(0) translateY(-30%) scale(1);
}

.input_wrapper input[type="checkbox"]:checked ~ .is_unchecked{
    -webkit-transform: translateX(-190%) translateY(-30%) scale(0);
    transform: translateX(-190%) translateY(-30%) scale(0);
}

/********* member group schedule (inscription) ******/
.member-group-schedule label {
    cursor: pointer;
    display: block;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
    margin: 0 10px;
    position: relative;
}

.member-group-schedule input {
    border-radius: 100%;
    box-shadow:
        0.1em 0 0 #2726267f inset,
        -0.1em 0 0 #27262600 inset,
        0 0.1em 0 #afa490 inset,
        0 -0.1em 0 #ffffff3f,
        0 0.1em 0.3em #0000007f,
        0 -0.1em 0 #926086 inset,
        -0.1em -0.2em 0 #ffffff7f inset;
    cursor: pointer;
    display: block;
    margin-bottom: 0.5em;
    margin:auto;
    width: 20%;
    height: 1em;
    transition: box-shadow var(--transDur) ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.member-group-schedule input:checked {
    background-image: linear-gradient(#ffffff 33%,#414751 58%,#827a7b,#c0b6ac,#c3adaa);
    box-shadow:
        0.1em 0 0 #272626af inset,
        -0.1em 0 0 #272626 inset,
        0 0.1em 0 #847a62 inset,
        0 -0.1em 0 #ffffff3f,
        0 0.1em 0 #ffffff7f,
        0 -0.1em 0 #722257 inset,
        -0.1em -0.2em 0 #ffffff7f inset;
}
.member-group-schedule input:checked + span {
    opacity: 1;
}
.member-group-schedule input:focus {
    outline: transparent;
}
.member-group-schedule input + span {
    opacity: 0.65;
    transition: opacity var(--transDur) ease-in-out;
}
.member-group-schedule .fa-utensils {
    top: -18px;
    right: 44%;
    color: grey;
}