.alert-icon-center-vertically(@font-size) {
  @half-height: @font-size / 2;
  // IE8 doesn't support calc(): it's OK, the icon will just be aligned to the top
  top: calc(~'50% - @{half-height}');
  // phantomjs only supports -webkit-calc()
  top: -webkit-calc(~'50% - @{half-height}');
}

.alert {
  color: #212121 !important;
  padding: 20px 20px 20px 60px;
  margin-bottom: 20px;
  border: 2px solid;
  border-radius: 2px;
  font-size: 14px;
  position: relative;
  &:before {
    font-family: "matomo";
    content: "\e88f";
    position: absolute;
    left: 20px;
    line-height: 100%; // line-height = font-size
    font-size: 24px;
    margin-top: -3px
  }

  a {
    color: #212121 !important;
    text-decoration: underline;
    &:hover {
      text-decoration: underline;
    }
  }
}

.alert-success {
  background-color: #ebf2eb;
  border-color: #378039;
  &:before {
    content: "\e63d";
    color: #378039;
  }
}

.alert-info {
  background-color: #ecf7fe;
  border-color: #0d94e3;
  &:before {
    color: #0d94e3;
  }
}

.alert-warning {
  background-color: #fefbe9;
  border-color: #a18a0b;
  &:before {
    content: "\e621";
    color: #a18a0b;
  }
}

.alert-danger {
  background-color: #faeaea;
  border-color: @color-red-matomo;
  &:before {
    content: "\e616";
    color: @color-red-matomo;
  }
}
