.notifications-container {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1080;
    width: min(420px, calc(100vw - 2rem));
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.notifications-container:empty {
    display: none;
}

.notification-alert,
.flash-message {
    border: 1px solid #d9e3f2;
    border-radius: 18px;
    background: #ffffff;
    color: #23344d;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

.notification-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem 1.1rem;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.26s ease, transform 0.26s ease;
    pointer-events: auto;
}

.notification-alert--visible {
    opacity: 1;
    transform: translateY(0);
}

.notification-alert--hiding {
    opacity: 0;
    transform: translateY(-8px);
}

.notification-alert__icon {
    flex: 0 0 22px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.05rem;
    margin-top: 0.15rem;
}

.notification-alert__content {
    flex: 1;
    min-width: 0;
}

.notification-alert__title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.2rem;
}

.notification-alert__message,
.flash-message {
    font-size: 0.92rem;
    line-height: 1.5;
    font-weight: 600;
}

.notification-alert__message {
    word-break: break-word;
}

.notification-alert__close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1rem;
    line-height: 1;
    padding: 0.15rem;
    opacity: 0.66;
    cursor: pointer;
}

.notification-alert__close:hover,
.notification-alert__close:focus-visible {
    opacity: 1;
}

.notification-alert--success,
.flash-message--success {
    border-color: #8ad2a7;
    background: #f2fbf5;
    color: #135c39;
}

.notification-alert--success .notification-alert__icon {
    color: #1f8a55;
}

.notification-alert--info,
.flash-message--info {
    border-color: #8fb7ff;
    background: #eef4ff;
    color: #16345f;
}

.notification-alert--info .notification-alert__icon {
    color: #2f6ed8;
}

.notification-alert--warning,
.flash-message--warning {
    border-color: #f1c874;
    background: #fff8e7;
    color: #785102;
}

.notification-alert--warning .notification-alert__icon {
    color: #d28b11;
}

.notification-alert--danger,
.flash-message--danger,
.flash-message--error {
    border-color: #efb0b0;
    background: #fff1f1;
    color: #7b2020;
}

.notification-alert--danger .notification-alert__icon {
    color: #d53333;
}

.flash-messages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.flash-message {
    display: block;
    padding: 0.95rem 1rem;
}

.buy-summary__promo-feedback.flash-message,
.billing-promo__feedback.flash-message {
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .notifications-container {
        top: 0.85rem;
        right: 0.85rem;
        width: calc(100vw - 1.7rem);
    }

    .notification-alert,
    .flash-message {
        border-radius: 16px;
    }
}
