.site-header__announcement {
  background: var(--color-text);
  color: #f4f4f4;
  border-bottom: 1px solid rgba(244, 244, 244, 0.1);
}

.site-header__announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 1.5rem;
  position: relative;

  @media (min-width: 64rem) {
      padding-block: 0;
  }
}

.site-header__announcement-content {
  flex: 1 1 auto;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;

  & :is(p, a) {
    color: inherit;
  }

  & p {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    margin: 0;
  }

  & i {
    color: var(--color-primary);
    font-style: normal;
  }

  a {
    text-decoration: underline;

    &:hover,
    &:focus {
        text-decoration: underline;
        color: var(--color-primary);
    }
  }
}

.site-header__announcement-close {
  flex: 0 0 auto;
  width: 0.875rem;
  height: 0.875rem;
  border: none;
  background: none;
  color: currentColor;
  cursor: pointer;
  padding: 0;
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);

  &::before,
  &::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 0.0625rem;
    background: currentColor;
    transform-origin: center;
  }

  &::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  &::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }
}

.site-header--dark .site-header__announcement {
  background: var(--color-dark);
  color: #f4f4f4;
}
