/*------------------------------------------------------------
BUTTONS CUSTOM
====================================*/

/* Variables Custom */
$btn-top-width: 4.6rem !default;
$btn-top-height: 4.6rem !default;
$btn-top-bg: $dark !default;
$btn-top-color: $white !default;
$btn-top-hover-bg: $primary !default;
$btn-top-hover-color: $white !default;
$btn-top-font-size: 1rem !default;
$btn-top-border-width: 0 !default;
$btn-top-border-color: transparent !default;
$btn-top-icon: str-replace(url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='#{$btn-top-color}' d='M8,0,6.545,1.455l5.506,5.506H0V9.039H12.052L6.545,14.545,8,16l8-8Z'/%3E%3C/svg%3E%0A"), "#", "%23") !default;
$btn-top-icon-width: 1.6rem !default;
$btn-top-icon-height: 1.6rem !default;
/***************************************/

// Icon
.btn {
  svg {
    fill: $white;
  }
  &:not(.disabled):not(:disabled) {
    .svg-redo {
      animation: spin 1.5s linear infinite;
    }
  }
}
.btn-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  .btn-icon-svg {
    width: 3.5rem;
    margin-left: 1.3rem;
    flex-shrink: 0;
  }
  &:after, &:before {
    display: none;
  }
}
.btn-no-chevron {
  &:after, &:before {
    display: none;
  }
}

.btn-round {
  width: 5rem;
  height: 5rem;
  padding: 0;
  &:after {
    display: none;
  }
}

.btn-square {
  @extend .btn-round;
  border-radius: 0;
}

/* Back to top */
.btn-back-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  width: $btn-top-width;
  height: $btn-top-height;
  font-size: $btn-top-font-size;
  text-align: center;
  text-decoration: none;
  line-height: $btn-top-font-size;
  color: $btn-top-color;
  background: $btn-top-bg;
  border: $btn-top-border-width solid $btn-top-border-color;
  &:before {
    content: '';
    display: block;
    width: $btn-top-icon-width;
    height: $btn-top-icon-height;
    margin-bottom: 0.3rem;
    background: {
      image: $btn-top-icon;
      repeat: no-repeat;
      size: contain;
    };
    transform: rotate(-90deg);
  }
  &:after {
    display: none;
  }
  &:hover, &:focus, &:active {
    color: $btn-top-hover-color;
    background: $btn-top-hover-bg;
  }
}

/* Help */
.btn-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  font-size: 2rem;
  font-weight: $font-weight-bold;
  &:not(:disabled):not(.disabled):hover {
    box-shadow: none;
  }
}

.btn-increment, .btn-decrement {
  &:before, &:after {
    display: none;
  }
}

// Btn link
button.link-secondary {
  padding: 0;
}
