@import 'styles/colors';

:host {
    position: relative;
}

.notification-events-wrapper {
    text-transform: none;
    right: 0;
    margin-top: 3px;
    width: 370px;
    max-height: 450px;
    position: absolute;
    @media (max-width: 767px) {
        position: static;
    }
    overflow: hidden;
    box-shadow: 0 1px 17px 0 rgba(0, 0, 0, 0.2);
    z-index: 1001;

    .notification-events {
        left: 0;
        width: 390px;
        overflow-x: hidden;
        position: relative;
        margin-top: 1px;
        right: 50px;
        max-height: 450px;
        overflow-y: auto;
        font: 13px 'Open Sans', Helvetica, sans-serif;
        line-height: 1.62;
        letter-spacing: normal;
        color: #262626;
        background-color: #f0f2f5;
        padding-bottom: 21px;

        h3 {
            text-align: center;
            margin: 25px auto 0 auto;
            font-size: 17px;
            font-weight: 600;
            color: #a4a4a4;
        }

        .event-item {
            width: 323px;
            position: relative;
            display: inline-block;
            margin: 19px 30px 0 20px;
            padding: 22px 10px 12px 0;
            background-color: #fff;
            font-size: 13px;
            line-height: 21px;
            font-weight: normal;
            color: #000;
            border-radius: 6px;
            box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.05);

            &.latest_new {
                background-color: @selectedMenuElement;
            }

            .feed {
                color: #ef4949;
                display: inline-block;
                font-size: 30px;
                width: 20px;
                vertical-align: top;
                margin: -3px 18px 0 19px;
            }

            > div {
                width: 252px;
                display: inline-block;

                a {
                    display: inline-block;
                    font-size: 14px;
                    color: #f0661b;
                }
            }

            .news_wrapper {
                .attention {
                    display: flex;
                    justify-content: space-between;
                    .news_title {
                        color: #828282;
                        font-weight: bold;
                        width: 180px;
                    }
                    .news_time {
                        color: #828282;
                        font-weight: 200;
                        font-size: 12px;
                    }
                }
                a {
                    color: @mainColor;
                }
            }
        }

        .note {
            margin: 10px 0 0 0;
            font-weight: bold;
            color: #262626;
        }
    }
}

.notification-events-button {
    position: relative;
    color: #484848;
    &:focus {
        user-select: none;
        outline: none;
    }
    &.active {
        background-color: @navBackgroundCurElement !important;
    }
}

.notification-events-count {
    position: absolute;
    top: 16px;
    left: 27px;
    background-color: #fe5151;
    color: white;
    width: 15px;
    height: 14px;
    text-align: center;
    border-radius: 10px;
    padding-bottom: 2px;
    font-size: 10px;
    line-height: 14px;
}
