@keyframes ripple {
  0% {
    box-shadow: 0px 0px 0px 1px transparent;
  }
  50% {
    box-shadow: 0px 0px 0px 15px rgba(0, 0, 0, 0.1);
  }
  100% {
    box-shadow: 0px 0px 0px 15px transparent;
  }
}

/* Checkbox & Radio Styles */
input[type='radio']:not(.tsr-radio),
input[type='checkbox']:not(.toggle) {
  display: none;
  cursor: pointer;
}

input[type='radio']:not(.tsr-radio):focus
, input[type='radio']:not(.tsr-radio):active
, input[type='checkbox']:not(.toggle):focus
, input[type='checkbox']:not(.toggle):active  {
	outline: none;
}

input[type='radio']:not(.tsr-radio) + label,
input[type='checkbox']:not(.toggle) + label {
  cursor: pointer;
  display: inline-block;
  position: relative;
  margin: 0 !important;
  line-height: calc(1.231rem + 2px);
  height: calc(1.231rem + 2px);
  width: calc(1.231rem + 2px);
  box-sizing: border-box;
}

input[type="checkbox"] + label + label,
input[type="radio"] + label + label  {
	margin:0;
	margin-left: 0.75em;
	margin-bottom: 0px;
}

input[type='radio'][disabled]:not(.tsr-radio) + label,
input[type='checkbox']:not(.toggle)[disabled] + label,
input[type='radio'][disabled]:not(.tsr-radio) + label + label,
input[type='checkbox']:not(.toggle)[disabled] + label + label {
	opacity: 0.6;
	cursor: not-allowed;
}

input[type='radio']:not(.tsr-radio) + label::before
, input[type='radio']:not(.tsr-radio) + label::after
, input[type='checkbox']:not(.toggle) + label::before
, input[type='checkbox']:not(.toggle) + label::after {
  content: '';
  display: inline-block;
  width: calc(1.231rem + 2px);
  height: calc(1.231rem + 2px);
  left: 0;
  bottom: 0;
  text-align: center;
  position: absolute;
  box-sizing: border-box;
}

input[type='radio']:not(.tsr-radio) + label::before,
input[type='checkbox']:not(.toggle) + label::before   {
	background-color: #fafafa;
	transition: all 0.3s ease-in-out;
	border: 2px solid #aaa;
}

input[type='radio']:not(.tsr-radio) + label::after,
input[type='checkbox']:not(.toggle) + label::after  {
	color: #fff;
}

input[type='radio']:checked:not(.tsr-radio) + label::before,
input[type='checkbox']:not(.toggle):checked + label::before {
  	animation: ripple 0.2s linear forwards;
	border-color: var(--hrworks-blue);
}

/*Radio Specific styles*/
label + input[type='radio']:not(.tsr-radio) + label {
	margin-left: 15px !important;
}

input[type='radio']:not(.tsr-radio) + label
, input[type='radio']:not(.tsr-radio) + label::before
, input[type='radio']:not(.tsr-radio) + label::after {
	height: calc(1.231rem + 4px);
	width: calc(1.231rem + 4px);
	line-height: calc(1.231rem + 4px);
}

input[type='radio']:not(.tsr-radio) + label {
	min-width: calc(1.231rem + 4px);
}


input[type='radio']:not(.tsr-radio) + label::before  {
	border-radius: 50%;
}

input[type='radio']:not(.tsr-radio) + label::after  {
	position: absolute;
	top: calc(0.6155rem / 2 + 2px);
	left: calc(0.6155rem / 2 + 2px);
	height: 0.6155rem;
	width: 0.6155rem;
	border-radius: 50%;
	transform: scale(0);
	transition: all 0.3s;
}

input[type='radio']:not(.tsr-radio) + label:hover::after  {
	transform: scale(1);
	background: #c7c7c7;
}

input[type='radio']:checked:not(.tsr-radio) + label::after
, input[type='radio']:checked:not(.tsr-radio) + label:hover::after {
	transform: scale(1);
	background: var(--hrworks-blue);
}

label + input[type='checkbox']:not(.toggle) + label {
	margin-left: 15px;
}

input[type='checkbox']:not(.toggle)+label::before {
	border-radius: 4px;
}

input[type='checkbox']:not(.toggle):checked+label::before {
	animation-fill-mode: none;
	box-shadow: inset 0 0 0 1.231rem var(--hrworks-blue);
}

input[type='checkbox']:not(.toggle) + label:hover::after, input[type='checkbox']:not(.toggle):checked + label::after  {
	content: "\f00c";
	line-height: 20px;
	font-size: 14px;
	font-family: 'Font Awesome 5 Pro';
	font-weight: 400;
}

input[type='checkbox']:not(.toggle) + label:hover::after {
  color: #c7c7c7;
}

input[type='checkbox']:not(.toggle):checked + label::after, input[type='checkbox']:not(.toggle):checked + label:hover::after {
  color: #fff;
}

/*Toggle Specific styles*/
input[type='checkbox'].toggle {
  display: inline-block;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 55px;
  height: 22px;
  background-color: #fafafa;
  position: relative;
  border-radius: 30px;
  @inlcude box-shadow(none);
  transition: all 0.2s ease-in-out;
  border: 1px solid #aaa;
}

input[type='checkbox'].toggle:hover::after {
  background-color: #c7c7c7;
}

input[type='checkbox'].toggle::after {
  content: '';
  display: inline-block;
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: #aeaeae;
  top: 2px;
  left: 2px;
  border-radius: 50%;
  transition: all 0.2s ease-in-out;
}

input[type='checkbox']:checked.toggle {
  box-shadow: inset 0 0 0 15px var(--hrworks-blue);
}

input[type='checkbox']:checked.toggle::after {
  left: 34px;
  background-color: #fff;
}
/* End of checkbod & radio styles */
