:root {
    --alert-color-blue: #087EB5;
    --alert-color-red: #B00020;
    --alert-color-gold: #84754E;
}

.alert-bar {
  position: absolute;
  padding: 1em 1.5em;
  background: #087EB5;
  color: #ffffff;
  height: 100%;
  width: 100%;
  left: 0;
  overflow: hidden;
}

.alert-bar:before {
  content: '';
  position: absolute;
  width: calc(100px + 1.5em);
  height: 100%;
  top: 0;
  right: 0;
  background: linear-gradient(to right, rgba(8, 126, 181, 0) 0%, #087EB5 50%, #087EB5 100%);
  z-index: 1;
}

/******* alert colors *******/
/*** RED ***/
.alert-bar--red {
    background: var(--alert-color-red);
}
.alert-bar--red:before {
    background: linear-gradient(to right, rgba(8, 126, 181, 0) 0%, var(--alert-color-red) 50%, var(--alert-color-red) 100%);
}
/*** BLUE ***/
.alert-bar--blue {
    background: var(--alert-color-blue);
}
.alert-bar--blue:before {
    background: linear-gradient(to right, rgba(8, 126, 181, 0) 0%, var(--alert-color-blue) 50%, var(--alert-color-blue) 100%);
}
/*** GOLD ***/
.alert-bar--gold {
    background: var(--alert-color-gold);
}
.alert-bar--gold:before {
    background: linear-gradient(to right, rgba(8, 126, 181, 0) 0%, var(--alert-color-gold) 50%, var(--alert-color-gold) 100%);
}

.alert-bar__icon {
  fill: #FFF;
  width: 20px;
  height: 30px;
  margin-right: 0.5em;
}

.alert-bar__close {
  position: absolute;
  right: 1em;
  top: 0;
  width: 50px;
  height: 100%;
  z-index: 2;
}

.alert-bar__close:before, .alert-bar__close:after {
  content: '';
  width: 3px;
  height: 25px;
  background: #ffffff;
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  transform: translateX(-50%) translateY(-50%) rotate(45deg);
}

.alert-bar__close:before {
  transform: translateX(-50%) translateY(-50%) rotate(-45deg);
}

.alert-bar__content {
  white-space: nowrap;
  display: -ms-inline-flexbox;
  display: inline-flex;
  align-items: center;
}

.alert-bar__label {
  font-family: 'Open Sans', Helvetica, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 0.5em;
}

.alert-bar__cta {
  text-decoration: none;
}