.announcement-banner {
  position: relative;
  display: block;
}

.announcement-banner[hidden] {
  display: none;
}

.announcement-banner__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 40px;
  text-align: center;
}

.announcement-banner__link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.announcement-banner__text {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.announcement-banner__text a {
  pointer-events: auto;
}

.announcement-banner__close {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.announcement-banner__close:hover {
  background-color: rgb(var(--color-entry-line, var(--color-border)));
}

.announcement-banner__close svg,
.announcement-banner__close img {
  width: 14px;
  height: 14px;
}

@media (max-width: 959px) {
  .announcement-banner__close {
    width: 24px;
    height: 24px;
  }
}
