// SalesCrowd Buttons
%button, .button {
    -webkit-font-smoothing: antialiased;
    background-color: darken($business-hub-primary-dark, 15%);
    border-radius: $base-border-radius;
    color: $white !important;
    display: inline-block;
    font-size: $base-font-size;
    font-weight: bold;
    line-height: 1;
    padding: 0.75em 1em;
    margin: 0.5em 2em 0.5em 0;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    @include transition(all .25s ease-in-out);
    &:hover, &:focus {
        background-color: darken($business-hub-primary-dark, 5%);
        color: white;
    }
    &:disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }
     &.button-small {
    padding: 0.5em 0.5em;
         font-size: 0.9em;
    }
  &.button-up {
    margin-top: 0px;
    color: $white !important;
    height: 100%;
    @include transition(all .25s ease-in-out);
    border: 0;
    border-radius: 0;
    padding-left: 2em;
    padding-right: 2em;
  }
    &.button-large {
    padding: 1em 2em;
        font-size: 1.2em;
    }
    &.button-no-margin {
      margin-right: 0;
    }
    &.button-wide-50 {
    padding: 1em 2em;
        width: 50%;
    }
  &.button-wide-80 {
    padding: 1em 2em;
    width: 80%;
  }
    &.button-wide-100 {
    padding: 1em 2em;
        width: 100%;
    }
    &.button-supersize-me {
    padding: 1em 2em;
        font-size: 1.5em;
        font-weight: 900;
    }
    &.button-square {
    border-radius: 0;
    }
    &.button-red {
    background-color: $business-hub-red;
        &:hover, &:focus {
        background-color: darken($business-hub-red, 10%);
        }
    }
     &.button-green {
    background-color: $salescrowd-green;
          color: darken($salescrowd-green, 50%);
        &:hover, &:focus {
        background-color: darken($salescrowd-green, 10%);
            color: $white;
        }
    }
     &.button-blue {
    background-color: $business-hub-primary;
        &:hover, &:focus {
        background-color: darken($business-hub-primary, 10%);
        }
    }
     &.button-gold {
    background-color: $salescrowd-gold;
         color: darken($salescrowd-gold, 50%);
        &:hover, &:focus {
        background-color: darken($salescrowd-gold, 10%);
        }
    }
    &.button-earth {
    background-color: $salescrowd-earth;
        &:hover, &:focus {
        background-color: darken($salescrowd-earth, 10%);
        }
    }
}

.button-group {  
  ///////////////////////////////////////////////////////////////////////////////////
  $base-border-color: gainsboro !default;
  $base-border-radius: 3px !default;
  $base-line-height: 1.5em !default;
  $base-spacing: 1.5em !default;
  $base-font-size: 1em !default;
  $base-background-color: white !default;
  $base-accent-color: $salescrowd-earth !default;
  $base-link-color: $base-accent-color !default;
  $dark-gray: #333 !default;
  $large-screen: em(860) !default;
  $base-font-color: $dark-gray !default;
  //////////////////////////////////////////////////////////////////////////////////

  $button-group-background: $salescrowd-warm-light-gray;
  $button-group-background-checked: $base-accent-color;
  $button-group-color-checked: white;
  $button-group-border-checked: darken($button-group-background-checked, 15%);

  input {
    display: none;
  }

  label {
    margin-bottom: 0;

    @include media($large-screen) {
      float: left;
    }

    .button-group-item {
      background: $salescrowd-warm-light-gray;
      border-radius: 0;
      color: $salescrowd-earth;
      cursor: pointer;
      display: inline-block;
      font-size: $base-font-size;
      font-weight: normal;
      line-height: 1;
      padding: 0.75em 1em;
      width: 100%;

      @include media($large-screen) {
        width: auto;
      }

      &:focus,
      &:hover {
        background-color: darken($button-group-background, 3%);
      }
    }

    &:first-child .button-group-item {
      border-top-left-radius: $base-border-radius;
      border-top-right-radius: $base-border-radius;

      @include media($large-screen) {
        border-bottom-left-radius: $base-border-radius;
        border-top-left-radius: $base-border-radius;
        border-top-right-radius: 0;
      }
    }

    &:last-child .button-group-item {
      border-bottom-left-radius: $base-border-radius;
      border-bottom-right-radius: $base-border-radius;

      @include media($large-screen) {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: $base-border-radius;
        border-top-right-radius: $base-border-radius;
      }
    }

    input:checked + .button-group-item {
      background: $salescrowd-orange;
        a {
      color: $white;
            font-weight: 900;
        }
    }
  }
}