.realtime-comments-container {
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

#realtime-comments-container {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 20px;
}

.realtime-comment {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: background-color 0.5s ease;
    position: relative;
}
.realtime-comment .realtime-replies {
    margin-left: 40px;
    margin-top: 10px;
}

.realtime-comment.highlight {
    background-color: #fffde7;
}

.comment-author {
    font-weight: bold;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.comment-author img {
    border-radius: 50%;
    margin-right: 10px;
}

.comment-content {
    margin-left: 50px;
}

.comment-content p {
    margin: 0 0 10px;
}

.comment-metadata {
    font-size: 12px;
    color: #666;
    margin-left: 50px;
    margin-top: 5px;
}

.reply-btn {
    display: inline-block;
    font-size: 13px;
    color: #0073aa;
    background: none;
    border: none;
    padding: 0;
    margin-left: 54px;
    margin-top: 2px;
    cursor: pointer;
    text-decoration: underline;
}
.reply-btn:hover { color: #005d87; }

.realtime-comment-form-container {
    background-color: #f9f9f9;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.realtime-comment-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    margin-bottom: 10px;
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
}

.submit-comment {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.submit-comment:hover {
    background-color: #005d87;
}

.comment-toggle {
    display: inline-block;
    background-color: #f0f0f0;
    color: #333;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    margin-bottom: 15px;
    font-weight: bold;
    cursor: pointer;
}

.new-comments-notification {
    position: sticky;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #0073aa;
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 100;
    display: inline-block;
}

.cancel-reply-btn {
    margin-top: 8px;
    margin-left: 5px;
    background: #eee;
    color: #444;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 13px;
}
.cancel-reply-btn:hover {
    background: #f55;
    color: #fff;
    border-color: #c33;
}