/* Явная галочка согласия. Кнопка без отметки неактивна. */

.discuss__checkbox,
.lead-form-dark__checkbox-box,
.ai-section__consent-box {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 20px;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.discuss__checkbox {
  color: #cce7c8;
  background: transparent;
}

.lead-form-dark__checkbox-box {
  color: #ebffff;
  background: transparent;
}

.ai-section__consent-box {
  color: #323232;
  background: #fff;
}

.discuss__checkbox:checked,
.lead-form-dark__checkbox-inp:checked + .lead-form-dark__checkbox-box,
.ai-section__consent-inp:checked + .ai-section__consent-box {
  background: #06b781;
  border-color: #06b781;
  color: #fff;
}

.discuss__checkbox:checked::after,
.lead-form-dark__checkbox-inp:checked + .lead-form-dark__checkbox-box::after,
.ai-section__consent-inp:checked + .ai-section__consent-box::after {
  content: "";
  position: absolute;
  top: 42%;
  left: 50%;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  border-radius: 0;
  background: none;
  opacity: 1;
  transform: translate(-50%, -50%) rotate(45deg);
}

.discuss__checkbox {
  position: relative;
}

form [type="submit"]:disabled,
form button[type="submit"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
