.bonus-messages {
  position: fixed;
  top: 10.625rem;
  right: max(4rem, calc((100vw - 82.5rem) / 2));
  left: auto;
  z-index: 10020;
  display: none;
  gap: .7rem;
  pointer-events: none;
}

.bonus-messages.is-visible {
  display: grid;
}

.bonus-message {
  position: relative;
  width: min(21rem, calc(100vw - 5.6rem));
  min-height: 4.9rem;
  overflow: hidden;
  border-radius: .7rem;
  color: var(--color-light);
  pointer-events: auto;
  opacity: 0;
  transform: translate3d(1.4rem, 0, 0);
  animation: bonus-message-in .42s cubic-bezier(.16, 1, .3, 1) forwards;
}

.bonus-message:nth-child(2) {
  animation-delay: .18s;
}

.bonus-message.is-closing {
  animation: bonus-message-out .28s ease forwards;
}

.bonus-message--casino {
  background: linear-gradient(108deg, #d729d7 0%, #9b45e4 44%, #4897f4 100%);
}

.bonus-message--sport {
  background: linear-gradient(108deg, #f14961 0%, #de2bc1 54%, #b926d8 100%);
}

.bonus-message__link {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) 1.75rem;
  align-items: center;
  min-height: inherit;
  padding: .7rem .7rem .7rem 1.05rem;
  color: inherit;
  text-decoration: none;
}

.bonus-message__image {
  width: 3.15rem;
  height: 3.15rem;
  object-fit: contain;
}

.bonus-message__content {
  display: grid;
  align-content: center;
  gap: .25rem;
  min-width: 0;
}

.bonus-message__caption {
  color: var(--color-personal);
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.3;
}

.bonus-message__title {
  color: var(--color-light);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
}

.bonus-message__close {
  position: absolute;
  top: 50%;
  right: .7rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  color: var(--color-light);
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}

.bonus-message__close svg {
  width: 1.4rem;
  height: 1.4rem;
}

@keyframes bonus-message-in {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes bonus-message-out {
  to {
    opacity: 0;
    transform: translate3d(.7rem, 0, 0);
  }
}

@media (max-width: 1199px) {
  .bonus-messages {
    right: 2rem;
  }

  .bonus-message {
    width: min(19.6rem, calc(100vw - 2.8rem));
  }
}

@media (max-width: 1023px) {
  .bonus-messages {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bonus-message,
  .bonus-message:nth-child(2),
  .bonus-message.is-closing {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
