/**
 * Buttons
 */
.def-button {
  $this: &;

  border: 0;
  height: 40px;
  line-height: 40px;
  color: $white;
  text-align: center;
  text-transform: capitalize;
  font-family: primary-semibold, secondary-semibold;
  font-size: 14px;
  padding: 0 20px;
  display: inline-block;
  white-space: nowrap;
  background-color: transparent;
  @include border-radius(4px);
  @include align-items(center);
  @include justify-content(center);
  @include transition(background-color 0.3s, color 0.3s, border-color 0.3s);

  &:hover {
    cursor: pointer;
  }

  &--primary {
    background-color: $primary;

    &:hover {
      background-color: $black;
    }
  }

  &--secondary {
    color: rgba($grey, 0.85);
    background-color: $white;
    border: 1px solid #bbbbbb;

    &:hover {
      color: $white;
      background-color: $black;
    }
  }

  &--tertiary {
    color: $white;
    background-color: $black;

    &:hover {
      background-color: $primary;
    }
  }

  &--outline {
    color: $white;
    border: 1px solid $white;

    &:hover {
      color: $white;
      border-color: $primary;
      background-color: $primary;
    }

    &-primary {
      color: $black;
      border-color: $primary;
    }

    &-secondary {
      color: $black;
      border-color: $black;

      &:hover {
        border-color: $black;
        background-color: $black;
      }
    }
  }

  &__icon {
    padding: 12px 22px;
    height: 48px;
    font-size: 16px !important;
    line-height: 24px;

    .button-img {
      margin-right: 10px;
    }

    .button-text {
      vertical-align: super;
    }

    &--right {
      padding-right: initial;
      padding-left: 8px;
    }
  }

  &--md {
    height: 44px;
    line-height: 44px;
    font-size: 14px;
    @include border-radius(4px);

    #{$this}__icon {
      font-size: 12px !important;
    }
  }

  &--sm {
    height: 40px;
    line-height: 40px;
    font-size: 12px;
    @include border-radius(2px);
  }
}

.button-icon {
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  font-size: 16px;
  @include border-radius(2px);

  &.btn-secondary-light {
    color: $secondary;
    background-color: rgba($grey, 0.7);

    &:hover {
      color: $white;
      background-color: $primary;
    }
  }
}

@media (max-width: 992px) {
  .def-button {
    $this: &;
    padding: 0 15px;

    &__icon {
      font-size: 12px !important;
    }
  }
}
