/* ==========================================================================
   JUPOJA — centriniai pranešimai (toast), ne viršutinė juosta
   ========================================================================== */

#bar-notification.bar-notification-container {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    margin: 0;
    width: auto;
    height: auto;
    background: transparent;
    pointer-events: none;
    box-shadow: none;
}

#bar-notification.bar-notification-container.bar-notification-container--visible {
    display: flex;
}

#bar-notification.bar-notification-container .bar-notification {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 440px;
    margin: 0;
    padding: 22px 52px 22px 22px;
    border-radius: 6px;
    background: #fff !important;
    color: var(--jupoja-dark, #434242) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    border: 2px solid var(--jupoja-yellow, #FCDF00);
    transform: translateY(0);
    animation: jupoja-toast-in 0.22s ease-out;
    pointer-events: auto;
}

@keyframes jupoja-toast-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#bar-notification.bar-notification-container .bar-notification.success {
    border-color: var(--jupoja-yellow, #FCDF00);
}

#bar-notification.bar-notification-container .bar-notification.error {
    border-color: #c62828;
}

#bar-notification.bar-notification-container .bar-notification.warning {
    border-color: #e6a700;
}

#bar-notification.bar-notification-container .bar-notification .content {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--jupoja-dark, #434242);
}

#bar-notification.bar-notification-container .bar-notification .content:last-of-type {
    margin-bottom: 0;
}

#bar-notification.bar-notification-container .bar-notification a {
    color: var(--jupoja-blue, #1B47A0);
    text-decoration: underline;
    text-underline-offset: 2px;
}

#bar-notification.bar-notification-container .bar-notification .close {
    position: absolute;
    top: 10px;
    right: 10px;
    transform: none;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--jupoja-dark, #434242);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}

#bar-notification.bar-notification-container .bar-notification .close::before {
    content: none !important;
}

#bar-notification.bar-notification-container .bar-notification .close__icon {
    font-size: 24px;
    line-height: 1;
    font-weight: 400;
}

#bar-notification.bar-notification-container .bar-notification .close:hover,
#bar-notification.bar-notification-container .bar-notification .close:focus {
    background: #f3f4f6;
    color: #111;
    outline: none;
}

@media (max-width: 575px) {
    #bar-notification.bar-notification-container {
        padding: 16px 12px;
    }

    #bar-notification.bar-notification-container .bar-notification {
        max-width: 100%;
        padding: 18px 48px 18px 16px;
    }

    #bar-notification.bar-notification-container .bar-notification .content {
        font-size: 15px;
    }
}
