.btn-group {
  > .btn:not(:last-child):not(.dropdown-toggle),
  > .btn-group:not(:last-child) > .btn {
    @include border-right-radius($btn-border-radius);
  }

  > .btn:not(:first-child),
  > .btn-group:not(:first-child) > .btn {
    @include border-left-radius($btn-border-radius);
  }
}
.btn-group,
.btn-group-vertical {
  > .btn {
    position: relative;
    flex: 1 1 auto;

    @include hover() {
      z-index: 0;
    }

    &:focus,
    &:active,
    &.active {
      z-index: 0;
    }
  }

  .btn + .btn {
    margin-left: $btn-spacer;
  }
}
.btn-group-toggle {
  padding: calc(#{$input-padding-y-lg} - 4px) calc(#{$input-padding-x-lg} - 10px);
  background-color: $input-bg;
  border: $input-border-width solid $input-border-color;
  border-radius: $input-border-radius;

  .btn {
    padding-top: calc(#{$input-padding-y-lg} - 5px);
    padding-bottom: calc(#{$input-padding-y-lg} - 5px);
    border-radius: $input-border-radius !important;
    font-size: $input-font-size;
    box-shadow: none;
    border: 1px solid transparent;

    &:focus,
    &.focus {
      background-color: transparent !important;
      box-shadow: none;
      border: 1px solid transparent;
    }

    &:active,
    &.active {
      background-color: $gray-200 !important;
      border: 1px solid $input-border-color !important;
      @include box-shadow($btn-box-shadow);
    }
  }
}
