/*Input field*/
input[type="checkbox"] {
  appearance: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  display: inline-grid;
  place-content: center;
  border: 0.1rem solid #a69d9d67;
  border-radius: 0.25rem;
  background-color: white;
  vertical-align: middle;
  cursor: pointer;
}

/*Checkmark*/
input[type="checkbox"]::before {
  content: "";
  width: 1rem;
  height: 1rem;
  /* даём полигону «воздух» внутри бокса */
  margin: 0.05rem;
  background-color: #fff;
  clip-path: polygon(24% 46%, 40% 61%, 76% 21%, 84% 29%, 40% 79%, 16% 54%);
  transform: scale(0);
}

/*Checkmark on hover*/
input[type="checkbox"]:not(:checked):not(:disabled):hover::before {
  background-color: #a69d9d67;
  transform: scale(1);
}

/*When checked*/
input[type="checkbox"]:checked {
  background-color: var(--second-blue, #2563eb);
  border: 0.1rem solid #2563eb;
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

/*Focus visible*/
input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--second-blue, #2563eb);
  outline-offset: 2px;
}

/*Disabled*/
input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
