/* stylelint-disable */
@import "../../settings/includes/colors";
@import "../../settings/includes/font-sizes";
@import "../../settings/includes/font-weights";

.c-toast {
  display: flex;
  min-width: 304px;
  padding: 16px 16px 16px 12px;
  position: relative;
  border-radius: 4px;

  &[class*="background-"] {
    padding-left: 16px;
  }

  &--background-pacific {
    background-color: $Pacific;
  }

  &--background-paradiso {
    background-color: $Paradiso;
  }

  &--background-sandy {
    background-color: $Sandy;
  }

  &--background-demask {
    background-color: $Demask;
  }

  &--background-goldenrod {
    background-color: $Goldenrod;
  }

  &--white {
    background-color: $White;
  }

  &--information {
    border-left: 4px solid $Pacific;
  }

  &--success {
    border-left: 4px solid $Paradiso;
  }

  &--warning {
    border-left: 4px solid $Sandy;
  }

  &--error {
    border-left: 4px solid $Demask;
  }

  &__icon-container {
    margin-right: 8px;
  }

  &__icon {
    &--close {
      width: 12px;
      height: 12px;
    }
  }

  &__body {
    flex: 1;
    padding-right: 16px;
  }

  &__title {
    line-height: 1.25;
    font-stretch: normal;
    font-size: $font-size-paragraph;
    font-weight: $font-weight-700;
  }

  &__message {
    line-height: 1.29;
    font-stretch: normal;
    font-size: $font-size-small;
    font-weight: $font-weight-500;
  }

  &__button {
    &--close {
      position: absolute;
      right: 8px;
      line-height: 0;
    }

    &--top {
      top: 8px;
    }

    &--center {
      top: 50%;
      transform: translateY(-50%);
    }

    &--cta {
      margin-right: 12px;
    }

    &--close:focus,
    &--cta:focus {
      outline: none;
    }
  }
}
