/* Site alert banner */

.site-alert {
  --site-alert-accent: #ff0900;
  position: relative;
  z-index: 12;
  background-color: #001b35;
  border-bottom: 3px solid var(--site-alert-accent);
  color: #fff;
  font-family: "aktiv-grotesk", sans-serif;
}
.site-alert--info {
  --site-alert-accent: #3b8be0;
}
.site-alert--success {
  --site-alert-accent: #7bbb1c;
}
.site-alert__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 64px;
  position: relative;
}
.site-alert__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  fill: var(--site-alert-accent);
}
.site-alert .site-alert__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
  color: #e8eef5;
}
.site-alert .site-alert__title {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-right: 8px;
}
.site-alert__link,
.site-alert__link:visited {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--site-alert-accent);
  text-underline-offset: 3px;
  margin-left: 6px;
  white-space: nowrap;
}
.site-alert__link:hover,
.site-alert__link:focus {
  color: #fff;
  text-decoration-thickness: 2px;
}
.site-alert__close {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  opacity: .75;
  transition: opacity .2s ease, background-color .2s ease;
}
.site-alert__close:hover,
.site-alert__close:focus-visible {
  opacity: 1;
  background-color: rgba(255, 255, 255, .12);
}
.site-alert__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.site-alert__close svg {
  width: 18px;
  height: 18px;
}

/*
 * The fixed menu sits right below the banner and follows it up while it scrolls away.
 * --site-alert-offset = banner bottom edge in the viewport (set by JS).
 */
.has-site-alert .menu {
  top: var(--site-alert-offset, 0px);
}
.customize-support.has-site-alert .menu,
.customize-support.has-site-alert .menu.actived {
  top: max(32px, var(--site-alert-offset, 0px));
}

@media screen and (max-width: 991px) {
  .site-alert__inner {
    justify-content: flex-start;
    align-items: flex-start;
    padding: 12px 56px 12px 16px;
  }
  .site-alert__icon {
    margin-top: 1px;
  }
  .site-alert .site-alert__text {
    font-size: 14px;
  }
  .site-alert__close {
    top: 6px;
    right: 8px;
    transform: none;
    width: 40px;
    height: 40px;
  }
}

@media screen and (max-width: 782px) {
  .customize-support.has-site-alert .menu,
  .customize-support.has-site-alert .menu.actived {
    top: max(46px, var(--site-alert-offset, 0px));
  }
}

@media screen and (max-width: 600px) {
  .site-alert__inner {
    gap: 10px;
  }
  .site-alert__icon {
    width: 20px;
    height: 20px;
  }
  .site-alert .site-alert__text {
    font-size: 13px;
  }
  .site-alert .site-alert__title {
    display: block;
    margin: 0 0 2px;
  }
  /* WP admin bar is not fixed on small screens */
  .customize-support.has-site-alert .menu,
  .customize-support.has-site-alert .menu.actived {
    top: var(--site-alert-offset, 0px);
  }
}
