.checkbox-wrapper {
  display: flex;
  flex-direction: column;
  margin: 8px 0;
}

.checkbox-wrapper.disabled {
  opacity: 0.7;
}

.checkbox-input {
  opacity: 0;
  position: absolute;
  margin: 0;
  z-index: -1;
  width: 0;
  height: 0;
  overflow: hidden;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.checkbox-wrapper.disabled .checkbox-label {
  cursor: not-allowed;
}

.checkbox-ui {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #c8c8c8;
  background-color: white;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex-shrink: 0;
  margin-top: 2px;
}

.checkbox-input:focus-visible + .checkbox-label .checkbox-ui {
  outline: 2px solid var(--theme-selection-color);
  outline-offset: 2px;
}

.checkbox-ui.checked {
  border-color: var(--theme-selection-color);
  background-color: var(--theme-selection-color);
}

.checkbox-ui.indeterminate {
  border-color: var(--theme-selection-color);
  background-color: rgba(0, 122, 255, 0.1);
}

.checkbox-wrapper.disabled .checkbox-ui {
  border-color: var(--theme-border);
  /* background-color: #f5f5f5; */
}

.checkbox-checkmark {
  width: 10px;
  height: 10px;
  stroke: white;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checkbox-wrapper.disabled .checkbox-checkmark {
  stroke: grey;
}

.checkbox-wrapper.disabled .checkbox-ui.checked {
  background-color: #e0e0e0;
  border-color: #e0e0e0;
}

.checkbox-indeterminate {
  width: 12px;
  height: 2px;
  stroke: #007aff;
  stroke-width: 2;
}

.checkbox-wrapper.disabled .checkbox-indeterminate {
  stroke: var(--theme-border);
}

.checkbox-label-text {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.checkbox-label-text:not(:empty) {
  margin-left: 12px;
}

.checkbox-wrapper.disabled .checkbox-label-text {
  color: var(--theme-clr);
}

.checkbox-description {
  margin-left: 30px;
  font-size: 13px;
  color: var(--theme-clr);
  line-height: 1.4;
  margin-top: 4px;
}

.checkbox-wrapper.disabled .checkbox-description {
  color: var(--theme-clr);
}
