#user-top-menu .user-right-block button.notification-icon {
    padding: 0;
    border: 0;
    outline: 0;
    cursor: pointer;
    z-index: 20;
}

#user-top-menu .user-right-block .notification-icon img {
    pointer-events: none;
}

#user-top-menu .user-right-block .notification-icon #bell-badge[hidden] {
    display: none;
}

#user-top-menu .user-right-block .notification-icon.is-open {
    background: var(--app-darker-green);
}

#user-top-menu .user-right-block .notification-icon.is-open #bell-badge {
    color: var(--app-darker-green);
}

#notifications-panel {
    position: absolute;
    top: 6.9375rem;
    right: 0;
    z-index: 1055;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 25rem;
    max-height: min(34rem, calc(100vh - 12rem));
    padding: 1.25rem 0 0.5rem;
    background: #F2F7FB;
    border: 1px solid #E1E7EC;
    border-radius: 1rem;
    box-shadow: 0 1.25rem 2.5rem rgba(20, 24, 30, 0.16);
    text-align: left;
    transform-origin: top right;
    animation: np-slide 0.18s ease-out;
}

#notifications-panel[hidden] {
    display: none;
}

@keyframes np-slide {
    from {
        opacity: 0;
        transform: translateY(-0.75rem) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.np-head {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0 1.25rem 0.875rem;
}

.np-title {
    color: var(--black);
    font-weight: 700;
    font-size: 1.375rem;
    line-height: 1.2;
}

.np-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.625rem;
    height: 1.625rem;
    padding: 0 0.375rem;
    background: var(--app-red);
    border-radius: 0.375rem;
    color: var(--white);
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1;
}

.np-count[hidden] {
    display: none;
}

.np-close {
    margin-left: auto;
    padding: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #7A8894;
    cursor: pointer;
}

.np-close:hover {
    background: rgba(122, 136, 148, 0.12);
    color: var(--black);
}

.np-close svg {
    width: 1rem;
    height: 1rem;
}

.np-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.25rem 0.875rem;
}

.np-filter {
    padding: 0.4375rem 0.875rem;
    background: var(--white);
    border: 1px solid #E1E7EC;
    border-radius: 0.5rem;
    color: #8A97A3;
    font-weight: 700;
    font-size: 0.8125rem;
    line-height: 1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
}

.np-filter:hover {
    color: var(--black);
}

.np-filter.is-active {
    background: var(--app-green);
    border-color: var(--app-green);
    color: var(--white);
}

.np-list {
    flex: 1;
    min-height: 4rem;
    overflow-y: auto;
    padding: 0 1.25rem;
}

.np-group {
    margin: 0.25rem 0 0.5rem;
    color: var(--black);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
}

.np-item {
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0.75rem;
    padding: 0.875rem 2.25rem 0.9375rem 1rem;
    background: var(--white);
    border: 0;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.5rem rgba(20, 24, 30, 0.06);
    text-align: left;
    cursor: pointer;
}

.np-item:hover {
    box-shadow: 0 0.25rem 0.875rem rgba(20, 24, 30, 0.12);
}

.np-item-date {
    display: block;
    color: #93A0AB;
    font-weight: 500;
    font-size: 0.8125rem;
    line-height: 1.2;
}

.np-item-name {
    display: block;
    margin-top: 0.25rem;
    color: var(--black);
    font-weight: 700;
    font-size: 1.0625rem;
    line-height: 1.25;
}

.np-item-short {
    display: block;
    margin-top: 0.1875rem;
    color: #4A5560;
    font-weight: 400;
    font-size: 0.9375rem;
    line-height: 1.35;
}

.np-item-dot {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    background: var(--app-red);
}

.np-item.is-read .np-item-dot {
    background: #C9D2DA;
}

.np-item.is-read .np-item-name {
    font-weight: 600;
}

.np-message {
    padding: 1.5rem 0.25rem;
    color: #7A8894;
    font-size: 0.9375rem;
    text-align: center;
}

.np-foot {
    padding: 0.25rem 1.25rem 0.5rem;
}

.np-more {
    width: 100%;
    padding: 0.5625rem 0;
    background: var(--white);
    border: 1px solid #E1E7EC;
    border-radius: 0.5rem;
    color: var(--black);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
}

.np-more:hover {
    border-color: var(--app-green);
    color: var(--app-darker-green);
}

.np-more[hidden] {
    display: none;
}

#notifications-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

#notifications-modal[hidden] {
    display: none;
}

.nm-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(20, 24, 30, 0.45);
}

.nm-window {
    position: relative;
    box-sizing: border-box;
    width: min(34rem, 100%);
    max-height: min(32rem, calc(100vh - 4rem));
    overflow-y: auto;
    padding: 1.75rem 2rem 2rem;
    background: var(--white);
    border: 2px solid var(--app-green);
    border-radius: 1rem;
    box-shadow: 0 1.5rem 3rem rgba(20, 24, 30, 0.28);
    animation: nm-pop 0.18s ease-out;
}

@keyframes nm-pop {
    from {
        opacity: 0;
        transform: translateY(0.75rem) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.nm-close {
    position: absolute;
    top: 0.875rem;
    right: 0.875rem;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: var(--black);
    cursor: pointer;
}

.nm-close:hover {
    background: rgba(20, 24, 30, 0.08);
}

.nm-close svg {
    width: 1.125rem;
    height: 1.125rem;
}

.nm-date {
    padding-right: 2.5rem;
    color: #93A0AB;
    font-weight: 500;
    font-size: 0.875rem;
}

.nm-title {
    margin: 0.375rem 0 0.75rem;
    padding-right: 2.5rem;
    color: var(--black);
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.2;
}

.nm-text {
    color: #33404B;
    font-size: 1.0625rem;
    line-height: 1.5;
}

.nm-text p {
    margin: 0 0 0.75rem;
}

.nm-text p:last-child {
    margin-bottom: 0;
}

.nm-text ul,
.nm-text ol {
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
}

.nm-text li {
    margin-bottom: 0.25rem;
}

.nm-text h1,
.nm-text h2,
.nm-text h3,
.nm-text h4,
.nm-text h5 {
    margin: 1rem 0 0.5rem;
    color: var(--black);
    font-weight: 700;
    font-size: 1.1875rem;
    line-height: 1.3;
}

.nm-text h1:first-child,
.nm-text h2:first-child,
.nm-text h3:first-child {
    margin-top: 0;
}

.nm-text a {
    color: var(--app-darker-green);
    text-decoration: underline;
}

.nm-text hr {
    margin: 1rem 0;
    border: 0;
    border-top: 1px solid #E1E7EC;
}

@media (max-width: 48rem) {
    #notifications-panel {
        position: fixed;
        top: auto;
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
        width: auto;
        max-height: min(28rem, calc(100vh - 6rem));
        transform-origin: bottom center;
    }

    @keyframes np-slide {
        from {
            opacity: 0;
            transform: translateY(1rem);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .np-title {
        font-size: 1.25rem;
    }

    .np-filters {
        flex-wrap: nowrap;
        gap: 0.375rem;
        padding: 0 1rem 0.75rem;
    }

    .np-filter {
        flex: 1;
        padding: 0.375rem 0.25rem;
        font-size: 0.75rem;
        letter-spacing: 0;
    }

    .np-head,
    .np-list,
    .np-foot {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .nm-window {
        padding: 1.5rem 1.25rem 1.75rem;
    }

    .nm-title {
        font-size: 1.4375rem;
    }

    .nm-text {
        font-size: 1rem;
    }
}
