$checkbox-color: #d4bea2;

.root {
  position: relative;
  display: inline-block;
  width: 20px;
  min-width: 20px;
  height: 20px;
  flex-shrink: 0;
  cursor: pointer;
  vertical-align: top;
  margin: 0;
  padding: 0;
}

.input {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  opacity: 0;
  width: 20px !important;
  height: 20px !important;
  margin: 0;
  padding: 0;
  cursor: pointer;
}

.mark {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  background-color: #fff;
  border: 2px solid $checkbox-color;
  border-radius: 50%;
  box-sizing: border-box;
  pointer-events: none;

  &::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
  }
}

.input:checked ~ .mark {
  background-color: $checkbox-color;

  &::after {
    display: block;
  }
}
