button {
  border: 0;
}
.btn {
  @include button;
  display: inline-block;
  &:disabled {
    @extend .btn-no-shadow;
    background: $mo-btn-disabled-background;
    cursor: not-allowed;
    &:hover {
      background: $mo-btn-disabled-background;
    }
  }
  &:focus,
  &.focus {
    outline-width: 1px;
    box-shadow: $input-btn-focus-box-shadow;
  }
}

.btn-primary {
  //@include gradientPrimary;
  background-color: $mo-btn-primary-color;
  @include box-shadow(0 5px 10px 0 rgba(0, 0, 0, 0.15));
  &:hover {
    //@include gradientPrimaryHover;
    background-color: $mo-btn-primary-color-hover;
  }
  &:focus {
    @include box-shadow(0 5px 10px 0 rgba(0, 0, 0, 0.15));
  }
}
.btn-secondary {
  color: $mo-btn-secondary;
  border-color: $mo-btn-secondary;
  background-color: $mo-transparent;
  &:hover {
    background-color: $mo-transparent;
    color: $mo-btn-secondary-hover;
    border-color: $mo-btn-secondary-hover;
  }
  &:focus {
    @include box-shadow(0 0 0 3px rgba(134, 142, 150, 0.5));
  }
}
.btn-link {
  color: $mo-btn-link;
  background: $mo-transparent;
  text-decoration: underline;
  min-width: auto;
  &:hover {
    color: $mo-btn-secondary-hover;
  }
}
.btn-no-shadow {
  @include box-shadow(0 0 0 0);
}

.btn-loader-primary {
  position: relative;
  color: #62a474;
  background-color: #3b8d51;
  &:hover {
    color: #62a474;
    background-color: #3b8d51;
  }
}

.btn-loader-secondary,
.btn-loader-link {
  color: #dccdd4;
  background-color: transparent;
  &:hover {
    color: #dccdd4;
    background-color: transparent;
  }
}

.btn-success {
  background: $mo-btn-bg-success;
  &:hover {
    background-color: $mo-btn-bg-success-hover;
    border-color: $mo-btn-bg-success-border-hover;
  }
  &:focus {
    @include box-shadow(0 0 0 3px rgba(40, 167, 69, 0.5));
  }
}
.btn-info {
  background-color: $mo-btn-bg-info;
  &:hover {
    background-color: $mo-btn-bg-info-hover;
  }
  &:focus {
    @include box-shadow(0 0 0 3px rgba(0, 123, 255, 0.25));
  }
}
.btn-sm {
  @include button-small;
}
.btn-block {
  display: block;
  width: 100%;
}

.btn-warning {
  background-color: $mo-transparent;
  color: $mo-btn-bg-warning;
  border-color: $mo-btn-bg-warning;
  &:hover {
    color: $mo-btn-text-color;
    background-color: $mo-btn-bg-warning;
  }
  &:focus {
    @include box-shadow(0 0 0 3px rgba(255, 193, 7, 0.5));
  }
}
.btn-disabled-danger {
  background-color: $mo-btn-bg-danger;
  cursor: $disabled;
  opacity: 0.65;
}

.btn-danger {
  background-color: $alert-bg-error;
  border-color: $alert-border-color-error;
  color: $alert-border-color-error;
  &:hover {
    background-color: $mo-btn-bg-alert-hover;
    color: white;
  }
}

.btn-circle {
  @extend .rounded-circle;
  @extend .btn-no-shadow;
  height: 70px;
  width: 70px;
  text-align: center;
  padding-top: 20px;
}

.btn-invisible {
  color: $primary-text-color;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  .btn-add {
    color: $mo-btn-add;
    background: transparent;
    @include border-radius(100%);
    border: 1px solid $mo-btn-add;
    height: 40px;
    width: 40px;
    padding: 6px 15px 12px;
  }
  &:hover {
    text-decoration: none;
  }
}

.btn-big {
  &--modal-launcher {
    text-align: left;
    margin-bottom: 5px;
    cursor: pointer;
    background: none;
  }
}
.btn-white {
  color: $mo-white;
  background: transparent;
  border-color: $mo-white;
}
.btn-bean {
  border-radius: 20px;
  padding: 3px 14px;
  font-size: 0.8rem;
  @extend .mb-2;
  .icon--delete {
    width: 14px;
    height: 14px;
    position: relative;
    top: -1px;
    right: -6px;
  }
}
.btn-switch {
  .btn {
    padding: 5px 0 5px;
    width: 70px;
  }
  .btn-switch--left {
    @extend .btn-no-shadow;
    margin-right: -5px;
    border-right: 0;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
  }
  .btn-switch--right {
    @extend .btn-no-shadow;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    border-left: 0;
  }
}
.btn-cursor--pointer {
  cursor: pointer;
}

.link,
a:not([href]):not([tabindex]) {
  text-decoration: none;
  color: $link-color;
  cursor: pointer;
  &:hover {
    text-decoration: underline;
    color: $link-hover-color;
  }
}

.link-sm {
  @extend .link;
  font-size: 14px;
}

.btn-group {
  .btn-secondary {
    border: 1px solid $mo-btn-secondary;
    color: $mo-btn-secondary;
    &:hover {
      color: $mo-white;
      border-color: $mo-btn-secondary;
      background-color: $mo-btn-secondary;
    }
    &:focus {
      color: $mo-white;
      border-color: $mo-btn-secondary;
      background-color: $mo-btn-secondary;
      outline-width: 1px;
    }
    &:disabled {
      background: $mo-white;
      color: $mo-disabled;
      border-color: $mo-disabled;
    }
    &:focus {
      &:disabled {
        color: $mo-white;
        background-color: $mo-disabled;
      }
    }
  }
  .active {
    color: $mo-white;
    border-color: $mo-btn-secondary;
    background-color: $mo-btn-secondary;
  }
}
.btn-disabled {
  background-color: $mo-white;
  color: $mo-disabled;
  border-color: $mo-disabled;
}
.btn-disabled.active {
  background-color: $mo-disabled;
  color: $mo-white;
  border-color: $mo-disabled;
}
.button-group {
  .btn-disabled {
    background-color: $mo-white;
    color: $mo-disabled;
    border-color: $mo-disabled;
  }
}
.btn-icon {
  .icon {
    max-width: 24px;
    max-height: 24px;
  }
  .icon--arr-left-16 {
    width: 17px;
    height: 17px;
    vertical-align: middle;
    margin-right: 4px;
  }
  .icon--plus {
    width: 16px;
    height: 17px;
  }
}
.input-group {
  .input-group-btn {
    .btn-secondary {
      background-color: $mo-white;
      border-color: $pagination-border-color;
      border-left: 0;
      border-right: 0;
    }
    .btn-primary {
      background-color: $mo-white;
      border-color: $pagination-border-color;
      border-left: 0;
    }
  }
}

.btn-accordeon {
  background-color: transparent;
  border-radius: 0;
  color: $mo-black;
  padding-left: 0;
  text-align: left;
  white-space: normal;
  &:hover {
    background-color: $dropdown-item-hover;
  }
}
