.df-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  cursor: pointer;
}

.df-radio__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.df-radio__box {
  display: inline-block;
  flex-shrink: 0;
  width: 1em;
  height: 1em;
  border: 1px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.df-radio__box::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: currentColor;
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.15s ease;
}

.df-radio__input:checked ~ .df-radio__box::after {
  transform: scale(1);
}

.df-radio__input:focus-visible ~ .df-radio__box {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.df-radio {
  color: #0f0f0f;
  user-select: none;
}
