@import 'variables';
.btn {

  &.btn-primary,
  &.btn-default {
    font-family: $font-family-sans-serif-bold;
    font-weight: $font-weight-sans-serif-bold;
    height: 32px;
    padding: 6px 16px;

    img.icon {
      border: none;
      height: 18px;
      -webkit-mask-size: 18px;
      mask-size: 18px;
      margin: 0 4px;
      vertical-align: top;
      min-width: 18px;
      width: 18px;
    }

    &.btn-lg {
      font-weight: $font-size-large;
      height: 48px;
      padding: 12px 24px;

      img.icon {
        height: 24px;
        -webkit-mask-size: 24px;
        mask-size: 24px;
        margin: 0 4px;
        min-width: 24px;
        width: 24px;
      }
    }
  }

  &.btn-primary {
    img.icon {
      background-color: $btn-primary-color;
    }

    &:not(.disabled):hover,
    &:not([disabled]):hover,
    &:focus {
      background-color: $btn-primary-bg-hover;
      border-color: $btn-primary-border-hover;
      outline: none;
    }
  }

  &.btn-default {
    img.icon {
      background-color: $btn-default-color;
    }

    &:not(.disabled):hover,
    &:not([disabled]):hover,
    &:focus {
      background-color: $btn-default-bg-hover;
      border-color: $btn-default-border-hover;
      outline: none;
    }
  }

  * {
    vertical-align: middle;
  }

  &.btn-block {
    margin-bottom: 4px;
  }

  &.btn-flat-icon {
    border: none;
    background-color: transparent;
    color: $text-medium;
    box-shadow: none !important;
    padding: 0px;
    text-align: left;

    &:focus,
    &:not(.disabled):hover,
    &:not([disabled]):hover {
      background-color: transparent;
      color: $brand-color-4;

      .icon {
        background-color: $brand-color-4;
      }
    }
  }


  &.disabled,
  &:disabled {
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    color: $text-medium;
    pointer-events: none;

    &:hover {
      color: $text-medium;
    }
  }
}
