.comment-replies-avatars-group img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}
ol.commentlist {
    margin: 0px;
}
span.comt_count {
    background: oklch(97% 0 0);
    padding: 1px 4px;
    border-radius: 6px;
    text-align: center;
    margin-left: 10px;
    font-size: 18px;
    line-height: 20px;
}
#comment-sorting {
    display: flex;
    gap: 5px;
    background: oklch(97% 0 0);
    padding: 4px;
    border-radius: 20px;
    width: fit-content;
}
.comment-replies-avatars-group a {
    display: flex;
    align-items: center;
}
textarea#comment:focus, .comment-form #author:focus, .comment-form input#email:focus {
    color: #212529;
    background-color: #fff;
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
    height: 100%;
}
.comment-form #author {
    border: 1px solid oklch(92% .004 286.32);
}
.comment-form .instructions {
    border: 1px solid oklch(92% .004 286.32);
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.instructions code {
    font-size: 12px;
    line-height: 18px;
}
h2.comments-title {
    margin-bottom: 32px;
}
ul.children {
    list-style: none;
        padding-left: 30px;
    margin-top: -30px;
    border-left: 1px solid rgba(0, 0, 0, .05);
}
#cancel-comment-reply-link {
    display: inline-block;
    background: #000000;
    color: #fffbfb;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    border-radius: 5px;
    margin-left: 10px;
}
div#respond h3 {
    font-size: 14px;
    line-height: 20px;
}
.comment-respond p {
    font-size: 13px;
    color: #6a7282;
    line-height: 18px;
}
p.custom-comment-form-comment {
    font-size: 14px;
    color: #000;
    line-height: 20px;
}
form#commentform {
    margin-bottom: 4rem;
}
.comment .children {
    padding-left: 15px !important;
    margin-top: 0px !important;
    border-left: 3px solid rgb(242, 242, 242) !important;
}
.comment-sort-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: oklch(55.1% .027 264.364);
    transition: all 0.3s ease;
    padding: 4px 12px;
    position: relative;
    line-height: 20px;
    border-radius: 20px;
}
.comment-sort-btn.active,
.comment-sort-btn:hover {
    color: #000000;
    background: #ffffff;
    border: 1px solid oklch(92.8% .006 264.531);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.comment-list.loading {
    opacity: 0.5;
    pointer-events: none;
}

.custom-comment-body {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0px;
    padding-bottom: 15px;
    width: 100%;
}
.custom-comment-avatar img {
    border-radius: 50%;
    width: 30px;
    height: 30px;
}
.custom-comment-main {
    flex: 1;
}
.custom-comment-meta {
    font-size: 15px;
    margin-bottom: 4px;
    color: #232323;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.custom-badge {
    display: inline-block;
    background: #ffffff;
    color: #111111;
    padding: 1px 6px;
    font-size: 11px;
    line-height: 16px;
    border-radius: 12px;
    border: 1px solid oklch(87.1% .006 286.286);
}
.custom-comment-author {
    font-weight: 400;
    margin-right: 5px;
    font-size: 14px;
    line-height: 20px;
}
.custom-comment-date {
    color: #888;
    font-size: 12px;
    line-height: 16px;
}

.custom-comment-text {
    font-size: 14px;
    margin-bottom: 7px;
    color: #333;
    line-height: 20px;
}
.custom-comment-actions {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.custom-comment-reply {
    color: #6B6B6B;
    text-decoration: none;
}
.comment_votes {
    display: flex;
    align-items: center;
}
span.custom-comment-reply a {
    color: #6B6B6B !important;
}
.custom-comment-reply, .comment-share-btn, .custom-like-btn {
   cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 0px;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 18px;
    border-radius: 6px;
    color: #6B6B6B;
    background: #fff;
}
.custom-comment-form-comment, .custom-comment-form-author, .custom-comment-form-email { margin-bottom: 13px; }
.custom-comment-form-comment label, .custom-comment-form-author label, .custom-comment-form-email label {
    display: block; font-weight: 500; margin-bottom: 3px;
}
.custom-comment-form-comment textarea, .custom-comment-form-author input, .custom-comment-form-email input {
    width: 100%;
    border: 1px solid #ffffff;
    padding: 10px;
    border-radius: 5px;
    font-size: 15px;
    background: #ffffff;
}

#respond .form-submit input[type="submit"], button.comment-edit-save, button.comment-edit-cancel {
    background: #000000;
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 5px;
    transition: background 0.2s;
    line-height: 20px;
}
#respond .form-submit input[type="submit"]:hover, button.comment-edit-cancel:hover, button.comment-edit-save:hover {
    background: #000000c9;
}

.custom-thread {
    position: relative;
    margin-bottom: 15px;
    padding-left: 0; /* No extra padding for connectors */
}

/* Remove any indentation for reply depth if you want simple stacking:
.depth-1, .depth-2, .depth-3, .depth-4, .depth-5 { margin-left: 0; }
*/

.custom-thread-content {
    position: relative;
    background: #fff;
    z-index: 2;
}
.custom-comment-actions svg {
    width: 15px;
    height: 15px;
}
.comment-error {
    background: #ffe6e6;
    border: 1px solid #ff9999;
    color: #cc0000;
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
    display: none;
}

.custom-like-btn.processing {
    opacity: 0.7;
    pointer-events: none;
}

.custom-like-btn.loading-votes {
    opacity: 0.7;
    pointer-events: none;
}

.custom-like-btn.loading-votes .like-count {
    color: #999;
}

.comment-share-btn:hover, .custom-like-btn:hover, .custom-comment-reply:hover {
    background: oklch(96.7% .001 286.375);
    color: #000000;
}
.comment-toggle-replies-btn {
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    color: #000000;
    transition: background 0.2s;
    line-height: 18px;
}


.comment-replies-avatars-group {
    display: inline-flex;
    align-items: center;
    position: relative;
}
.comment-replies-avatars-group .avatar {
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -11px;
    background: #fff;
    width: 24px;
    height: 24px;
    z-index: 1;
    transition: box-shadow 0.2s;
}
.comment-replies-avatars-group .avatar:first-child {
    margin-left: 0;
}
.comment-replies-avatars-group a:hover .avatar{
    box-shadow: 0 0 4px #3490dc;
}
.reply-avatars-more {
    display: inline-block;
    margin-left: -8px;
    background: #eee;
    color: #333;
    font-size: 12px;
    border-radius: 50%;
    min-width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    font-weight: 600;
    border: 2px solid #fff;
    z-index: 0;
}
.comment-action-dropdown-menu svg {
    width: 16px;
    height: 16px;
}
.comment-action-dropdown-wrap {
    position: relative;
    display: inline-block;
}

.comment-action-dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.comment-action-dropdown-btn svg { 
    display: block; 
    fill: #555; 
    width: 16px;
    height: 16px;
}

.comment-action-dropdown-btn:hover { 
    background: #eaeaea; 
}

.comment-action-dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 120px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.comment-action-dropdown-menu .comment-report-btn, 
.comment-action-dropdown-menu .comment-delete-btn, 
.comment-action-dropdown-menu .comment-edit-btn {
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    color: #333;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
    transition: background-color 0.2s ease;
}

.comment-action-dropdown-menu .comment-report-btn:hover, 
.comment-action-dropdown-menu .comment-edit-btn:hover, 
.comment-action-dropdown-menu .comment-delete-btn:hover {
    background: #f5f5f5;
    color: #000;
}

.comment-action-dropdown-menu .comment-report-btn.reported {
    color: #e11d48;
    font-weight: 600;
    opacity: 0.8;
    cursor: default;
}

.comment-action-dropdown-menu .comment-delete-btn {
    color: #dc2626;
}

.comment-action-dropdown-menu .comment-delete-btn:hover {
    background: #fef2f2;
    color: #dc2626;
}

.comment-mention {
    color: #2d8cff;
    font-weight: bold;
    text-decoration: none;
}
.comment-mention:hover {
    text-decoration: underline;
}
textarea.comment-edit-textarea {
    background: #fff;
    border: 1px solid oklch(87.1% .006 286.286);
    border-radius: 6px;
}

button.comment-edit-cancel {
    margin-left: 10px;
}
.drop-down-share {
    display: none;
}
@media only screen and (max-width: 768px) {
    .custom-badge {
    font-size: 9px;
    line-height: 14px;
}
    .comment-sort-btn {
            font-size: 12px;
            border-radius: 18px;
    padding: 4px 8px;
}
    .custom-comment-avatar img {
        border-radius: 50%;
        width: 26px;
        height: 26px;
    }
    .comment-replies-avatars-group .reply-avatar {
    width: 20px;
    height: 20px;
}
.custom-comment-reply, .comment-share-btn, .custom-like-btn {
    border: 0px;
}
.custom-comment-actions {
    gap: 10px;
}
.custom-comment-author {
    font-weight: 600;
    margin-right: 6px;
    font-size: 14px;
    line-height: 20px;
}
.default-down-share {
    display: none;
}
.comment-share-btn {
    border: 0px;
    margin: 0px;
    width: 100%;
    padding: 5px 10px;
    background: none;
    border: none;
    color: #333;
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    line-height: 20px;
}
.drop-down-share {
    display: block !important;
}
    .comment .children {
        padding-left: 10px !important;
        margin-left: 30px !important;
    }
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    position: relative;
    margin-bottom: 1.5em;
    transition: all 0.2s ease;
}

.children {
    margin-left: 2.5em;
    padding-left: 1em;
    border-left: 2px solid #eee;
    display: none; /* Hide by default */
}


/* Basic list styling - remove numbering */
ol.commentlist, ul.commentlist, .comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

ol.commentlist li, ul.commentlist li, .comment-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Remove plus/minus icons from collapse/expand */
.comment.has-children:before {
    content: none;
    display: none;
}

.comment.has-children.expanded:before {
    content: none;
    display: none;
}

/* Show child comments when parent has 'expanded' class */
.comment.expanded + .children {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .children {
        margin-left: 1.5em;
        padding-left: 0.5em;
    }
    
    .comment.has-children:before {
        font-size: 1em;
        width: 18px;
        height: 18px;
    }
    

}


/* Add this CSS to your stylesheet for the comment system fixes */

/* New comment highlighting */
.new-comment {
    background-color: #f0f8ff !important;
    border-left: 3px solid #007cba !important;
    transition: all 0.3s ease;
}

.new-comment .custom-comment-main {
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

/* Ensure reply forms are visible */
#respond {
    display: block !important;
    visibility: visible !important;
}

/* Make sure the form doesn't get hidden */
.comment-respond {
    display: block !important;
}

/* Comment error styling */
.comment-error {
    margin: 10px 0;
    padding: 10px;
    background: #ffebee;
    color: #c62828;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid #ffcdd2;
    animation: fadeInError 0.3s ease;
}

@keyframes fadeInError {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Edit form styling */
.comment-edit-form {
    margin: 10px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.comment-edit-textarea {
    width: 100%;
    min-height: 80px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
}

.comment-edit-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comment-edit-save, .comment-edit-cancel {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.comment-edit-save {
    background: #007cba;
    color: white;
}

.comment-edit-save:hover {
    background: #005a87;
}

.comment-edit-cancel {
    background: #f0f0f0;
    color: #333;
}

.comment-edit-cancel:hover {
    background: #ddd;
}

.comment-edit-help {
    font-size: 12px;
    color: #666;
    margin-left: auto;
}

.comment-edit-error {
    background: #ffebee;
    color: #c62828;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 13px;
}

/* Login notice styling */
.comment-login-notice {
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment-login-notice .notice-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.comment-login-notice .notice-icon {
    width: 20px;
    height: 20px;
    color: #0ea5e9;
    flex-shrink: 0;
    margin-top: 2px;
}

.comment-login-notice .notice-text {
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
}

.comment-login-notice .notice-text strong {
    color: #1e40af;
    font-weight: 600;
}

.comment-login-notice .login-link,
.comment-login-notice .register-link {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.comment-login-notice .login-link:hover,
.comment-login-notice .register-link:hover {
    color: #0284c7;
    text-decoration: underline;
}

.comment-edit-success {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 13px;
}

/* Processing states */
.custom-like-btn.processing {
    opacity: 0.6;
    pointer-events: none;
}

/* Expanded comment styling */
.comment.expanded > .custom-comment-meta {
    background: #f5f5f5;
}

/* Children visibility */
.children {
    display: none;
}

.comment.expanded + .children {
    display: block;
}

/* Ensure vote buttons are properly clickable */
.custom-like-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    user-select: none;
}

.custom-like-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.custom-like-btn svg {
    pointer-events: none;
    flex-shrink: 0;
}

.custom-like-btn .like-count {
    pointer-events: none;
    user-select: none;
}

.custom-like-btn.processing {
    opacity: 0.7;
    cursor: not-allowed;
}
.custom-like-btn.active {
    color: #000000;
}
.custom-like-btn.active svg {
    fill: #000000;
}
/* ===== ANNOTATION FEATURE STYLES ===== */
.annotation-toolbar {
    position: absolute;
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.annotation-toolbar::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}




.annotation-option {
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 3px;
    transition: background-color 0.2s ease;
    font-size: 12px;
    font-weight: 400;
    color: #fff;
    user-select: none;
    line-height: 16px;
}
.annotation-option:hover {
    background-color: rgb(255 255 255 / 0%);
}
.annotation-separator {
    width: 1px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Text highlighting styles */
.text-highlight {
    padding: 2px 0;
    border-radius: 3px;
    transition: background-color 0.2s ease;
    cursor: pointer;
    position: relative;
}

/* Different highlight colors for variety */
.text-highlight[data-highlight-id*="highlight_"] {
    background-color: rgb(232, 243, 232);
}

.text-highlight[data-highlight-id*="highlight_"]:hover {
    background-color: rgb(232, 243, 232);
}

/* Highlight removal tooltip */
.highlight-remove-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.highlight-remove-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.highlight-remove-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.highlight-remove-tooltip:hover {
    background: #555;
}
.text-highlight.clicked {
    background-color: rgb(178 219 178) !important;
}
.annotation-comment-form {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    z-index: 10000;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.annotation-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.annotation-comment-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.annotation-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.annotation-close-btn:hover {
    color: #333;
}

.annotation-selected-text {
    padding: 0 20px;
    margin-bottom: 20px;
}

.annotation-selected-text blockquote {
    background: #f8f9fa;
    border-left: 4px solid var(--link-theme-color, #007cba);
    margin: 10px 0;
    padding: 10px 15px;
    font-style: italic;
    color: #666;
}

.annotation-comment-form-content {
    padding: 0 20px 20px;
}

.annotation-comment-form-content .form-group {
    margin-bottom: 15px;
}

.annotation-comment-form-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.annotation-comment-form-content textarea,
.annotation-comment-form-content input[type="text"],
.annotation-comment-form-content input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.annotation-comment-form-content textarea {
    height: 100px;
    resize: vertical;
}

.annotation-comment-form-content .form-submit {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.annotation-submit-btn,
.annotation-cancel-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.annotation-submit-btn {
    background-color: var(--link-theme-color, #007cba);
    color: #fff;
}

.annotation-submit-btn:hover {
    background-color: #005a87;
}

.annotation-cancel-btn {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.annotation-cancel-btn:hover {
    background-color: #e9ecef;
}

/* Annotation comment display in comment list - using blockquote format */
.custom-comment-text blockquote {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 0 4px 4px 0;
    color: #000000;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: rgba(0, 0, 0, 0.04) 0px 1px 4px;
    margin-top: 22px;
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 22px;
}

.custom-comment-text blockquote p {
    margin: 0;
    line-height: 1.5;
}
.custom-comment-text blockquote p mark {
    background: rgb(232, 243, 232);
}
/* Mobile responsiveness */
@media (max-width: 768px) {
    .annotation-comment-form {
        width: 95%;
        max-height: 90vh;
    }
    
    .annotation-comment-form-content .form-submit {
        flex-direction: column;
    }
    
    .annotation-comment-form-content .form-submit button {
        width: 100%;
    }
    
    /* Ensure tooltip looks consistent on mobile */
    .highlight-remove-tooltip {
        position: absolute;
        top: -40px;
        left: 50%;
        transform: translateX(-50%);
        background: #333;
        color: white;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 12px;
        white-space: nowrap;
        z-index: 10000;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        cursor: pointer;
        user-select: none;
        /* Mobile-specific adjustments */
        min-width: 120px;
        text-align: center;
        font-weight: 500;
        /* Ensure it's visible on mobile */
        max-width: 90vw;
        word-wrap: break-word;
        white-space: normal;
    }
    
    .highlight-remove-tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top-color: #333;
    }
    
    .highlight-remove-tooltip.show {
        opacity: 1;
        visibility: visible;
    }
    
    .highlight-remove-tooltip:hover {
        background: #555;
    }
    
    /* Ensure annotation highlight tooltips also look consistent on mobile */
    .annotation-highlight.permanent .highlight-remove-tooltip {
        position: absolute;
        top: -40px;
        left: 50%;
        transform: translateX(-50%);
        background: #333;
        color: white;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 12px;
        white-space: nowrap;
        z-index: 10000;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        opacity: 0;
        visibility: hidden;
        transition: all 0.2s ease;
        cursor: pointer;
        user-select: none;
        /* Mobile-specific adjustments */
        min-width: 120px;
        text-align: center;
        font-weight: 500;
        /* Ensure it's visible on mobile */
        max-width: 90vw;
        word-wrap: break-word;
        white-space: normal;
    }
    
    .annotation-highlight.permanent .highlight-remove-tooltip::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top-color: #333;
    }
    
    .annotation-highlight.permanent .highlight-remove-tooltip.show {
        opacity: 1;
        visibility: visible;
    }
    
    .annotation-highlight.permanent .highlight-remove-tooltip:hover {
        background: #555;
    }
}

/* REMOVED: Old annotation indicator styles - now using blockquote format in comment content */

/* Hide name/email fields for logged-in users */
.logged-in .comment-form-author,
.logged-in .comment-form-email {
    display: none !important;
}

/* ===== PERMANENT ANNOTATION HIGHLIGHTS ===== */

/* Permanent annotation highlights */
.annotation-highlight.permanent {
    background-color: rgb(232, 243, 232);
    cursor: default;
    position: relative;
    border-radius: 3px;
    padding: 2px 4px;
    margin: 0 1px;
    transition: all 0.3s ease;
    font-weight: 500;
}
.annotation-highlight.permanent:hover {
    background-color: rgb(203 229 203);
    transform: translateY(-1px);
}

/* Annotation highlight removal tooltip */
.annotation-highlight.permanent .highlight-remove-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    user-select: none;
}

.annotation-highlight.permanent .highlight-remove-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.annotation-highlight.permanent .highlight-remove-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.annotation-highlight.permanent .highlight-remove-tooltip:hover {
    background: #555;
}

/* Enhanced text highlighting styles */
.text-highlight {
    background-color: rgb(232, 243, 232);
    padding: 2px 4px;
    cursor: default;
}

/* Only user-created highlights (with data-highlight-id) should be clickable */
.text-highlight[data-highlight-id] {
    cursor: pointer;
    position: relative;
}

.text-highlight[data-highlight-id]:hover {
    background-color: rgb(178 219 178);
}
