.checkbox {
  display: flex;
  align-items: center;
    max-width: 267px;
  margin-bottom: 9px;
}

.checkbox__input {
  display: none;
}

.checkbox label {
  margin: 0;
}

.checkbox span {
  color: #fff;
}

.checkbox__label {
  padding-left: 10px;
}

.checkbox__icon {
  position: relative;
  cursor: pointer;
  height: 24px;
  width: 24px;
  min-height: 24px;
  min-width: 24px;
}

.checkbox__icon::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #fff;
  border-radius: 4px;
}

.checkbox__icon::after {
  transition: transform 0.5s ease 0s;
  content: "";
  width: 70%;
  height: 70%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background-color: #7a956b;
  border-radius: 4px;
}

.checkbox__image .checkbox__icon::after {
  display: none;
}

.checkbox__image .checkbox__icon_active {
  transition: transform 0.5s ease 0s;
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
}

.checkbox__image .checkbox__icon_active img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.checkbox._active .checkbox__icon::after {
  transform: translate(-50%, -50%) scale(1);
}

.checkbox._active.checkbox__image .checkbox__icon_active {
  transform: translate(-50%, -50%) scale(1);
}

.checkbox.error .checkbox__icon::before {
  border: 1px solid #F03D3E;
}