
.form-label {

    @include font-size($font-size-xs);
    color: $text-muted;
}
/*
Select group
 */
.form-selectgroup {
  display: flex;
  flex-wrap: wrap;

  .form-selectgroup-item {
    flex: 0 0 48.5%;
    max-width: 48.5%;
    margin-right: 1.5%;
    margin-bottom: 3%;
  }
  & > .form-selectgroup-item:nth-child(even)  {
    margin-right: 0;
    margin-left: 1%;
  }
}

.form-selectgroup-vertical {
  flex-direction: column;
}

.form-selectgroup-item {
  display: block;
  position: relative;
}

.form-selectgroup-input {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  opacity: 0;
}

.form-selectgroup-label {
  position: relative;
  display: block;
  min-width: $input-height;
  margin: 0;
  padding: .65rem $input-btn-padding-x;
  font-size: $input-btn-font-size;
  line-height: $input-line-height;
  color: $text-muted;
  background: $form-check-input-bg;
  text-align: center;
  cursor: pointer;
  user-select: none;
  border-radius: 3px;

  .icon:only-child {
    margin: 0 -.25rem;
  }

  &:hover {
    color: $body-color;
  }
}

.form-selectgroup-check {
  display: inline-block;
  width: $form-check-input-width;
  height: $form-check-input-width;
  border: $form-check-input-border;
  vertical-align: middle;

  .form-selectgroup-input[type="checkbox"] + .form-selectgroup-label & {
    border-radius: $form-check-input-border-radius;
  }

  .form-selectgroup-input[type="radio"] + .form-selectgroup-label & {
    border-radius: $form-check-radio-border-radius;
  }

  .form-selectgroup-input:checked + .form-selectgroup-label & {
    background-color: $form-check-input-checked-bg-color;
    background-position: center;
    border-color: $form-check-input-checked-border-color;
  }

  .form-selectgroup-input[type="checkbox"]:checked + .form-selectgroup-label & {
    background-image: escape-svg($form-check-input-checked-bg-image);
  }

  .form-selectgroup-input[type="radio"]:checked + .form-selectgroup-label & {
    background-image: escape-svg($form-check-radio-checked-bg-image);
  }
}

.form-selectgroup-check-floated {
  position: absolute;
  top: $input-btn-padding-y;
  right: $input-btn-padding-y;
}

.form-selectgroup-input:checked + .form-selectgroup-label {
  z-index: 1;
  position: relative;
  background-color: $gray-300;
  color: #fff;
  &:after {
    position: absolute;
    left: 6px;
    top: 10px;
    bottom: 10px;
    content: "";
    border-radius: $form-check-input-border-radius;
  background-color: var(--theme-color);
  width: 3px;
  }
}

.form-selectgroup-input:focus + .form-selectgroup-label {
  z-index: 2;
  color: #fff;
}

.form-selectgroup-label-content {
}

/**
Alternate version of form select group
 */
.form-selectgroup-boxes {
  .form-selectgroup-label {
    text-align: left;
    padding: $card-spacer-x $card-spacer-y;
    color: inherit;
  }

  .form-selectgroup-input:checked {
    + .form-selectgroup-label {
      color: inherit;

      .form-selectgroup-title {
        color: $primary;
      }

      .form-selectgroup-label-content {
        opacity: 1;
      }
    }
  }
}

/**
Select group
 */
.form-selectgroup-pills {
  flex-wrap: wrap;
  align-items: flex-start;

  .form-selectgroup-item {
    flex-grow: 0;
  }

  .form-selectgroup-label {
    border-radius: 50px;
  }
}