/* Toast-контейнер и всплывающие уведомления (#notifications) */

#notifications.notifications,
#notifications.site-notify,
.notifications.center#notifications {
    position: fixed;
    left: 50%;
    right: auto;
    top: auto;
    bottom: 1.25rem;
    transform: translateX(-50%);
    width: min(92vw, 420px);
    z-index: 10080;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    margin: 0;
    pointer-events: none;
}

#notifications > .site-alert {
    margin: 0;
    pointer-events: auto;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

#notifications > .site-alert.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#notifications > div:not(.site-alert) {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-family: var(--font-body, "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif);
    font-size: 0.9375rem;
    line-height: 1.45;
    color: #2c3e4e;
    background: #f4f8fb;
    border: 1px solid rgba(44, 62, 78, 0.18);
    box-shadow: 0 12px 32px rgba(44, 62, 78, 0.16);
    text-align: center;
}

#notifications .site-alert {
    box-shadow: 0 12px 32px rgba(44, 62, 78, 0.16);
}

@media (max-width: 767px) {
    #notifications.notifications,
    #notifications.site-notify,
    .notifications.center#notifications {
        bottom: 0.85rem;
        width: min(94vw, 420px);
    }
}

@media (prefers-reduced-motion: reduce) {
    #notifications > .site-alert,
    #notifications > div:not(.site-alert) {
        transition: none;
    }
}
