.button {
  background: transparent;
  padding: 5px 15px;
  font-family: $sans-serif-font-family;
  font-weight: $font-weight-regular;
  display: inline-flex;
  cursor: pointer;

  @include small-text;
  @include button-border;

  &--white-bg {
    background-color: $color-white;
  }

  @mixin disabled {
    cursor: default;
  }
  @mixin disabled-default {
    cursor: default;
    background-color: $color-silver-light;
    border-color: $color-silver-light;
  }

  &:disabled {
    @include disabled-default;
  }

  &--disabled {
    @include disabled-default;
  }

  &--disabled-alt {
    @include disabled;
    opacity: 0.3;
  }

  &--big {
    padding: 15px;
  }
}

.icon-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  background: transparent;

  & > &__icon {
    // need to be specific, to override local svg component styles
    @include default-icon;
    cursor: pointer;
    justify-self: center;

    &--subtle {
      fill: $color-silver-dark;
    }

    &--small {
      @include small-icon;
    }
  }
}
