@use '../button-styling' as *;
@use '../../../00-settings/colors' as *;
@use '../../../00-mixins/mixins' as *;
@use '../../../11-base/fonts/icons' as *;

///
/// Alert button type.
///
/// @since 3.0.0
/// @access public
/// @author Gert-Jan Meire
/// @require color
///
%button-alert,
.button-alert {
  @include button-icon;
  @include theme-content('color-tertiary', 'button-secondary-hover-background') {
    $theme-color: coloring('red', 2);

    background-image: linear-gradient(0deg, $theme-color, $theme-color);
  };

  & {
    border: 0;
    background-color: coloring('red', 1);
    color: coloring('white');
  }

  &:not([class*="icon-"]) {
    @include icon(lightning);
  }

  &.button-block {
    @include button-icon;
 }

  &:focus {
    border-color: coloring('red', 2);
    background-color: coloring('red', 2);
    color: coloring('white');
  }

  &:active {
    border-color: coloring('red', 3);
    background-color: coloring('red', 3);
    color: coloring('white');
  }
}
