//
// Button
//
.btn {
  //base
  font-size: $btn-font-size;
  font-weight: 500;
  outline: 0!important;
  background-color: #fff;
  color: rgba($black,.87);
  &-outline{
    background-color: transparent;
    border-width: 1px;
    box-shadow: none!important
  }
  &.rounded{
    padding-left: 1.2em;
    padding-right: 1.2em;
  }
  &.btn-secondary,.white {
    border-color: rgba(120,130,140,.13)
  }
  &.disabled,:disabled {
    background-color: #EAEEF1;
    color:#7B98A7;
  }
  &:not([disabled]) {
    &.active,:focus,:hover {
      box-shadow: inset 0 -10rem 0 rgba(158,158,158,.2)
    }
  }
    // size
  &-md {
    padding: .4695rem .75rem;
    font-size: .9rem
  }
  &-xs {
    padding: .2195rem .5rem;
    font-size: .8rem
  }

  //status
  @each $key, $val in $btn-hover-status-palette {
    $key: quote("#{$key}");
    &.b-#{$key},&.#{$key} {
      &:focus, :hover {
        @include color-bgcolor-set(nth($val,1), nth($val,2))
      }
    }
  }
}

//btn icon
.btn-icon {
  padding: 0!important;
  width: 2.375rem;
  height: 2.375rem;
  line-height: 2.375rem;
  overflow: hidden;
  text-align: center;

  i {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    line-height: inherit;
    border-radius: inherit;
    -webkit-transition: all .3s;
    transition: all .3s
  }
  &.btn-xs {
    @include button-icon-variant(1.5rem,1.5rem,1.5rem);
  }
  &.btn-sm {
    @include button-icon-variant(1.775rem,1.775rem,1.775rem);
  }
  &.btn-lg {
    @include button-icon-variant(3.167rem,3.167rem,3.167rem);
  }

  &.btn-social {
    i:last-child {
      top: 100%
    }
    &.active,&:focus,&:hover{
      i{
        &first-child {
          top: -100%;
        }
        &last-child {
          top: 0;
          color: #fff;
        }

      }

    }
  }
  &.btn-social-colored{
    i{
      &:first-child{
        color: #fff;
      }
    }
  }
}

//btn group
.btn-groups {
  .btn {
    margin-bottom: .25rem;
  }
  &>.btn:not(:first-child){
    margin-left:1px;
  }
  &>[type=radio]{
    position: fixed !important;
    left: -9999px !important;
    top: -9999px !important;
  }
}

.btn .label,.btn-icon,.label.up {
  position: relative
}
.btn>i.pull-left,.btn>i.pull-right {
  line-height: 1.5
}