input[type="radio"] {
  @include ignore-device-rendering();
  outline: none;
  width: 1.25rem;
  height: 1.25rem;
  lineheight: 1.5rem;
  position: relative;
  border: none;
}

input[type="radio"]:hover {
  border: none;
  box-shadow: none;
}

input[type="radio"]:before {
  content: "";
  display: block;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--color-ui-4);
  border: 0.125rem solid var(--color-ui-1-80);
  border-radius: 50%;
}

input[type="radio"]:hover:before {
  box-shadow: 0 0 0 0.25rem var(--color-ui-2-30);
  border-color: var(--color-ui-1)
}

input[type="radio"]:checked:before {
  border-width: 0.375rem;
}

input[type="radio"]:focus:before {
  border: 0.375rem solid var(--color-ui-1);
  box-shadow: 0 0 0 0.25rem var(--color-focus-80);
}

input[type="radio"][disabled]:before, input[type="radio"][disabled]:hover:before {
  border: 0.125rem solid var(--color-ui-1-30);
  box-shadow: none;
}

input[type="radio"][disabled]:checked:before {
  border: 0.375rem solid var(--color-ui-1-30);
}

.radio-item {
  @include flex();
  @include flex-row();
  align-items: center;
  margin-bottom: 1rem;
}

.radio-item > span {
  margin-left: 1rem;
  margin-right: 1rem;
}

input[type="radio"]:focus {
  box-shadow: none;
}

