@use '../button-styling' as *;
@use '../../../00-settings/colors' as *;
@use '../../../00-mixins/mixins' as *;

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

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

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

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

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

  &:active {
    border-color: coloring('red', -1);
    background-color: coloring('red', -4);
    background-image: none;
    color: coloring('red', 3);
  }
}
