.notification {
    position: relative;
    display: block;
    z-index: 5;
}

.notification:not(:has(dialog)),
.notification:has(dialog) dialog {
    padding: .75rem .75rem .75rem 2.75rem;
    box-shadow:
        var(--boxShadow1),
        var(--boxShadow2);
    border-radius: var(--borderRadius);
    border-width: 1px;
    border-style: solid;
    background-size: 1.5rem;
    background-position: .75rem .75rem;
    background-repeat: no-repeat;
    font-size: 1rem;
    line-height: 1.5rem;
}

.notification:has(dialog) dialog {
    width: 100%;
    max-width: 67.5rem;
}

.notification__title {
    font-weight: bold;
}

.notification__message p:last-child {
    margin: 0;
}

.notification__close {
    width: 2.25rem;
    height: 2.25rem;
    position: absolute;
    right: 0;
    top: 0;
    border: 0;
    margin: 0;
    background: transparent url("/frontend/assets/Shared/Component/Notification/Presentation/Images/Close-9b01f997dd.svg") no-repeat center center;
    background-size: .75rem;
    cursor: pointer;
}

.notification.notification--error:not(:has(dialog)),
.notification.notification--error:has(dialog) dialog {
    color: var(--greyColor10);
    border-color: var(--redColorDark);
    background-image: url("/frontend/assets/Pararius/Component/Notification/Presentation/Images/Error-33929d0594.svg");
    background-color: var(--redColorLight);
}

.notification.notification--info:not(:has(dialog)),
.notification.notification--info:has(dialog) dialog {
    color: var(--greyColor10);
    border-color: var(--primaryColorDark);
    background-color: var(--primaryColorLight);
    background-image: url("/frontend/assets/Pararius/Component/Notification/Presentation/Images/Info-3ba7a316d0.svg");
}

.notification.notification--success:not(:has(dialog)),
.notification.notification--success:has(dialog) dialog {
    color: var(--greyColor10);
    border-color: var(--tertiaryColorDark);
    background-color: var(--tertiaryColorLight);
    background-image: url("/frontend/assets/Pararius/Component/Notification/Presentation/Images/Success-1e732ad028.svg");
}

.notification.notification--warning:not(:has(dialog)),
.notification.notification--warning:has(dialog) dialog {
    color: var(--greyColor10);
    border-color: var(--yellowColorDark);
    background-color: var(--yellowColorLight);
    background-image: url("/frontend/assets/Pararius/Component/Notification/Presentation/Images/Warning-fbed2448ef.svg");
}
