.comment-icon {
    --icon-url: url('');
    width: 24px;
    height: 24px;
    background-image: var(--icon-url);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    opacity: 0;
    visibility: hidden;
    transition: .2s;
    border: none;
    cursor: pointer;
    margin-left: 10px;
}
.comment-wrapper {
    max-width: 300px;
    color: #6C6C6C;
    .comment-header {
        padding: 10px;
        border-bottom: 1px solid lightgrey;
        .comment-header-title {
            display: flex;
            align-items: center;
            .comment-title {
                flex-grow: 1;
                font-weight: bold;
            }
            .title-action {
                --icon-url: url('/nts.uk.com.js.web/lib/nittsu/ui/style/stylesheets/images/icons/numbered/431.svg');
            }
            .title-close {
                --icon-url: url('/nts.uk.com.js.web/lib/nittsu/ui/style/stylesheets/images/icons/numbered/443.svg');
            }
            .comment-icon {
                opacity: 1;
                visibility: visible;
            }
        }
        .comment-last-check {
            display: flex;
            align-items: center;
            gap: 5px;
            box-sizing: border-box;
            width: 100%;
            .lc-text {
                width: 130px;
                font-size: 12px;
            }
            .lc-user {
                width: fit-content;
                max-width: 90px;
                font-size: 12px;
            }
            .lc-comment-date {
                flex-grow: 1;
                font-size: 10px;
                position: relative;
                cursor: default;
                color: #939393;
                font-size: 10px;
                min-width: 57px;
                &:hover::after {
                    content: attr(comment-date);
                    position: absolute;
                    top: 20px;
                    left: 20px;
                    transform: translateX(-50%);
                    padding: 4px 8px;
                    white-space: nowrap;
                    background: #333;
                    color: #fff;
                    border-radius: 4px;
                }
            }
        }
    }
    .comment-container{
        max-height: 200px;
        overflow-x: auto;
        .comment-row {
            padding: 10px;
            .comment-row-info {
                display: flex;
                align-items: center;
                gap: 10px;
                .comment-action {
                    --icon-url: url('/nts.uk.com.js.web/lib/nittsu/ui/style/stylesheets/images/icons/numbered/431.svg');
                }
                .comment-user {
                    width: fit-content;
                    max-width: 170px;
                    font-weight: 600;
                    color: #3F3F3F;
                }
                .comment-date {
                    flex-grow: 1;
                    display: flex;
                    justify-content: start;
                    font-size: 10px;
                    position: relative;
                    cursor: default;
                    color: #939393;
                    &:hover::after {
                        content: attr(comment-date);
                        position: absolute;
                        top: 20px;
                        left: 25px;
                        transform: translateX(-50%);
                        padding: 4px 8px;
                        white-space: nowrap;
                        background: #333;
                        color: #fff;
                        border-radius: 4px;
                    }
                }
            }
            .comment-edit-wrapper {
                display: flex;
                .nts-editor-wrapped {
                    flex-grow: 1;
                    .comment-input{
                        width: 100%;
                        box-sizing: border-box;
                        height: 90px;
                    }
                }
                .comment-edit-action {
                    display: flex;
                    flex-direction: column;
                    gap: 5px;
                    .comment-icon {
                        opacity: 1;
                        visibility: visible;
                        position: relative;
                        width: 30px;
                        height: 30px;
                        &:hover::after {
                            content: attr(data-tooltip);
                            position: absolute;
                            top: 1px;
                            right: -10px;
                            transform: translateX(-50%);
                            padding: 4px 8px;
                            white-space: nowrap;
                            background: #333;
                            color: #fff;
                            border-radius: 4px;
                            z-index: 99;
                            width: fit-content;
                        }
                        &.comment-edit-ok {
                            --icon-url: url('/nts.uk.com.js.web/lib/nittsu/ui/style/stylesheets/images/icons/numbered/432.svg');
                            &:hover::after {
                                top: 2px;
                                left: -22px;
                            }
                        }
                        &.comment-edit-x {
                            --icon-url: url('/nts.uk.com.js.web/lib/nittsu/ui/style/stylesheets/images/icons/numbered/433.svg');
                        }
                    }
                }
            }
            .comment-row-conent {
                word-break:break-all;
                font-size: 13px;
                color: #6C6C6C;
                padding-right: 20px;
                white-space: pre-line;
                overflow-wrap: anywhere;
            }
            &.self-comment {
                .comment-row-info {
                    .comment-action {
                        opacity: 1;
                        visibility: visible;
                    }
                }
            }
        }
    }
    .comment-input-container {
        display: flex;
        padding: 10px 10px 0 10px;
        align-items: center;
        flex-direction: column;
        .nts-editor-wrapped {
            flex-grow: 1;
            .comment-input{
                width: 100%;
                box-sizing: border-box;
            }
        }
        .comment-input-action {
            --icon-url: url('/nts.uk.com.js.web/lib/nittsu/ui/style/stylesheets/images/icons/numbered/432.svg');
            opacity: 1;
            visibility: visible;
            width: 30px;
            height: 30px;
            position: relative;
            cursor: pointer;

            &:hover::after {
                content: attr(data-tooltip);
                position: absolute;
                top: 32px;
                left: 50%;
                transform: translateX(-50%);
                padding: 2px 5px;
                white-space: nowrap;
                background: #666;
                color: #fff;
                border-radius: 2px;
                font-size: 11px;
                line-height: 16px;
                z-index: 9999;
                pointer-events: none;
            }

            &.has-error,
            &.disabled {
                pointer-events: none;

                &::before {
                    content: '';
                    width: 100%;
                    height: 100%;
                    display: block;
                    background-color: grey;
                    border-radius: 50%;
                    opacity: 0.4;
                }
            }
        }
    }
    &.comment-editing, &.comment-adding {
        .comment-container{
            .comment-row {
                .comment-row-info {
                    .comment-action {
                        opacity: 0;
                        visibility: hidden;
                    }
                }
            }
        }
    }
}
.ntsContextMenu {
    .menu-item  {
        .menu-icon {
            --icon-url: url('');
            width: 22px;
            height: 22px;
            background-image: var(--icon-url);
            background-repeat: no-repeat;
            background-position: center center;
            background-size: contain;
            top: calc(50% - 4px);
            left: 2px;
            &.icon-434 {
                --icon-url: url('/nts.uk.com.js.web/lib/nittsu/ui/style/stylesheets/images/icons/numbered/434.svg');
            }
            &.icon-430 {
                --icon-url: url('/nts.uk.com.js.web/lib/nittsu/ui/style/stylesheets/images/icons/numbered/430.svg');
            }
        }
        &:has(.text-bf-hl) {
            color: #BF3A3A;
        }
        &:has(.text-3f-hl) {
            color: #3F3F3F;
        }
    }
}

.no-select {
    user-select: none;
}

.comment-input-main{
    display: flex;
    align-items: center;
    width: 100%;
}

.comment-input-counter{
    align-self: flex-start;
    font-size: 11px;
    line-height: 16px;
    margin-top: 2px;
}