.notification {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--foreground-color);
    border-radius: 0.75rem;
    padding: 1rem 1rem 1rem; /* top, left-right, bottom*/
    margin-bottom: 1rem;
    max-width: 45rem;
    width: 100%;
    overflow: hidden;
}

.notification-icon {
    display: inline-block;
    padding: 0.2em 0.22em;
    height: max-content;
    background-color: var(--highlight-color);
    color: var(--notice-color);
    border-radius: 100%;
    text-align: center;
    line-height: 1;
    vertical-align: middle;
}

.avatar + .notification-body {
    .notification-icon {
        position: absolute;
        top: 3em;
        left: 3em;
        vertical-align: unset;
    }
}

.notification-reaction {
    position: absolute;
    top: 3em;
    left: 3em;
    display: inline-block;
    filter: drop-shadow(0 0 0.2em rgba(0, 0, 0, 0.7));
}

.notification-text {
    font-size: 0.8em;
}

.notification-note {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-style: solid;
    border-color: var(--highlight-color);
    border-width: 0.2rem;
    border-radius: 1.25rem;
    padding: 0.5rem;
    margin-top: 1rem;
}

::deep .notification-note {
    .metadata {
        flex-basis: 20%;
    }
    
    .instance {
        display: none;
    }
}

::deep .notification-header .avatar {
    margin-right: 0.75em;
}

.display-name {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 15rem;
}

.notification-body {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.notification-header {
    display: flex;
    width: 100%;
}