.bf-comments-wrap {
    margin-top: 20px;
}

.bf-comments-header {
    margin-bottom: 20px;
}

.bf-comments-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bf-comments-title i {
    color: #dc3544;
}

.bf-comments-count {
    font-size: 14px;
    font-weight: normal;
    color: #999;
    margin-left: 5px;
}

.bf-comments-form-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.bf-comments-form {
    display: flex;
    gap: 15px;
}

.bf-comments-form-left {
    flex-shrink: 0;
}

.bf-comments-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.bf-comments-form-right {
    flex: 1;
    min-width: 0;
}

.bf-comments-textarea-wrap textarea {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.bf-comments-textarea-wrap textarea:focus {
    outline: none;
    border-color: #dc3544;
}

.bf-comments-textarea-wrap textarea::placeholder {
    color: #ccc;
}

.bf-comments-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.bf-comments-form-tools {
    display: flex;
    gap: 10px;
}

.bf-comments-emoji-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #999;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.bf-comments-emoji-btn:hover {
    background: #f5f5f5;
    color: #dc3544;
}

.bf-comments-submit-btn {
    background: #dc3544;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.bf-comments-submit-btn:hover {
    background: #c82333;
}

.bf-comments-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.bf-comments-login {
    text-align: center;
    padding: 30px;
    color: #999;
}

.bf-comments-login p {
    margin-bottom: 15px;
}

.bf-comments-list-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.bf-comments-list {
    margin-bottom: 20px;
}

.bf-comment-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.bf-comment-item:last-child {
    border-bottom: none;
}

.bf-comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.bf-comment-body {
    flex: 1;
    min-width: 0;
}

.bf-comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.bf-comment-author {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.bf-comment-author:hover {
    color: #dc3544;
}

.bf-comment-time {
    font-size: 12px;
    color: #999;
}

.bf-comment-content {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 10px;
}

.bf-comment-reply-tag {
    color: #dc3544;
    margin-right: 5px;
    font-size: 14px;
}

.bf-comment-content p {
    margin: 0;
}

.bf-comment-actions {
    display: flex;
    gap: 20px;
}

.bf-comment-action {
    background: none;
    border: none;
    font-size: 13px;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 0;
    transition: color 0.3s;
}

.bf-comment-action:hover {
    color: #dc3544;
}

.bf-comment-reply-form {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #e5e5e5;
    display: none;
}

.bf-comment-reply-form.show {
    display: block;
}

.bf-comment-reply-textarea {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    resize: vertical;
    min-height: 50px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.bf-comment-reply-textarea:focus {
    outline: none;
    border-color: #dc3544;
}

.bf-comment-reply-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.bf-comment-reply-emoji {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #999;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s, color 0.3s;
}

.bf-comment-reply-emoji:hover {
    background: #f5f5f5;
    color: #dc3544;
}

.bf-comment-reply-submit {
    background: #dc3544;
    color: #fff;
    border: none;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.bf-comment-reply-submit:hover {
    background: #c82333;
}

.bf-comment-reply-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.bf-comments-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

.bf-comments-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
}

.bf-comments-empty p {
    margin: 0;
}

.bf-comments-load-more {
    text-align: center;
}

.bf-comments-load-more-btn {
    background: #f5f5f5;
    color: #666;
    border: none;
    padding: 10px 30px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.bf-comments-load-more-btn:hover {
    background: #dc3544;
    color: #fff;
}

.bf-comments-load-more-btn:disabled {
    background: #e5e5e5;
    color: #999;
    cursor: not-allowed;
}

.bf-comments-load-more-btn.loading {
    background: #dc3544;
    color: #fff;
}

.bf-comments-emoji-picker {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 20px;
    z-index: 10000;
    display: none;
    min-width: 300px;
}

.bf-comments-emoji-picker.show {
    display: block;
}

.bf-emoji-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.bf-emoji-category {
    width: 36px;
    height: 36px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
}

.bf-emoji-category:hover {
    background: #e5e5e5;
    transform: scale(1.1);
}

.bf-emoji-category.active {
    background: #dc3544;
}

.bf-emoji-grid {
    max-height: 200px;
    overflow-y: auto;
}

.bf-emoji-category-content {
    display: none;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
}

.bf-emoji-category-content.active {
    display: grid;
}

.bf-emoji-item {
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    text-align: center;
    transition: background 0.3s, transform 0.3s;
}

.bf-emoji-item:hover {
    background: #f5f5f5;
    transform: scale(1.2);
}

.bf-comment-notify {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 10001;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.bf-comment-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.bf-comment-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    .bf-comments-form {
        flex-direction: column;
    }
    
    .bf-comments-form-left {
        margin-bottom: 10px;
    }
    
    .bf-comments-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .bf-comment-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .bf-comment-avatar img {
        width: 40px;
        height: 40px;
    }
    
    .bf-comments-emoji-picker {
        width: 90%;
        max-width: 320px;
    }
    
    .bf-emoji-category-content {
        grid-template-columns: repeat(8, 1fr);
    }
    
    .bf-comment-notify {
        left: 20px;
        right: 20px;
        text-align: center;
    }
}