/* Core notifications dropdown: wrap long messages inside the menu. */
.noxen-navbar .notifications-dropdown .dropdown-menu {
    width: min(24rem, calc(100vw - 1.25rem));
    max-width: min(24rem, calc(100vw - 1.25rem));
    max-height: min(70vh, 32rem);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.noxen-navbar .notifications-dropdown .dropdown-header {
    padding: 0.45rem 0.72rem 0.35rem;
    white-space: normal;
}

.noxen-navbar .notifications-dropdown .dropdown-item {
    align-items: flex-start;
    white-space: normal;
    overflow-wrap: anywhere;
}

.noxen-navbar .notifications-dropdown .dropdown-item > .flex-shrink-0 {
    margin-right: 0 !important;
}

.noxen-navbar .notifications-dropdown .dropdown-item > .flex-grow-1 {
    min-width: 0;
}

.noxen-navbar .notifications-dropdown .rounded-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0 !important;
}

.noxen-navbar .notifications-dropdown .rounded-circle .bi,
.noxen-navbar .notifications-dropdown .dropdown-item:hover .rounded-circle .bi {
    margin: 0 !important;
    color: inherit;
    font-size: 0.95rem;
}

.noxen-navbar .notifications-dropdown #readNotifications,
.noxen-navbar .notifications-dropdown #noNotificationsLabel {
    justify-content: center;
}

.noxen-navbar .notifications-dropdown #readNotifications {
    border-top: 1px solid var(--noxen-border);
    margin-top: 0.2rem;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

@media (max-width: 1199.98px) {
    .noxen-navbar .notifications-dropdown .dropdown-menu {
        width: 100%;
        max-width: 24rem;
        margin-inline: auto;
    }
}
