.nut-checkboxgroup {
  .nut-checkbox {
    &-button {
      background-color: $color-background;
    }
  }

  &-vertical {
    display: flex;
    flex-direction: column;

    .nut-checkbox {
      margin-bottom: 5px;

      &.nut-checkbox-reverse {
        width: 100%;
        justify-content: space-between;
      }

      &-button-active {
        border: $radio-button-active-border;
        background-color: $color-primary-light-pressed;
      }
    }
  }

  &-horizontal {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

    .nut-checkbox {
      display: inline-flex;
      flex: 1;
      margin-right: 20px;

      &-button-active {
        border: $radio-button-active-border;
        background-color: $color-primary-light-pressed;
      }
    }
  }

  &-list {
    flex-grow: 1;
    border-bottom: $checkbox-list-item-border;
    border-top: $checkbox-list-item-border;
    padding: $checkbox-list-padding;
    background: $checkbox-list-background-color;
    box-sizing: border-box;

    .nut-checkbox {
      margin-bottom: 5px;

      &.nut-checkbox-reverse {
        width: auto;
        flex-grow: 1;
        justify-content: space-between;
      }
    }
    .nut-checkbox-list-item {
      &:first-child {
        border-top: none;
      }
    }
  }
}

[dir='rtl'] .nut-checkboxgroup,
.nut-rtl .nut-checkboxgroup {
  .nut-checkbox {
    &-label {
      margin-right: 5px;
    }
  }

  &-vertical {
    .nut-checkbox {
      &-label {
        margin-right: 5px;
      }
    }
  }

  &-horizontal {
    .nut-checkbox {
      margin-right: 0;
      margin-left: 20px;
    }
  }
}


.nut-cell-group {
  &-wrap-divider {
    .nut-cell {
      &-divider {
        position: absolute;
        box-sizing: border-box;
        pointer-events: none;
        right: $cell-divider-right;
        bottom: 0;
        left: $cell-divider-left;
        transform: scaleY(0.5);
        border-top: $cell-divider-border-bottom;
      }

      &:last-child {
        .nut-cell-divider {
          border-top: 0;
        }
      }
      &:first-child {
        .nut-cell-divider {
          border-top: $cell-divider-border-bottom;
        }
      }

    }
  }
}