.announce-body {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;

  display: flex;
  align-items: center;

  pointer-events: none;
}

.announce-body.both {
  justify-content: space-between;
}

.announce-body.left-only {
  justify-content: flex-start;
}

.announce-body.right-only {
  justify-content: flex-end;
}

.announce-left,
.announce-right {
  position: relative;
  pointer-events: auto;
  transition: all 0.45s ease;
}

.announce-left {
  margin-left: 5px;
  animation: slideLeftOut 1s ease 2s forwards;
}

.announce-right {
  margin-right: 5px;
  animation: slideRightOut 1s ease 2s forwards;
}

.announce-left:hover {
  margin-left: 5px;
  transform: translateX(95px);
}

.announce-right:hover {
  margin-right: 5px;
  transform: translateX(-95px);
}

@keyframes slideLeftOut {
  from {
    margin-left: 5px;
  }
  to {
    margin-left: -85px;
  }
}

@keyframes slideRightOut {
  from {
    margin-right: 5px;
  }
  to {
    margin-right: -85px;
  }
}

.announce-left img,
.announce-right img {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.close-btn {
  position: absolute;
  z-index: 2;

  width: 30px;
  height: 30px;

  border: none;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.7);
  color: #fff;

  cursor: pointer;
  font-size: 20px;
  line-height: 30px;
}

.announce-left .close-btn {
  top: -10px;
  right: -10px;
}

.announce-right .close-btn {
  top: -10px;
  left: -10px;
}

@media (max-width: 768px) {
  .announce-body {
    display: none;
  }
}
