.c-alert--location {
  background-color: var(--bg-color-alert);
  border-radius: 8px;
  color: var(--color-neutral-white);
  font-size: var(--font-size-sm-2);
  font-weight: 700;
  margin-left: auto;
  margin-right: auto;
  margin-top: 1rem;
  max-width: 92%;
  padding: 10px 30px;
  position: relative;
  text-align: center;
  text-transform: uppercase;
  width: 52rem;

  @media screen and (min-width: 47em) {
    font-size: var(--font-size-med-1);
  }

  p {
    margin: 0;
  }
}

.c-alert--global {
  border-radius: 0;
  display: block;
  font-weight: 700;
  margin: 0 auto;
  max-width: 92%;
  overflow: hidden;
  padding-top: 10px;
  position: relative;
  text-align: center;
  width: 54rem;

  @media screen and (min-width: 47em) {
    border-radius: 8px;
    display: table;
    margin: 1rem auto -1rem;
    padding-top: 0;
    width: auto;
  }

  a {
    color: var(--color-neutral-white);
  }

  em {
    font-style: normal;
    text-decoration: underline;
  }

  .c-btn--icon {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--color-neutral-white);
    padding: 12px;
    position: absolute;
    right: 0;
    top: 10px;
    transition: transform .15s;

    @media screen and (min-width: 47em) {
      top: 50%;
      transform: translateY(-50%);
    }

    &:hover,
    &:focus {
      background: none;
      box-shadow: none;
      transform: scale(.8);
      transition: transform .15s;

      @media screen and (min-width: 47em) {
        transform: translateY(-50%) scale(.8);
      }
    }
  }

  .c-btn__icon {
    height: 16px;
    margin: 0;
    transform: translateY(3px);
    width: 16px;
  }
}

/*  Hide on mobile */
.c-header .c-alert--global {
  @media screen and (max-width: 751px) {
    display: none;
  }
}

/*  Add space to hero */
.c-alert--global + .c-hero--home,
.c-alert--global + .find-a-clinic {
  margin-top: 1rem;
}

.c-alert--global__link {
  align-items: center;
  background-color: var(--primary-bg);
  background-image: var(--background-gradient-primary);
  border-radius: 10px;
  display: block;
  padding-right: 2vw;
  width: auto;
  color: var(--color-neutral-white);

  @media screen and (min-width: 47em) {
    border-radius: 0;
    display: flex;
  }

  @media screen and (min-width: 90em) {
    padding-right: 40px;
  }

  &:hover,
  &:focus {
    text-decoration: none;
  }

  &[target="_blank"] {
    background-image: none;
  }

  &:not(:empty) {
    min-height: 50px;
  }
}

.c-alert--global__title {
  background-color: var(--color-brand-red-orange);
  display: block;
  left: 50%;
  padding: 6px 16px;
  position: absolute;
  text-transform: uppercase;
  top: 0;
  transform: translateX(-50%);

  @media screen and (min-width: 47em) {
    left: auto;
    padding: 12px 2.83vw;
    position: relative;
    top: auto;
    transform: none;
  }

  @media screen and (min-width: 90em) {
    padding: 12px 40px;
  }

  &::after {
    @media screen and (min-width: 47em) {
      border-bottom: 24.5px solid transparent;
      border-left: 14px solid var(--color-brand-red-orange);
      border-top: 24.5px solid transparent;
      content: '';
      position: absolute;
      right: -14px;
      top: 0;
    }
  }
}

.c-alert--global__desc {
  display: block;
  line-height: 1;
  margin: 0 auto;
  max-width: 68vw;
  padding: 40px 0 20px;

  p {
    margin-bottom: 0;
  }

  @media screen and (min-width: 47em) {
    max-width: none;
    padding: 0 3vw 1px;
  }

  @media screen and (min-width: 90em) {
    padding: 0 40px;
  }
}

.c-header__mobile + .c-alert--global {
  @media screen and (min-width: 47em) {
    opacity: 0;
    visibility: hidden;
  }
}

/*  Targets IE11 { */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .c-alert--global {
    display: block;
    max-width: 80%;
    width: 52rem;
  }
}
