.site-notifications {
  position: fixed;
  z-index: 1400;
  top: calc(82px + env(safe-area-inset-top, 0px));
  right: max(1.5rem, env(safe-area-inset-right, 0px));
  width: min(316px, calc(100vw - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.site-notification {
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--pill-border);
  border-radius: 9999px;
  background: var(--pill-bg);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: var(--text);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-sizing: border-box;
  animation: site-notification-in 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.site-notification.is-leaving {
  animation: site-notification-out 0.32s ease-out both;
}

.site-notification--info {
  --site-notification-accent: var(--hypr-cyan);
  --site-notification-icon-bg: rgba(80, 200, 255, 0.1);
}

.site-notification--error {
  --site-notification-accent: #ef4444;
  --site-notification-icon-bg: rgba(239, 68, 68, 0.11);
}

.site-notification--success {
  --site-notification-accent: #10b981;
  --site-notification-icon-bg: rgba(16, 185, 129, 0.11);
}

.site-notification--warning {
  --site-notification-accent: #f59e0b;
  --site-notification-icon-bg: rgba(245, 158, 11, 0.11);
}

.site-notification__icon {
  position: relative;
  z-index: 1;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  color: var(--site-notification-accent);
  background: var(--site-notification-icon-bg);
}

.site-notification__icon svg {
  width: 16px;
  height: 16px;
}

.site-notification__message {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.4;
}

.site-notification__close {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-right: -2px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-notification__close svg {
  width: 13px;
  height: 13px;
}

.site-notification__close:hover,
.site-notification__close:focus-visible {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

@keyframes site-notification-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes site-notification-out {
  to {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    margin: 0;
    transform: scale(0.9) translateY(6px);
  }
}

@media (max-width: 720px) {
  .site-notifications {
    top: calc(var(--nav-stack-offset) + 10px + env(safe-area-inset-top, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    left: max(10px, env(safe-area-inset-left, 0px));
    width: auto;
  }
}
