.checkbox-group {
  display: flex;
  flex-direction: column;
  padding-top: 0.5rem;
}

.checkbox-group__checkbox {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 0.5rem;
}

.checkbox-group__checkbox-child,
.checkbox-group__checkbox-child-open {
  position: relative;
  left: 1.7rem;
  display: none;
}

.checkbox-group__checkbox-child-open {
  display: flex;
}

.checkbox-group__input {
  opacity: 0;
}

.checkbox-group__label {
  margin-bottom: 0;
  padding-left: 0.5rem;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.checkbox-group__label:hover,
.checkbox-group__check:hover,
.checkbox-group__check-active:hover,
.checkbox-group__check-dash:hover {
  cursor: pointer;
  user-select: none;
}

.checkbox-group__check,
.checkbox-group__check-active,
.checkbox-group__check-dash {
  flex: 0 0 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid var(--color-gray-600);
  border-radius: 2px;
  position: relative;
  background-color: var(--color-white);
  outline: none;
}

.checkbox-group__check-active,
.checkbox-group__check-dash {
  background-color: var(--color-gray-600);
}

.checkbox-group__check-active::after {
  content: '';
  position: absolute;
  border: solid #fff;
  display: block;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-group__check-dash::after {
  content: '';
  position: absolute;
  border: solid #fff;
  display: block;
  left: 3px;
  top: 1px;
  width: 8px;
  height: 7px;
  border-width: 0 0 2px 0;
}

.btn.btn-ghost.checkbox-group__show-btn {
  padding: 0;
  display: inline-flex;
}
