@mixin reset-button {
  background: transparent;
  appearance: none;
  outline: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  &:focus {
    outline: none;
  }
  &:disabled {
    pointer-events: none;
  }
}

@mixin misc-button {
  width: 55px;
  height: 55px;
  width: 5.5rem;
  height: 5.5rem;
  position: relative;
  box-shadow: box-shadow(quinary);
  background-color: $color-primary;
  border-radius: border-radius(quinary);
  transition: background-color transition(fast);
  img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
  }
  &:hover, &:focus {
    background-color: $color-secondary;
  }
}

@mixin sharp-button {
  height: 45px;
  height: 4.5rem;
  min-width: 170px;
  min-width: 17rem;
  padding: 0px 10px;
  background-color: $color-primary;
  transition: background-color transition(fast);
  @include body-small(medium, bs, $white, tertiary, quaternary);
  &:hover, &:focus {
    background-color: $color-secondary;
  }
  &.outline {
    background-color: $white;
    border: 1px solid $color-primary;
    color: $color-primary;
    &:hover, &:focus {
      background-color: darken($white, 5%);
    }
  }
  &:disabled {
    background-color: $color-grey-tertiary;
    pointer-events: none;
    &:hover, &:focus {
      background-color: $color-grey-tertiary;
      pointer-events: none;
    }
  }
  &.outline {
    &:disabled {
      background-color: $color-grey-tertiary;
      pointer-events: none;
      border-color: $color-grey-tertiary;
      color: $white;
      &:hover, &:focus {
        background-color: $color-grey-tertiary;
        pointer-events: none;
        border-color: $color-grey-tertiary;
      }
      img {
        filter: brightness(100);
      }
    }
  }
}

@mixin sharp-double-button {
  @include sharp-button;
  position: relative;
  background-color: $color-secondary;
  margin-bottom: 2px;
  &:after {
    position: absolute;
    top: 0;
    left: 0;
    height: 45px;
    height: 4.5rem;
    width: 100%;
    z-index: 1;
    content: attr(data-text);
    background-color: $color-primary;
    line-height: 45px;
    line-height: 4.5rem;
    transform: translate3d(0,-2px,0);
    transition: all transition(fast);
  }
  &:hover, &:focus {
    &:after {
      transform: translate3d(0,0,0);
    }
  }
  &:disabled {
    background-color: $color-grey-tertiary;
    &:after {
      background-color: $color-grey-tertiary;
    }
  }
  &.outline {
    background-color: $color-primary;
    border: none;
    color: $white;
    &:after {
      background-color: $white;
      color: $color-primary;
      border: 1px solid $color-primary;
    }
    &:disabled {
      background-color: $color-grey-tertiary;
      &:after {
        background-color: $color-grey-tertiary;
        color: $white;
        border-color: $color-grey-tertiary;
      }
    }
  }
}

@mixin round-edge {
  @include sharp-button;
  border-radius: border-radius(quaternary);
}

@mixin rounded-edge {
  @include sharp-button;
  border-radius: border-radius(primary);
}

@mixin rounded-icon {
  @include sharp-button;
  border-radius: border-radius(primary);
  padding: 0px 50px;
  padding: 0rem 5rem;
  position: relative;
  img {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    &.left {
      left: 17.5px;
    }
    &.right {
      right: 17.5px;
    }
  }
}
