#cphub-alerts-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

#cphub-alerts-container--toast {
  position: fixed;
  z-index: 1000;
  display: grid;
  justify-items: end;
  justify-content: center;
  gap: 16px;
  inset-block-start: 16px;
  inset-inline-end: 16px;
}

.cphub-alerts--toast:has(*) {
  display: grid;
  visibility: visible;
}

.cphub-alerts--toast:not(:has(*)) {
  display: none;
  visibility: hidden;
  pointer-events: none;
}

.cphub-alerts--toast rh-alert {
  pointer-events: all;
  will-change: transform;
  animation: fade-in 0.3s ease, slide-in 0.3s ease;
}

.cphub-alerts--toast rh-alert.is-animating--fade-out {
  animation: fade-out 0.3s ease forwards;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

@keyframes slide-in {
  from {
    transform: translateY(16px);
  }
}
