

.boxes  input:focus {
    transition: all .5s;  
    border: 2px solid #000 !important;
    color:#000 !important;
}

.boxes input[type="checkbox"]:checked + label { 
    background-color: #f6f6f6;  
    padding:10px; 
    padding-left:15px; 
    padding-right:15px; 
    transition: all .2s;  
    text-align:center;
    font-weight:400; 
    color:#000; 
    border:2px solid #000; 
    outline:none;
    cursor:pointer;
}

.boxes input[type="checkbox"] + label { 
    background-color: #f6f6f6;  
    padding:10px; 
    padding-left:15px; 
    padding-right:15px; 
    transition: all .2s;  
    text-align:center;
    font-weight:400; 
    color:#000; 
    border:2px solid #ccc; 
    outline:none;
    cursor:pointer;
}

.boxes input[type="checkbox"]  {
    display: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    cursor:pointer;
}

  .custom-checkbox input {
    padding: 0;
    height: initial;
    width: initial;
    margin-bottom: 0;
    display: none;
    cursor: pointer;
  }
   
  .custom-checkbox {
    display: block;
    position: relative; 
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
  }
   
  .custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
  }
   
  .checkmark { 
    content:'';
    -webkit-appearance: none;
    background-color: transparent;
    border: 2px solid #000; 
    padding: 8px;
    display: inline-block;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    margin-right: 5px;
  }
  
  .checkmark-after {
    content: "";
    position: absolute;
    display: none;
  }
   
  .custom-checkbox input:checked ~ .checkmark-after {
    display: block;
  }

  .custom-checkbox input:checked ~ .checkmark {
    border: 2px solid #000;
  }
   
  .custom-checkbox .checkmark-after { 
    position: absolute;
    top: 5px;
    left: 7px;
    width: 6px;
    height: 10px;
    border: solid #777;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  } 



  /*----------*/

  .button-checkbox {
    position: relative;
    cursor: pointer;
    display: inline-block;
}

.button-checkbox input[type="checkbox"] {
    display: none;
}

.button-checkbox span {
    padding: 5px 15px;
    background: #eee;
    color: #000;
    border-radius: 50px;
    border: none;
    display: inline-block; 
    margin-right: 5px;
    transition: all 0.3s;
}

.button-checkbox input[type="checkbox"]:checked ~ span {
    background: #000;
    color: #fff;
}
 