.inline-comments-container > :first-child {
    padding-top: 5px;
}

.inline-comments-container > :first-child::before {
    border-top: 1px solid #CCC;
    content: '';
    position: absolute;
    top: 2px;
    left: 0;
    right: 0;
    width: 500px;
}

.inline-comments-container > * {
    padding-bottom: 5px;
}

.inline-comments-container > *::after {
    border-bottom: 1px solid #CCC;
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    width: 500px;
}

.inline-comment {
    position: relative;
    font-family: "Ubuntu", sans-serif;
    padding-left: 5px;
    padding-right: 5px;
    width: 500px;
}

.file_source-content.hide-comments .inline-comment {
    display: none;
}

.file_source-content:not(.hide-comments) .ace_line:hover .add-inline-comment-btn {
    visibility: visible;
}

.add-inline-comment-btn {
    background: var(--color-green);
    color: white;
    width: 14px;
    height: 14px;
    position: absolute;
    top: 3px;
    line-height: 14px;
    text-align: center;
    cursor: pointer;
    visibility: hidden;
    border-radius: 2px;
    left: 0.98em;
    z-index: 1;
    user-select: none;
}

.new-comment.inline-comment .comment-content, .inline-comment .edit-comment .comment-content {
    width: 490px; /* 500px - 2*5px padding */
    height: 78px;
    resize: vertical;
    white-space: pre;
}

.file-comments-container {
    margin-top: 22px;
}

.file-comment {
    font-family: "Ubuntu", sans-serif;
}

.new-comment.file-comment .comment-content, .file-comment .edit-comment .comment-content {
    width: 100%;
    height: 78px;
    resize: vertical;
    white-space: pre;
}

.comment-divider {
    margin: 14px 0;
}

.comment-header {
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
}

.comment-title {
    color: #4C4C4C;
}

.comment-edited-label {
    font-size: 0.75em;
    align-self: center;
    user-select: none;
}

.comment-actions {
    display: flex;
    gap: 8px;
    visibility: hidden;
}

.inline-comment:hover .comment-actions, .file-comment:hover .comment-actions {
    visibility: visible;
}

.comment-content {
    color: #4D4D4D;
    white-space: normal;
}

.comment-content p {
    margin: 0.3em 0;
}

.comment-footer {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    padding: 4px;
}
