.announcement-bar {
  position: relative;
  background: #141d30;
  color: #fff;
  padding: 9px 52px;
  min-height: 36px;
  box-sizing: border-box;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}
.announcement-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 20px;
}
.announcement-inner a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.announcement-inner a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.announcement-close {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}
.announcement-close:hover {
  background: #ffffff20;
}
.announcement-close:focus-visible,
.announcement-inner a:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .announcement-bar {
    padding: 8px 40px 8px 18px;
    font-size: 12px;
  }
  .announcement-close {
    right: 8px;
  }
  .announcement-inner {
    gap: 2px 12px;
  }
}

.announcement-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
}
body.has-announcement {
  padding-top: 38px;
}
body.has-announcement header {
  top: 38px;
}
@media (max-width: 760px) {
  .announcement-bar {
    height: auto;
    min-height: 38px;
  }
  .announcement-inner {
    flex-wrap: nowrap;
  }
  .announcement-inner span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.announcement-bar {
  text-align: left;
  padding-left: max(36px, calc((100vw - 1400px) / 2));
}
.announcement-viewport {
  width: 100%;
  overflow: hidden;
}
.announcement-inner {
  justify-content: flex-start;
  flex-wrap: nowrap;
  width: max-content;
  gap: 20px;
  white-space: nowrap;
}
.announcement-inner span {
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  flex-shrink: 0;
}
.announcement-inner.is-scrolling {
  animation: notice-scroll var(--notice-duration) linear infinite;
}
.announcement-viewport:hover .announcement-inner,
.announcement-viewport:focus-within .announcement-inner {
  animation-play-state: paused;
}
@keyframes notice-scroll {
  0%,
  15% {
    transform: translateX(0);
  }
  85%,
  100% {
    transform: translateX(var(--notice-travel));
  }
}
@media (max-width: 760px) {
  .announcement-bar {
    padding-left: 20px;
  }
  .announcement-inner {
    gap: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .announcement-inner.is-scrolling {
    animation: none;
  }
  .announcement-viewport {
    overflow-x: auto;
  }
}

.announcement-inner {
  margin-inline: auto;
}
.announcement-inner.is-scrolling {
  margin-inline: 0;
}
