@import '../mixins/browser';
@import '../mixins/variables';
@import '../mixins/colours';
@import '../typography/mixins';

button,
input[type=submit],
.btn {
  @include antialiased;
  @include cross-browser(appearance, none);
  transition: background-color .3s cubic-bezier(0.215, 0.610, 0.355, 1.000), color .3s cubic-bezier(0.215, 0.610, 0.355, 1.000), border-color .3s cubic-bezier(0.215, 0.610, 0.355, 1.000);

  display: inline-block;
  vertical-align: middle;
  height: $eltHeightM;

  max-width: none;
  margin-bottom: 5px;
  margin-top: 5px;
  padding: 10px 19px 7px;

  background-color: $white;
  color: $black;
  cursor: pointer;
  border: 1px solid $greyBorder;
  @include cross-browser(border-radius, 0);

  font-family: "Body-WebS";
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1.2em;
  text-align: center;
  text-decoration: none;
  text-transform: capitalize;

  @include cross-browser(font-smoothing, antialiased);
  white-space: initial;
  box-shadow: none;
  box-sizing: border-box;

  &:hover {
    background-color: $greySelected;
    border-color: $greySelected;
    color: $black;
  }
  &.btn-small, &.btn-facebook {
    font-size: 14px;
    max-width: initial;
    height: $eltHeightS;
    padding: 7px 15px 7px;
  }
  &.btn-x-small {
    font-size: 12px;
    max-width: initial;
    height: $eltHeightXS;
    padding: 5px 10px;
  }
  &.btn-primary {
    background-color: $black;
    border-color: $black;
    color: $white;
    &:hover {
      background-color: $greyHover;
      border-color: $greyHover;
    }
  }
  &.btn-white {
    background-color: $white;
    color: $black;
    border: 1px solid $black;
    &:hover {
      background-color: $black;
      color: $white;
    }
  }
  &[disabled],
  &[disabled]:hover,
  &.btn-disabled,
  &.btn-disabled:hover {
    background-color: $greySelected;
    border: 1px solid $greySelected;
    color: $greyHeading;
    cursor: default;
    outline: none;
  }
}
