.ashp_checkbox {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6em;
  min-height: 44px;
  margin-right: 16px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.ashp_checkbox_input {
  position: absolute;
  left: 0;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 0;
  opacity: 0;
  cursor: pointer;
}

.ashp_checkbox_box {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  background: url("../../files/images/controls/checkbox_unchecked.png") center / contain no-repeat;
  border-radius: 4px;
  pointer-events: none;
}

.ashp_checkbox_input:checked + .ashp_checkbox_box {
  background-image: url("../../files/images/controls/checkbox_checked.png");
}

.ashp_checkbox_input:focus-visible + .ashp_checkbox_box {
  outline: 2px solid #5a7000;
  outline-offset: 2px;
}

.ashp_checkbox_caption {
  line-height: 1.3;
}

.ashp_checkbox:has(.ashp_checkbox_input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
}

.ashp_checkbox_input:disabled {
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .ashp_checkbox {
    display: flex;
    margin-right: 0;
  }
}