.evm-notify {
    position: relative;

    flex: 0 0 auto;
}

.evm-notify-button {
    width: 36px;
    height: 40px;

    padding: 0;

    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 9px;

    background: transparent;
    color: #17211c;

    cursor: pointer;
}

.evm-notify-button:hover,
.evm-notify-button[aria-expanded="true"] {
    background: #eaf7f1;
    color: #16a66a;
}

.evm-notify-button svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;

    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.evm-notify-badge {
    min-width: 20px;
    height: 20px;

    padding: 0 5px;

    position: absolute;

    top: -3px;
    right: -5px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #ffffff;
    border-radius: 999px;

    background: #e5484d;
    color: #ffffff;

    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;
    font-variant-numeric: tabular-nums;
}

.evm-notify-panel {
    width: 370px;
    max-width: calc(100vw - 24px);

    position: absolute;

    top: calc(100% + 10px);
    right: 0;

    z-index: 1000;

    overflow: hidden;

    border: 1px solid #dfe7e2;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 18px 50px
        rgba(23, 33, 28, .14);
}

.evm-notify-head {
    min-height: 50px;

    padding: 0 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    border-bottom: 1px solid #edf1ef;
}

.evm-notify-head strong {
    font-size: 14px;
}

.evm-notify-head-count {
    color: #7a867f;

    font-size: 11px;
}

.evm-notify-list {
    max-height: 430px;

    overflow-y: auto;
}

.evm-notify-item {
    padding: 13px 16px;

    display: block;

    border-bottom: 1px solid #edf1ef;

    color: #17211c;

    text-decoration: none;
}

.evm-notify-item:last-child {
    border-bottom: 0;
}

.evm-notify-item:hover {
    background: #f8fbf9;
}

.evm-notify-item.is-unread {
    background: #f2faf6;
}

.evm-notify-item.is-unread:hover {
    background: #eaf7f1;
}

.evm-notify-message {
    display: block;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 650;
}

.evm-notify-meta {
    margin-top: 5px;

    display: block;

    color: #7a867f;

    font-size: 11px;
    line-height: 1.35;
}

.evm-notify-empty {
    padding: 26px 18px;

    color: #7a867f;

    font-size: 13px;
    text-align: center;
}

@media (max-width: 620px) {

    .evm-notify-panel {
        position: fixed;

        top: 72px;
        left: 12px;
        right: 12px;

        width: auto;
        max-width: none;
    }
}

/* Нулевой badge не показываем */
.evm-notify-badge[hidden] {
    display: none !important;
}

/* Состояние уведомлений */
.evm-notify-message {
    font-weight: 400;
}

.evm-notify-item.is-unread .evm-notify-message {
    font-weight: 700;
}
