@import "../../scss/typo.mixins";
@import "../../scss/breakpoints.mixins";
@import "../../scss/grid.mixins";

.alert {
  padding: 16px 0;
  background-color: $color-scorpion;
}

.alert__container {
  display: flex;
  flex-direction: column;
  justify-content: center;

  @include media-breakpoint-up(tablet) {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  @include make-container();

  // TODO: have the fluidity configurable by scss variable
  @include media-breakpoint-up(fullDesktop) {
    @include make-container-max-widths();
  }
}

.alert--desktop-only {
  display: none;

  @include media-breakpoint-up(smallDesktop) {
    display: block;
  }
}

.alert--center {
  align-items: center;

  @include media-breakpoint-up(tablet) {
    justify-content: center;
  }
}

.alert--warning {
  background-color: $color-burnt-sienna;

  .alert__cta__button:hover,
  .alert__cta__button:focus {
    color: $color-burnt-sienna;
  }
}

.alert--corporate {
  background-color: $color-deep-sapphire;

  .alert__cta__button:hover,
  .alert__cta__button:focus {
    color: $color-deep-sapphire;
  }
}

.alert__content {
  color: #fff;

  @include typo-13;
}

.alert__cta {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  margin-top: 16px;

  @include media-breakpoint-up(tablet) {
    margin-top: 0;
    margin-left: 20px;
    align-self: center;
    flex-direction: column;
  }
}

.alert__cta__button {
  flex: 1;

  &.button {
    margin: 0;
  }

  &.button--white-ghost:hover,
  &.button--white-ghost:focus {
    color: $color-scorpion;
  }

  & + & {
    margin-left: 20px;

    @include media-breakpoint-up(tablet) {
      margin-top: 20px;
      margin-left: 0;
    }
  }
}
