/* Wrapper for all content including media and text */
#highlight-comments-wrapper {
    position: relative;
}

/* Only text content areas can be highlighted */
.highlight-comments-content {
    position: relative;
    cursor: text;
}

/* Prevent selection in media/shortcode areas */
#highlight-comments-wrapper > audio,
#highlight-comments-wrapper > video,
#highlight-comments-wrapper > iframe,
#highlight-comments-wrapper > figure,
#highlight-comments-wrapper > img,
#highlight-comments-wrapper > .wp-block-embed,
#highlight-comments-wrapper > .wp-block-audio,
#highlight-comments-wrapper > .wp-block-video {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.highlight-comments-wrapper {
    position: relative;
}

.highlight-comment-mark {
    background: transparent !important;
    color: inherit;
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
    border-radius: 3px;
    padding: 2px 2px 2px 4px;  /* CHANGED: Reduced left padding from 28px to 4px */
    display: inline;
    font-weight: inherit;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.6;
}

.highlight-comment-mark[data-comment-count]:not([data-comment-count="0"]) {
    padding-left: 6px;  /* Slight increase when badge is present */
}

.highlight-comment-mark:hover {
    background: rgba(64, 224, 208, 0.1) !important;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
}

.highlight-comment-mark.has-comment {
    background: transparent !important;
    box-shadow: 0 2px 5px rgba(64, 224, 208, 0.35), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.highlight-comment-mark.has-comment:hover {
    box-shadow: 0 3px 10px rgba(64, 224, 208, 0.5), 0 2px 5px rgba(0, 0, 0, 0.15);
    background: rgba(64, 224, 208, 0.15) !important;
}

.highlight-comment-mark.pending {
    background: transparent !important;
    box-shadow: 0 2px 5px rgba(255, 167, 38, 0.35), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.highlight-comment-mark.spam {
    background: transparent !important;
    box-shadow: 0 2px 5px rgba(239, 83, 80, 0.35), 0 1px 3px rgba(0, 0, 0, 0.1);
    opacity: 0.6;
}

.highlight-comment-mark::after {
    content: attr(data-comment-count);
    position: absolute;
    top: -6px;
    left: -6px;  /* Position badge to the left of the text */
    background: linear-gradient(135deg, #40e0d0 0%, #48d1cc 100%);
    color: white;
    border-radius: 50%;
    padding: 0;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(64, 224, 208, 0.5);
    z-index: 10;
    border: 1.5px solid white;
}

.highlight-comment-mark:not([data-comment-count])::after,
.highlight-comment-mark[data-comment-count="0"]::after {
    display: none;
}

.highlight-comment-mark:not([data-comment-count]),
.highlight-comment-mark[data-comment-count="0"] {
    padding: 4px 8px;
}

.highlight-popup {
    position: absolute;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px;
    z-index: 10000;
    min-width: 500px;
    max-width: 850px;
    direction: ltr;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: box-shadow 0.2s ease;
}

.highlight-popup.dragging {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transition: none;
}

/* Remove the triangle arrow from popup */
.highlight-popup::before {
    display: none;
}

.highlight-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
    cursor: move;
    user-select: none;
}

.highlight-popup-header:active {
    cursor: grabbing;
}

.highlight-popup-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.highlight-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 1;
    transition: color 0.2s ease;
}

.highlight-popup-close:hover {
    color: #333;
}

.highlight-popup-content {
    margin-bottom: 12px;
}

.highlighted-text-display {
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    border-left: 3px solid #ff9800;
    margin-bottom: 12px;
    font-size: 18px;
    color: #555;
    line-height: 1.6;
    font-style: italic;
}

.highlight-comment-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.highlight-comment-form input[type="text"],
.highlight-comment-form input[type="email"],
.highlight-comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    direction: ltr;
}

.highlight-comment-form input:focus,
.highlight-comment-form textarea:focus {
    outline: none;
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.highlight-comment-form textarea {
    min-height: 80px;
    resize: vertical;
}

.highlight-emoticon-picker {
    display: flex;
    gap: 4px;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 4px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    max-height: 120px;
    overflow-y: auto;
}

.highlight-emoticon-btn {
    font-size: 16px;
    padding: 2px 4px;
    border: none;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.highlight-emoticon-btn:hover {
    transform: scale(1.15);
    background: #e3f2fd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.highlight-comment-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
}

.highlight-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.highlight-btn-primary {
    background-color: #2196f3;
    color: white;
}

.highlight-btn-primary:hover {
    background-color: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.highlight-btn-secondary {
    background-color: #f5f5f5;
    color: #666;
}

.highlight-btn-secondary:hover {
    background-color: #e0e0e0;
}

.highlight-btn-danger {
    background-color: #f44336;
    color: white;
}

.highlight-btn-danger:hover {
    background-color: #d32f2f;
}

.highlight-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.highlight-comments-list {
    margin-top: 16px;
    max-height: 500px;
    overflow-y: auto;
    position: relative;
}

.highlight-load-more {
    text-align: center;
    padding: 12px;
}

.highlight-load-more-btn {
    padding: 10px 20px;
    background: #f0f2f5;
    border: none;
    border-radius: 6px;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.highlight-load-more-btn:hover {
    background: #e4e6e9;
}

.highlight-comment-thread {
    margin-bottom: 16px;
}

.highlight-comment-item {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    background-color: #fafafa;
    transition: background-color 0.2s ease;
}

.highlight-comment-item:hover {
    background-color: #f0f0f0;
}

.highlight-comment-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.highlight-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-avatar-initial {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.highlight-comment-content {
    flex: 1;
    min-width: 0;
}

.highlight-comment-item.highlight-comment-reply {
    margin-left: 50px;
    background-color: #f9f9f9;
    border-left: 3px solid #e0e0e0;
    padding-left: 12px;
}

.highlight-comment-item.highlight-comment-reply .highlight-comment-avatar {
    width: 36px;
    height: 36px;
}

.highlight-comment-item.highlight-comment-reply .highlight-avatar-initial {
    font-size: 16px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.highlight-comment-item.highlight-comment-reply.level-2 {
    margin-left: 100px;
}

.highlight-comment-item.highlight-comment-reply.level-3 {
    margin-left: 150px;
}

.highlight-comment-item.pending {
    background-color: #fff8e1;
    border-left-color: #ff9800;
}

.highlight-comment-item.spam {
    background-color: #ffebee;
    border-left-color: #f44336;
    opacity: 0.7;
}

.highlight-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.highlight-comment-author {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.highlight-reply-indicator {
    font-size: 12px;
    color: #65676b;
    font-style: italic;
}

.highlight-reply-indicator .reply-to-name {
    color: #2196f3;
    font-weight: 600;
}

.highlight-comment-date {
    font-size: 12px;
    color: #999;
}

.highlight-comment-text {
    color: #555;
    font-size: 21px;
    line-height: 1.3;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.highlight-comment-actions-inline {
    display: flex;
    gap: 12px;
    font-size: 12px;
    align-items: center;
}

.highlight-comment-action-btn {
    background: none;
    border: none;
    color: #65676b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 600;
}

.highlight-comment-action-btn:hover {
    color: #2196f3;
    background-color: rgba(33, 150, 243, 0.1);
}

.highlight-comment-action-btn.delete:hover {
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.1);
}

.highlight-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: none;
    background: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
    font-weight: 600;
    color: #65676b;
}

.highlight-like-btn:hover {
    background-color: rgba(244, 67, 54, 0.1);
}

.highlight-like-btn.liked {
    color: #f44336;
}

.highlight-like-icon {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.highlight-like-btn.liked .highlight-like-icon {
    animation: likeAnimation 0.4s ease;
}

.highlight-like-count {
    min-width: 16px;
    text-align: center;
}

@keyframes likeAnimation {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.highlight-replies-toggle {
    margin-left: 60px;
    margin-bottom: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #65676b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.highlight-replies-toggle:hover {
    background-color: #f0f2f5;
}

.highlight-toggle-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.highlight-toggle-text {
    user-select: none;
}

.highlight-replies-container {
    margin-top: 8px;
}

.highlight-reply-form {
    margin-left: 60px;
    margin-bottom: 12px;
    padding: 12px;
    background-color: #f0f2f5;
    border-radius: 8px;
}

.highlight-reply-to {
    font-size: 12px;
    color: #65676b;
    margin-bottom: 8px;
    font-weight: 600;
}

.highlight-reply-form input,
.highlight-reply-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 18px;
    font-size: 13px;
    margin-bottom: 8px;
    font-family: inherit;
    background-color: white;
    resize: none;
    direction: ltr;
}

.highlight-reply-form textarea {
    border-radius: 12px;
    min-height: 60px;
    resize: vertical;
}

.highlight-reply-form input:focus,
.highlight-reply-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px #2196f3;
}

.highlight-status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.highlight-status-badge.approved {
    background-color: #c8e6c9;
    color: #2e7d32;
}

.highlight-status-badge.pending {
    background-color: #fff9c4;
    color: #f57f17;
}

.highlight-status-badge.spam {
    background-color: #ffcdd2;
    color: #c62828;
}

.highlight-status-badge.locked {
    background-color: #e0e0e0;
    color: #616161;
}

.highlight-comment-thread.locked {
    opacity: 0.85;
    position: relative;
}

.highlight-comment-thread.locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(189, 189, 189, 0.05) 10px,
        rgba(189, 189, 189, 0.05) 20px
    );
    pointer-events: none;
    border-radius: 8px;
}

.highlight-lock-btn {
    font-size: 12px;
    padding: 4px 8px;
    background-color: #9e9e9e !important;
    color: white !important;
}

.highlight-lock-btn:hover {
    background-color: #757575 !important;
}

.highlight-login-notice {
    background-color: #fff3e0;
    border: 1px solid #ffe0b2;
    border-radius: 6px;
    padding: 12px;
    color: #e65100;
    font-size: 14px;
    text-align: center;
}

.highlight-no-comments {
    text-align: center;
    color: #999;
    padding: 20px;
    font-size: 14px;
    font-style: italic;
}

.highlight-loading {
    text-align: center;
    padding: 20px;
    color: #999;
}

.highlight-loading::after {
    content: '...';
    animation: loading 1.5s infinite;
}

.highlight-error-message {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 6px;
    padding: 12px;
    color: #c62828;
    font-size: 14px;
    margin-bottom: 12px;
}

.highlight-success-message {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 6px;
    padding: 12px;
    color: #2e7d32;
    font-size: 14px;
    margin-bottom: 12px;
}

.highlight-comment-count {
    display: inline-block;
    background-color: #2196f3;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 6px;
    vertical-align: middle;
}

.highlight-edit-form {
    margin-top: 8px;
}

.highlight-edit-form textarea {
    width: 100%;
    min-height: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 8px;
    font-family: inherit;
    direction: ltr;
}

.highlight-comments-sidebar {
    margin: 60px 0 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    direction: ltr;
}

.highlight-comments-sidebar-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}

.highlight-comments-sidebar-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
}

.highlight-sidebar-icon {
    font-size: 28px;
}

.highlight-total-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #40e0d0 0%, #48d1cc 100%);
    color: white;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 700;
    min-width: 32px;
    height: 32px;
    box-shadow: 0 2px 8px rgba(64, 224, 208, 0.4);
    border: 2px solid white;
}

.highlight-comments-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlight-sidebar-comment {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid #2196f3;
}

.highlight-sidebar-comment:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(4px);
}

.highlight-sidebar-comment-quote {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 14px;
    font-size: 15px;
    font-style: italic;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    position: relative;
}

.highlight-sidebar-comment-quote::before {
    content: '"';
    font-size: 40px;
    position: absolute;
    top: -10px;
    left: 10px;
    opacity: 0.3;
    font-family: Georgia, serif;
}

.highlight-sidebar-comment-text {
    font-size: 15px;
    color: #2c3e50;
    line-height: 1.7;
    margin-bottom: 12px;
    padding-left: 8px;
}

.highlight-sidebar-comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #7f8c8d;
    padding-top: 12px;
    border-top: 1px solid #ecf0f1;
}

.highlight-sidebar-author {
    font-weight: 600;
    color: #34495e;
}

.highlight-sidebar-date {
    color: #95a5a6;
}

.highlight-sidebar-comment[data-highlight-id]:hover .highlight-sidebar-comment-quote {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

@keyframes loading {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(192, 108, 132, 0.3);
        transform: scale(1) translateY(0);
    }
    50% { 
        box-shadow: 0 6px 20px rgba(255, 107, 157, 0.6);
        transform: scale(1.05) translateY(-2px);
    }
}

::selection {
    background-color: rgba(255, 107, 157, 0.3);
    color: #333;
}

::-moz-selection {
    background-color: rgba(255, 107, 157, 0.3);
    color: #333;
}

@media (max-width: 768px) {
    .highlight-popup {
        min-width: 320px;
        max-width: calc(100vw - 30px);
        left: 15px !important;
        right: 15px !important;
    }
    
    .highlight-comment-actions {
        flex-direction: column;
    }
    
    .highlight-btn {
        width: 100%;
    }
    
    .highlight-comments-sidebar {
        margin: 40px 0 20px;
        padding: 20px;
    }
    
    .highlight-comment-item.highlight-comment-reply {
        margin-left: 30px;
    }
    
    .highlight-comment-item.highlight-comment-reply.level-2,
    .highlight-comment-item.highlight-comment-reply.level-3 {
        margin-left: 50px;
    }
    
    .highlight-replies-toggle,
    .highlight-reply-form {
        margin-left: 40px;
    }
    
    .highlight-comment-avatar {
        width: 36px;
        height: 36px;
    }
    
    .highlight-comment-item.highlight-comment-reply .highlight-comment-avatar {
        width: 32px;
        height: 32px;
    }
}

/* Add these new styles to your highlight-comments-v2.css file */

/* Nested reply container without binding lines */
.highlight-comment-item.highlight-comment-reply {
    margin-left: 50px;
    background-color: #f9f9f9;
    border-left: 3px solid #e0e0e0;
    padding-left: 12px;
    position: relative;
}

/* Nested level 2 replies */
.highlight-comment-item.highlight-comment-reply.level-2 {
    margin-left: 100px;
    background-color: #f5f5f5;
    border-left: 3px solid #90caf9;
}

.highlight-comment-item.highlight-comment-reply.level-2 .highlight-comment-avatar {
    width: 32px;
    height: 32px;
}

.highlight-comment-item.highlight-comment-reply.level-2 .highlight-avatar-initial {
    font-size: 14px;
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
}

/* Nested level 3 replies */
.highlight-comment-item.highlight-comment-reply.level-3 {
    margin-left: 150px;
    background-color: #fafafa;
    border-left: 3px solid #bbdefb;
}

.highlight-comment-item.highlight-comment-reply.level-3 .highlight-comment-avatar {
    width: 30px;
    height: 30px;
}

.highlight-comment-item.highlight-comment-reply.level-3 .highlight-avatar-initial {
    font-size: 13px;
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
}

/* Nested level 4+ replies (max depth) */
.highlight-comment-item.highlight-comment-reply.level-4 {
    margin-left: 200px;
    background-color: #f0f0f0;
    border-left: 3px solid #e3f2fd;
}

.highlight-comment-item.highlight-comment-reply.level-4 .highlight-comment-avatar {
    width: 28px;
    height: 28px;
}

.highlight-comment-item.highlight-comment-reply.level-4 .highlight-avatar-initial {
    font-size: 12px;
    background: linear-gradient(135deg, #90caf9 0%, #64b5f6 100%);
}

/* Reply indicator styling */
.highlight-reply-indicator {
    font-size: 12px;
    color: #65676b;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 4px;
}

.highlight-reply-indicator::before {
    content: '↪';
    font-size: 14px;
    color: #2196f3;
    font-style: normal;
}

.highlight-reply-indicator .reply-to-name {
    color: #2196f3;
    font-weight: 600;
}

/* Reply button enhancement for nested replies */
.highlight-comment-item.highlight-comment-reply .highlight-comment-action-btn.reply {
    font-size: 11px;
    padding: 3px 6px;
}

/* Reply form enhancement for nested levels */
.highlight-reply-form.level-1 {
    margin-left: 60px;
}

.highlight-reply-form.level-2 {
    margin-left: 110px;
}

.highlight-reply-form.level-3 {
    margin-left: 160px;
}

.highlight-reply-form.level-4 {
    margin-left: 210px;
}

/* Quote styling in comments */
.highlight-comment-text blockquote {
    margin: 0 0 4px 0;
    padding: 1px 3px;
    background: #f8f9fa;
    border-left: 3px solid #2196f3;
    border-radius: 0 4px 4px 0;
    font-style: normal;
}

.highlight-comment-text blockquote .quote-author {
    display: block;
    font-weight: 600;
    color: #2196f3;
    font-size: 13px;
    margin-bottom: 4px;
}

.highlight-comment-text blockquote .quote-text {
    display: block;
    color: #555;
    font-size: 21px;
	font-style: oblique;
    line-height: 1.3;
}

/* Style the reply text that comes after the quote */
.highlight-comment-text .reply-content {
    display: block;
    margin-top: 8px;
    color: #333;
}

/* Thread depth indicator */
.highlight-thread-depth {
    display: inline-block;
    font-size: 10px;
    color: #999;
    margin-left: 4px;
    font-weight: normal;
}

/* Mobile responsiveness for nested replies */
@media (max-width: 768px) {
    .highlight-comment-item.highlight-comment-reply {
        margin-left: 20px;
    }
    
    .highlight-comment-item.highlight-comment-reply.level-2 {
        margin-left: 40px;
    }
    
    .highlight-comment-item.highlight-comment-reply.level-3 {
        margin-left: 60px;
    }
    
    .highlight-comment-item.highlight-comment-reply.level-4 {
        margin-left: 80px;
    }
    
    .highlight-reply-form.level-1 {
        margin-left: 25px;
    }
    
    .highlight-reply-form.level-2 {
        margin-left: 45px;
    }
    
    .highlight-reply-form.level-3 {
        margin-left: 65px;
    }
    
    .highlight-reply-form.level-4 {
        margin-left: 85px;
    }
}


/* Add these styles to your highlight-comments-v2.css file */

/* Locked thread styling */
.highlight-comment-thread.locked {
    opacity: 0.9;
    position: relative;
}

.highlight-comment-thread.locked::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 193, 7, 0.03) 10px,
        rgba(255, 193, 7, 0.03) 20px
    );
    pointer-events: none;
    z-index: 0;
}

/* Disabled like button */
.highlight-like-btn.disabled,
.highlight-like-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}

.highlight-like-btn.disabled:hover,
.highlight-like-btn:disabled:hover {
    background-color: transparent;
    transform: none;
}

/* Locked badge styling */
.highlight-status-badge.locked {
    background-color: #ff9800;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Hide action buttons in locked threads for non-moderators */
.highlight-comment-thread.locked .highlight-comment-action-btn.reply,
.highlight-comment-thread.locked .highlight-comment-action-btn.edit,
.highlight-comment-thread.locked .highlight-comment-action-btn.delete {
    display: none;
}

/* Moderators can still see actions in locked threads */
body.user-can-moderate .highlight-comment-thread.locked .highlight-comment-action-btn.reply,
body.user-can-moderate .highlight-comment-thread.locked .highlight-comment-action-btn.edit,
body.user-can-moderate .highlight-comment-thread.locked .highlight-comment-action-btn.delete {
    display: inline-block;
}

/* Lock button always visible for moderators */
.highlight-lock-btn {
    background-color: #ff9800;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.highlight-lock-btn:hover {
    background-color: #f57c00;
    transform: translateY(-1px);
}

.highlight-lock-btn:active {
    transform: translateY(0);
}

/* Locked thread visual indicator */
.highlight-comment-thread.locked .highlight-comment-item {
    position: relative;
}

.highlight-comment-thread.locked .highlight-comment-content {
    position: relative;
    z-index: 1;
}

/* Tooltip for disabled actions */
.highlight-like-btn.disabled::after {
    content: 'Thread is locked';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-bottom: 5px;
}

.highlight-like-btn.disabled:hover::after {
    opacity: 1;
}