/* Checkbox (label) wrapper */
.sw-checkbox{
    position: relative; 
    display: inline-block;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
  }
  
  /* To Hide Real CheckBox */
  .sw-checkbox > input[type=checkbox] {
    opacity: 0;
    position: absolute;
    margin: 0;
    z-index: -1;
    width: 0;
    height: 0;
    overflow: hidden;
    left: 0;
    pointer-events: none;
  }
  
  /* Dummy Checkbox */
  .sw-checkbox > input[type=checkbox] ~ .sw-check{
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    color: var(--theme-primary);
    border: 2px solid;
    border-radius: 2px;
    overflow: hidden;
    z-index: 1; 
    top: 5px;
    right: 0px;
    margin-right: 3px;
  }
  
  .sw-checkbox > input[type=checkbox] ~ .sw-check:before {
    position: absolute;
    content: "";
    width: 0;
    height: 0;
    transform: rotate(45deg);
    display: inline-block;
    margin-top: -4px;
    margin-left: 6px;
    box-shadow: 0 0 0 0, 0 0 0 0, 0 0 0 0, 0 0 0 0, 0 0 0 0, 0 0 0 0, 0 0 0 0 inset;
    animation: checkbox-off 0.3s forwards ease-out;
  }
  
  /* Tick on Checkbox On */
  .sw-checkbox > input[type=checkbox]:checked ~ .sw-check:before {
    box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0px 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 20px -12px 0 11px;
    animation: checkbox-on 0.3s forwards ease-out;
  }
  
  .sw-checkbox > input[type=checkbox]:checked ~ .sw-checkbox-ripple{
    position: absolute;
    left: 10px;
    top: 10px;
    background-color: rgba(32,33,36,0.122);
    border: none;
    box-shadow: inset 0 0 0 1px #bdc1c6;
    transform: scale(1);
    height: 4px;
    width: 4px;
    border-radius: 100%;
    z-index: 1;
    opacity: 0;
    margin: 0; 
    animation: rippleOn 0.7s forwards ease-out;
  }
  
  .sw-checkbox > input[type=checkbox]:not(:checked) ~ .sw-checkbox-ripple{
    position: absolute;
    left: 10px;
    top: 12px;
    background-color: rgba(32,33,36,0.122);
    border: none;
    box-shadow: inset 0 0 0 1px #bdc1c6;
    transform: scale(1);
    height: 4px;
    width: 4px;
    border-radius: 100%;
    z-index: 1;
    opacity: 0;
    margin: 0; 
    animation: rippleOff 0.7s forwards ease-out;
  }
  
  @keyframes checkbox-on {
    0% {
      box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0px 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 15px 2px 0 11px; 
    }
    50% {
      box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0px 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 20px 2px 0 11px; 
    }
    100% {
      box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0px 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 20px -12px 0 11px; 
    } 
  }
  
  @keyframes checkbox-off {
    0% {
      box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0px 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 20px -12px 0 11px, 0 0 0 0 inset; 
    }
    25% {
      box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0px 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 20px -12px 0 11px, 0 0 0 0 inset; 
    }
    50% {
      transform: rotate(45deg);
      margin-top: -4px;
      margin-left: 6px;
      width: 0px;
      height: 0px;
      box-shadow: 0 0 0 10px, 10px -10px 0 10px, 32px 0px 0 20px, 0px 32px 0 20px, -5px 5px 0 10px, 15px 2px 0 11px, 0 0 0 0 inset; 
    }
    51% {
      transform: rotate(0deg);
      margin-top: -2px;
      margin-left: -2px;
      width: 20px;
      height: 20px;
      box-shadow: 0 0 0 0, 0 0 0 0, 0 0 0 0, 0 0 0 0, 0 0 0 0, 0 0 0 0, 0px 0px 0 10px inset; 
    }
    100% {
      transform: rotate(0deg);
      margin-top: -2px;
      margin-left: -2px;
      width: 20px;
      height: 20px;
      box-shadow: 0 0 0 0, 0 0 0 0, 0 0 0 0, 0 0 0 0, 0 0 0 0, 0 0 0 0, 0px 0px 0 0px inset; 
    } 
  }
  
  @keyframes rippleOn {
    0% {
      opacity: 0.5; 
    }
    100% {
      opacity: 0;
      transform: scale(13, 13); 
    } 
  }
  
  @keyframes rippleOff {
    0% {
      opacity: 0.5; 
    }
    100% {
      opacity: 0;
      transform: scale(13, 13); 
    } 
  }