﻿.checkbox-custom-container { /* Customize the label (the container) */
    display: block;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 25px;
    height: 25px;
}

.checkbox-custom-sm { /* Customize the label (the container) */
    width: 20px;
    min-width: 20px;
    height: 20px;
}

.checkbox-custom-xs {
    width: 15px;
    min-width: 15px;
    height: 15px;
}

.checkbox-custom-lg {
    width: 35px !important;
    min-width: 35px;
    height: 35px;
}

.checkbox-custom-center {
	clear: both;
	float: none;
	margin: auto;
}

.checkbox-custom-container input { /* Hides original checkbox */
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 25px;
    width: 25px;
}

.checkbox-custom-span { /* Creates custom checkbox */
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: white;
    border: solid 1px;
    border-radius: 25%;
}

.checkbox-custom-container:hover input ~ .checkbox-custom-span { /* Gray background on mouse-over */
    background-color: #ccc;
}

.checkbox-custom-container input:checked ~ .checkbox-custom-span { /* When the checkbox is checked, add a blue background */
    background-color: #2196F3; /* Color default, se pisa con el css de tema */
}

.checkbox-custom-span:after { /* Create the checkmark/indicator (hidden when not checked) */
    content: "";
    position: absolute;
    display: none;
}

.checkbox-custom-container input:checked ~ .checkbox-custom-span:after { /* Show the checkmark when checked */
    display: block;
}

.checkbox-custom-container .checkbox-custom-span:after { /* Style the checkmark/indicator */
    left: 38%;
    top: 24%;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.checkbox-custom-lg .checkbox-custom-span:after {
    left: 35%;
    top: 15%;
    width: 11px;
    height: 20px;
    border: solid white;
    border-width: 0 4px 4px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.checkbox-custom-xs .checkbox-custom-span:after {
    left: 29%;
    top: 9%;
    width: 6px;
    height: 9px;
}

@media (max-width: 420px) {
    .checkbox-custom-xs-mobile, .checkbox-custom-container input {
        margin-right: -3px !important;
        width: 12px;
        height: 12px;
    }

    .checkbox-custom-xs-mobile .checkbox-custom-span:after {
        left: 29%;
        top: 4%;
        width: 5px;
        height: 8px;
    }
}