.prima-notifications {
    position: fixed;
    inset: calc(env(safe-area-inset-top, 0px) + 12px) 0 auto 0;
    z-index: 2147483000;
    width: min(460px, calc(100vw - 24px));
    max-width: none;
    max-height: calc(100vh - 24px);
    margin: 0 auto;
    padding: 0 0 18px;
    border: 0;
    background: transparent;
    color: inherit;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.prima-notifications::backdrop {
    display: none;
}

.prima-notification {
    --notification-color: #2b5c86;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 10px 13px 14px;
    border: 1px solid rgba(20, 35, 28, 0.12);
    border-left: 5px solid var(--notification-color);
    border-radius: 14px;
    background: #fff;
    color: #1c2b24;
    box-shadow: 0 4px 10px rgba(20, 35, 28, 0.12), 0 18px 44px rgba(20, 35, 28, 0.22);
    font-size: 0.92rem;
    line-height: 1.4;
    text-align: left;
    pointer-events: auto;
    touch-action: pan-x;
    animation: prima-notification-in 220ms ease-out;
}

.prima-notification--success { --notification-color: #0d6b3d; }
.prima-notification--warning { --notification-color: #a86a00; }
.prima-notification--error { --notification-color: #a63535; }

.prima-notification--again {
    animation: prima-notification-again 260ms ease-out;
}

.prima-notification__body {
    flex: 1;
    min-width: 0;
    max-height: 40vh;
    overflow-y: auto;
}

.prima-notification__body strong {
    display: block;
    color: var(--notification-color);
    font-size: 0.8rem;
}

.prima-notification__body p {
    margin: 2px 0 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.prima-notification__body a {
    display: inline-block;
    margin-top: 6px;
    color: var(--notification-color);
    font-weight: 700;
}

.prima-notification__close {
    flex: none;
    width: 36px;
    height: 36px;
    min-height: 0;
    margin: -4px 0 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #55645c;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.prima-notification__close:hover,
.prima-notification__close:focus-visible {
    background: rgba(20, 35, 28, 0.08);
}

@keyframes prima-notification-in {
    from { opacity: 0; transform: translateY(-28px); }
}

@keyframes prima-notification-again {
    50% { transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
    .prima-notification,
    .prima-notification--again { animation: none; }
}
