
.alert {
  color: $color-white;
  display: block;
  top: 0;
  padding: 15px 15px 20px;
  position: relative;

  @media (min-width: $break-medium) {
    padding: 25px 50px;
  }

  @media (min-width: $break-large) {
    padding: 45px 50px;
  }

  &-display {
    padding: 0;

    &__content {
      padding: 0 15px;

      @media (min-width: $break-medium) {
        padding: 0 20px;
      }
    }

  }

  &__content {
    h2 {
      @extend h5;
      margin: 0 0 8px;
      display: flex;
      align-items: center;
      gap: 12px;

      @media (min-width: $break-medium) {
        margin: 0;
      }

    }
  }

  &__message {
    @media (min-width: $break-medium) {
      padding-right: 2rem;
    }

    svg {
      width: 51px;

      @media (min-width: $break-medium) {
        width: 105px;
      }

      &.lg {
        display: none;

        @media (min-width: $break-medium) {
          display: block;
          float: left;
          margin-right: 40px;
        }
      }

      &.sm {
        @media (min-width: $break-medium) {
          display: none;
        }
      }
    }
  }

  &__description {
    margin-bottom: 10px;
  }

  &__icon {
    &:before {
      position: absolute;
      display: inline-block;
      top: 50%;
      transform: translateY(-50%);
      left: -2em;
      width: 1.5em;
      height: 1.5em;
      background: url('/assets/icons/error.svg') no-repeat center left;
      background-size: contain;
      content: '';
    }
  }

  &__cta {
    @include cta-arrow($border-color: $color-green-light, $fill-color: $color-green-light, $font-color: $color-green-dark, $hover-border: $color-green-dark, $hover-fill: $color-green-dark, $hover-font: $color-green-light);
    white-space: nowrap;

    &:focus {
      @include focus-light();
    }
  }

  &--minor {
    background-color: $color-green-light;

  }

  &--medium {
    background-color: $color-orange-light;
  }

  &--major {
    background-color: $color-red;
    z-index: 1;
  }

  .alert-close {
    width: 17px;
    height: 17px;
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: 0;

    @media (min-width: $break-medium) {
      width: 22px;
      height: 22px;
    }


    @media (min-width: $break-large) {
      width: 27px;
      height: 27px;
    }

    &:before,
    &:after {
      content: "";
      width: 17px;
      height: 17px;
      border-right: 3px solid $color-white;
      transform: rotate(45deg);
      position: absolute;
      left: -40%;
      top: -35%;

      @media (min-width: $break-medium) {
        width: 22px;
        height: 22px;
      }

      @media (min-width: $break-large) {
        width: 27px;
        height: 27px;
        border-right: 4px solid $color-white;
      }
    }

    &:after {
      transform: rotate(-45deg);
      margin-top: 12px;

      @media (min-width: $break-medium) {
        margin-top: 15px;
      }

      @media (min-width: $break-large) {
        margin-top: 19px;
      }

    }
  }
}